Limestone Posted January 25, 2013 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Share Posted January 25, 2013 how to put this sql script in my npc and change my name like this. for example: From Super Hero to [ Cool ] Super Hero thank you! Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 25, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted January 25, 2013 change permanently ?? try .@name$ = "[Cool] "+strcharinfo(0); query_sql( "UPDATE `char` SET `name`='"+.@name$+"' WHERE `char_id`='"+getcharid(0)+"' ); Quote Link to comment Share on other sites More sharing options...
Winz Posted January 25, 2013 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 1479 Reputation: 174 Joined: 12/14/11 Last Seen: November 21, 2016 Share Posted January 25, 2013 (edited) basically, this is a cut of the script set .@new_name$, "[Cool] "+strcharinfo(0)+; query_sql("UPDATE `char` SET name='"+escape_sql(.@new_name$)+"' WHERE `char_id`='"+escape_sql(getcharid(0))+"'); CMIIW Have a nice day! *started typing 3 hrs ago..==, able to send a minute ago Edited January 25, 2013 by Winz Quote Link to comment Share on other sites More sharing options...
Limestone Posted January 25, 2013 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted January 25, 2013 hmm.. thank you emistry, i try it.. no its not permanently, how about if the name expires, what i mean, i want to put that script on my pvp ladder, but if the name expires, what should i put to revert back to its original name? Quote Link to comment Share on other sites More sharing options...
Capuche Posted January 26, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted January 26, 2013 If the player own a guild, you must uptade his name in guild table too. But I think uptade table for this is too complicated. I believe fakename is better but you aren't forced to believe me XD prontera,150,180,5 script I like Rabbit 456,{ Timepgm = gettimetick(2) + 20; dispbottom "Display [Cool] during 20 sec."; end; OnPCLoginEvent: if( Timepgm > gettimetick(2) ) atcommand "@fakename [Cool] "+ strcharinfo(0); else Timepgm = 0; end; } Quote Link to comment Share on other sites More sharing options...
Question
Limestone
how to put this sql script in my npc and change my name like this. for example:
From Super Hero to [ Cool ] Super Hero
thank you!
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.