Jump to content
  • 0
Sign in to follow this  
anjasoleil0

Fakename, party invite/guild invite.

Question

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);
 

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.