Jump to content
  • 0

Item on equip changes name of wearer


Mad Walker

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   9
  • Joined:  06/25/12
  • Last Seen:  

Item on equip changes name of wearer, for example I equip an Angel Ring(name of the item) then my name is Test.

The output will be [Angel]Test. But upon unequipping the item, your name will be back to Test.

Edited by Qube Eks
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

dunno if this will work on item. didn't try this using items lol. /heh

 

{ query_sql "UPDATE `char` SET `name` = '"+escape_sql("<DESIRED NAME>")+"' WHERE `char_id` = '"+getcharid(0)+"'"; }
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   9
  • Joined:  06/25/12
  • Last Seen:  

it didn't work. It says check the syntax. :P

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

I'd use fakename for something like this it's the only way to get that real-time name change effect.

//Example 1599,Angra_Manyu,Angra Manyu,4,1,,10,200,,2,0,0xFFFFFFFF,7,2,2,1,1,1,8,{ bonus bAllStats,50; bonus bBaseAtk,3800; bonus2 bHPDrainRate,1000,100; },{ callfunc("F_Namer",1599); },{ callfunc("F_Namer"); }

function script F_Namer {

explode(.@item$,getitemname(getarg(0,574))," ");

if(.@item$[0]!="Egg") atcommand "@fakename ["+.@item$[0]+"]"+strcharinfo(0);

else atcommand "@fakename";

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   9
  • Joined:  06/25/12
  • Last Seen:  

but fakename takes away the guild's name right?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

but fakename takes away the guild's name right?

Yup
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   9
  • Joined:  06/25/12
  • Last Seen:  

thanks for the help Skorm. I used your idea though. :P

 

{ atcommand "@fakename [Dragon] "+strcharinfo(0)+" "; }',' {atcommand "@fakename";}');

then I applied a patch that shows guild name and party name.


 

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

thanks for the help Skorm. I used your idea though. :P

{ atcommand "@fakename [Dragon] "+strcharinfo(0)+" "; }',' {atcommand "@fakename";}');

then I applied a patch that shows guild name and party name.
Great I thought I heard something about that do you have the link to it I'd also be interested init.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   9
  • Joined:  06/25/12
  • Last Seen:  

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

×
×
  • Create New...