Jump to content
  • 0

script moving a character from an account to another one


Giant Whisper

Question

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   68
  • Joined:  10/25/20
  • Last Seen:  

@Shaktois selling something similar in his website

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  190
  • Reputation:   3
  • Joined:  04/11/12
  • Last Seen:  

hi cook1e do you have the link 🙂

I've already seen script Shakto but it's not what I'm looking for

What I would like to know is if you can move a char from one datasql to another using a script

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2361
  • Joined:  10/28/11
  • Last Seen:  

prontera,155,181,5	script	Sample	757,{
	mes "Enter character ID to move it to your account.";
	input .@value;
	query_sql("SELECT `account_id`, `char_id` FROM `char` WHERE `char_id` = "+.@value, .@aid, .@cid);
	
	if (!.@aid || !.@cid) {
		mes "Character doesn't exists.";
		close;
	}
	
	if (isloggedin(.@aid)) {
		mes "That account is logged in, please log off.";
		close;
	}
	
	query_sql("SELECT COUNT(1) FROM `char` WHERE `account_id` = "+getcharid(3), .@total_char);
	if (.@total_char >= 3) {
		mes "Your account already have more than 3 characters.";
		close;
	}
	
	query_sql("UPDATE `char` SET `account_id` = "+getcharid(3)+" WHERE `char_id` = "+.@cid);
	mes "Updated, please relog to see your new character.";
	close;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  190
  • Reputation:   3
  • Joined:  04/11/12
  • Last Seen:  

Hello Emistry, thank you very much for the npc it may be moved from database to database My idea is that when you cross a warp it moves you to another server

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...