Jump to content
  • 0

How to detect the item bought from shops and the map where it was bought


Ninja

Question


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

Hi,

 

as the title says, is there a way to do this?

Link to comment
Share on other sites

12 answers 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:  

Link to comment
Share on other sites


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

 

 

thanks! how about detecting the event that somebody buys something? is there such a thing?

Link to comment
Share on other sites


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

What do you mean? something like trigger an event when someone buying? buying on npc or player?

Link to comment
Share on other sites


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

Yes. Like OnPcLoginEvent and the likes.

Link to comment
Share on other sites


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

Well you can use callshop and OnBuyItem or OnSellItem to trigger an event on a specific npc shop

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L6252

Link to comment
Share on other sites


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

Well you can use callshop and OnBuyItem or OnSellItem to trigger an event on a specific npc shop

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L6252

 

but this one only recognizes the ones that use npcshop* right?

Link to comment
Share on other sites


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

Yes you need to attach the shop https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L6321

callshop "your shop name",0;
npcshopattach "your shop name";

Just read the doc about it :)

Link to comment
Share on other sites


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

Yes you need to attach the shop https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L6321

callshop "your shop name",0;
npcshopattach "your shop name";

Just read the doc about it :)

 

Yep, did. But my problem is about just anything that's being bought via an npc shop (shop script and not via callshop) and also vend :)

Link to comment
Share on other sites


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

So you need a source mod to trigger an event everytime someone buy something (I pass I suck in source mod).

Another way should be checking the log table occasionally but it would be inefficient.

Link to comment
Share on other sites


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

So you need a source mod to trigger an event everytime someone buy something (I pass I suck in source mod).

Another way should be checking the log table occasionally but it would be inefficient.

 

I see. Hahaha then I think I'm at the wrong side of the forums. :) THanks for the heads up though.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

 

the picklog stored everything you need. 

item that sold / buy from npc shop. as well as the map too.

 

just enable the log features as stated by Capuche.

Link to comment
Share on other sites


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

Alright. I think I can find my way around knowing that.

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