Jump to content
  • 0

NPC Script Once Bought it Delete from the script


Emonizer08

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  45
  • Reputation:   2
  • Joined:  07/28/14
  • Last Seen:  

hi there fellas, i've a request to make,its sounds weird but there's a possible that NPC can Delete What his Selling? once it bought.

Sample i have a npc selling balmung once it bought by player it will delete from the item list until no one will left?. i wonder if its possible?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   76
  • Joined:  06/13/13
  • Last Seen:  

try market shop https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L292

prontera,150,150,1	marketshop	Market Shop	112,501:100:10,502:100:1

 

Edited by Litro Endemic
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   166
  • Joined:  04/05/13
  • Last Seen:  

doc > sample > npc_dynamic_shop.txt

Bought > Set new variable for item in shops > Done!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  45
  • Reputation:   2
  • Joined:  07/28/14
  • Last Seen:  

thank you litro endemic that's what i need slow clap for you men nice none. and thank you very much for the help

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  45
  • Reputation:   2
  • Joined:  07/28/14
  • Last Seen:  

by the way  can i change it to tcg

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  

On 3/25/2018 at 4:52 AM, Emonizer08 said:

by the way  can i change it to tcg

I'm pretty sure for that you would need a dynamic shop npc.

https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ea-addicts/Daily TCG Shop.txt

I made a script similar to this (forever ago) except the items for sale rotate daily.

Although stock gets reset when the server restarts.

Edited by Skorm
  • Upvote 1
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...