Jump to content
  • 0

How to interact with MySQL in game syntax?


Amellia sizilia sembiring

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  108
  • Reputation:   4
  • Joined:  01/04/12
  • Last Seen:  

Hi, i  have so many thing i want to implement with database. what the syntax to query with npc?

ex. npc query to database. SELECT `accountid` FROM `login` if exist execute this if no execute that.
 

thiss my idea about npc so far.
 

prontera,150,150,4       script   announcer 501,{

$mes = query('SELECT `accountid` FROM `login` WHERE=2;');;

if($mes != null){ npctalk $mes; }

}

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

query_sql

https://rathena.org/wiki/query_sql

 

Edited by jezznar
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...