Jump to content
  • 0

adding condition


Question

Posted
		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

  • 0
Posted (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 by Sehrentos
  • 0
Posted
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);

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...