Jump to content
  • 0

[Simple query_sql script] Deletion or set as 0


Han25

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  67
  • Reputation:   2
  • Joined:  08/09/13
  • Last Seen:  

Hello, i just want to have atleast an example of executing the script from npc to sql database..

 

example

npc asked the player if he/she really wants to reset his faction then, (yes or no.)

as yes is chosen.. the npc will update the sql table from char , faction_id to 0.

i want to set this faction_id 10 as 0 to be registered as no faction_id,

 

thank you..

post-19662-0-83799300-1404043044_thumb.png

Edited by Elektrochemiestry
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

well to set the faction id 10 to 0 in a npc

query_sql "update `your_faction_table` set `faction_id` = 0 where `faction_id` = 10";
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...