Leic Posted March 24, 2018 Posted March 24, 2018 case 1: warp "turbo_room",100,100; break; is there a query that if the character account's pin code is not set then he cannot warp on that room? Quote
0 Sehrentos Posted March 24, 2018 Posted March 24, 2018 (edited) Look for pincode in the login table. query_sql("SELECT pincode FROM login WHERE account_id="+ getcharid(3) +";", .@pin); if ( getarraysize( .@pin ) ) { /* Has pincode .@pin[0] */ } Edited March 24, 2018 by Sehrentos Quote
0 Leic Posted March 25, 2018 Author Posted March 25, 2018 thanks. how about a script that will delete the current pin code if you entered the warp? Quote
0 Sehrentos Posted March 25, 2018 Posted March 25, 2018 18 hours ago, Leic said: thanks. how about a script that will delete the current pin code if you entered the warp? "UPDATE login SET pincode = '' WHERE account_id="+getcharid(3); Quote
Question
Leic
case 1: warp "turbo_room",100,100; break;
is there a query that if the character account's pin code is not set then he cannot warp on that room?
3 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.