Jump to content
  • 0

Item on equip changes name of wearer


Question

Posted (edited)

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

8 answers to this question

Recommended Posts

Posted

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)+"'"; }
Posted

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;

}

Posted

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...