Vince Jimenez Posted April 9, 2014 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 68 Reputation: 1 Joined: 10/16/12 Last Seen: August 14, 2016 Share Posted April 9, 2014 (edited) 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 April 9, 2014 by nesty09 Quote Link to comment Share on other sites More sharing options...
Capuche Posted April 10, 2014 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 April 10, 2014 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; } Quote Link to comment Share on other sites More sharing options...
Vince Jimenez Posted April 10, 2014 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 68 Reputation: 1 Joined: 10/16/12 Last Seen: August 14, 2016 Author Share Posted April 10, 2014 i need it asap HUHUH ! HELP! Quote Link to comment Share on other sites More sharing options...
Vince Jimenez Posted April 10, 2014 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 68 Reputation: 1 Joined: 10/16/12 Last Seen: August 14, 2016 Author Share Posted April 10, 2014 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 ?? Quote Link to comment Share on other sites More sharing options...
Capuche Posted April 10, 2014 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 April 10, 2014 By default birthday value is 0000-00-00 in login table I don't get it. You want a menu "default value" ? Quote Link to comment Share on other sites More sharing options...
Vince Jimenez Posted April 10, 2014 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 68 Reputation: 1 Joined: 10/16/12 Last Seen: August 14, 2016 Author Share Posted April 10, 2014 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 Quote Link to comment Share on other sites More sharing options...
Capuche Posted April 11, 2014 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 April 11, 2014 Run in mysql update login set birthdate = '0000-00-00' Quote Link to comment Share on other sites More sharing options...
Question
Vince Jimenez
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 nesty09Link to comment
Share on other sites
6 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.