Jump to content
  • 0

Character Name Update HELP


nasagnilac

Question


  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

query_sql( "select `name` from `char` order by char_id asc", .@name$);
query_sql "UPDATE (*) FROM `char SET `name` = 'name' + v2 ";
OnDoChar:
freeloop(1);
for( set .@k, 0; .@k < 26; set .@k, .@k + 1 ){
query_sql( "select `name` from `char` order by char_id asc limit 127", .@name$);

	for( set .@i, 0; .@i < getarraysize(.@name$); set .@i, .@i + 1 ){
		query_sql "UPDATE `char` SET `name` = '"+(.@name$[.@i] + v2)+"'  WHERE `name` = '"+.@name$[.@i]+"'";
	}
}
freeloop(0);
end;

I need your help. I want all names in the char table will be extended by v2. But I dont know if this one works. Can you please help me how I can add v2 in all names using script.

post-21795-0-59707700-1431156371_thumb.png

I dont know where the 000000000000 numbers came from.

Edited by gmprestige
Link to comment
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.   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...