Jump to content

  •  

Photo

Fakename, party invite/guild invite.


  • Please log in to reply
No replies to this topic

#1 anjasoleil0

anjasoleil0

    Advanced Member

  • Members
  • PipPipPip
  • 76 posts

Posted 16 September 2016 - 08:43 AM

Okay. Here we go. I used this diff below so whenever I fakename, the guild/party will still be visible, but the problem is i can't invite the fakenamed player to a guild/party. Any solutions?

 


Index: map\clif.c
===================================================================
--- map\clif.c    (revision 15686)
+++ map\clif.c    (working copy)
@@ -8177,9 +8177,9 @@
                 WBUFW(buf, 0) = cmd = 0x195;
                 memcpy(WBUFP(buf,6), ssd->fakename, NAME_LENGTH);
                 WBUFB(buf,30) = WBUFB(buf,54) = WBUFB(buf,78) = 0;
-                break;
+            } else {
+                memcpy(WBUFP(buf,6), ssd->status.name, NAME_LENGTH);
             }
-            memcpy(WBUFP(buf,6), ssd->status.name, NAME_LENGTH);
 
             if( ssd->status.party_id )
             {
@@ -8297,14 +8297,16 @@
 
     nullpo_retv(ssd);
 
-    if( ssd->fakename[0] )
-        return; //No need to update as the party/guild was not displayed anyway.
-
     WBUFW(buf,0) = cmd;
     WBUFL(buf,2) = ssd->bl.id;
 
-    memcpy(WBUFP(buf,6), ssd->status.name, NAME_LENGTH);
-            
+    if( ssd->fakename[0] )
+    {
+        memcpy(WBUFP(buf,6), ssd->fakename, NAME_LENGTH);
+    } else {
+        memcpy(WBUFP(buf,6), ssd->status.name, NAME_LENGTH);
+    }
+
     if (!battle_config.display_party_name) {
         if (ssd->status.party_id > 0 && ssd->status.guild_id > 0 && (g = guild_search(ssd->status.guild_id)) != NULL)
             p = party_search(ssd->status.party_id);
 

 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


This topic has been visited by 28 user(s)