Jump to content
  • 0

adding condition


Leic

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  48
  • Reputation:   0
  • Joined:  02/27/18
  • Last Seen:  

		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

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   22
  • Joined:  10/24/14
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  48
  • Reputation:   0
  • Joined:  02/27/18
  • Last Seen:  

thanks. how about a script that will delete the current pin code if you entered the warp?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   22
  • Joined:  10/24/14
  • Last Seen:  

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);

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...