Jump to content
  • 0

Change Birthday Script?


Vince Jimenez

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   1
  • Joined:  10/16/12
  • Last Seen:  

Hello Guys,

I just want to know if someone have or make me this Script???

i need script to change their players Birthday ???

i know i need to goto database to change it but is there any script that no need to goto database to change their Birthday ? 

Once player change here birthday using npc its automatically change to data base.. ??

Thanks in Adv.

 


UP!!

Edited by nesty09
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


prontera,150,150,5 script sdfghjhgfd 56,{

query_sql "select birthdate from login where account_id = "+ getcharid(3), .@birthdate$;

mes "you know what? i'm a mind reader";

mes "I know you are a "+ ( Sex ? " handsome man" : " beautiful lady" ) +" born in ^ff0000"+ .@birthdate$ +"^000000.";

mes "Your underwear color is.. what? ok i stop it";

next;

if ( select( "Change my birthdate", "Bye" ) == 2 ) close;

mes "Really? well tell me your new birthdate - format 0000-00-00 thanks";

input .@string$;

next;

explode( .@tmp$, .@string$, "-" );

if( getarraysize( .@tmp$ ) != 3 ||

getstrlen(.@tmp$[0]) != 4 || atoi(.@tmp$[0]) < 1 ||

getstrlen(.@tmp$[1]) != 2 || atoi(.@tmp$[1]) < 1 ||

getstrlen(.@tmp$[2]) != 2 || atoi(.@tmp$[2]) < 1 ) {

mes "wrong format bye";

close;

}

query_sql "update login set birthdate = '"+ escape_sql( .@string$ ) +"' where account_id = "+ getcharid(3);

mes "done";

close;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   1
  • Joined:  10/16/12
  • Last Seen:  

i need it asap :( HUHUH ! HELP!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   1
  • Joined:  10/16/12
  • Last Seen:  

prontera,150,150,5	script	sdfghjhgfd	56,{
	query_sql "select birthdate from login where account_id = "+ getcharid(3), .@birthdate$;
	mes "you know what? i'm a mind reader";
	mes "I know you are a "+ ( Sex ? " handsome man" : " beautiful lady" ) +" born in ^ff0000"+ .@birthdate$ +"^000000.";
	mes "Your underwear color is.. what? ok i stop it";
	next;
	if ( select( "Change my birthdate", "Bye" ) == 2 ) close;
	mes "Really? well tell me your new birthdate - format 0000-00-00 thanks";
	input .@string$;
	next;

	explode( .@tmp$, .@string$, "-" );
	if( getarraysize( .@tmp$ ) != 3 ||
		getstrlen(.@tmp$[0]) != 4 || atoi(.@tmp$[0]) < 1 ||
		getstrlen(.@tmp$[1]) != 2 || atoi(.@tmp$[1]) < 1 ||
		getstrlen(.@tmp$[2]) != 2 || atoi(.@tmp$[2]) < 1 ) {
		
		mes "wrong format bye";
		close;
	}
	query_sql "update login set birthdate = '"+ escape_sql( .@string$ ) +"' where account_id = "+ getcharid(3);
	mes "done";
	close;
}

hi sir thanks for your fast reply..

i need 1 more request... once the player Click the NPC its automatically default to 0000-00-00 >???

Please ? thanks !

once player click Birthday Defaulter its automatically 0000-00-00 to database also ?? :(

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

By default birthday value is 0000-00-00 in login table

I don't get it. You want a menu "default value" ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   1
  • Joined:  10/16/12
  • Last Seen:  

i mean if player click the npc its automatically the birthday change to 0000-00-00 ? :(
And npc say" Dispbottom : Your character change birthday to 0000-00-00 Thanks"

yes a default value

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Run in mysql

update login set birthdate = '0000-00-00'
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...