Leic Posted March 24, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 48 Reputation: 0 Joined: 02/27/18 Last Seen: May 3, 2018 Share 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 Link to comment Share on other sites More sharing options...
0 Sehrentos Posted March 24, 2018 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 91 Reputation: 22 Joined: 10/24/14 Last Seen: November 1, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 Leic Posted March 25, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 48 Reputation: 0 Joined: 02/27/18 Last Seen: May 3, 2018 Author Share Posted March 25, 2018 thanks. how about a script that will delete the current pin code if you entered the warp? Quote Link to comment Share on other sites More sharing options...
0 Sehrentos Posted March 25, 2018 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 91 Reputation: 22 Joined: 10/24/14 Last Seen: November 1, 2024 Share 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 Link to comment Share on other sites More sharing options...
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?
Link to comment
Share on other sites
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.