Jump to content

Release: OnPCLootEvent


joecalis

Recommended Posts


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  64
  • Reputation:   40
  • Joined:  03/26/12
  • Last Seen:  

OnPCLootEvent


New NPC Label

  • OnPCLootEvent:

This label triggers when a player picks up an item from the ground in a map marked with the 'lootevent' mapflag. This works with @autoloot and @alootid, this does not work for items given by script. When in a party with shared loot, only the player who looted the item from the ground will trigger this label. The information of the item picked up will be stored in an array called '@looted_data', check the script_commands.txt for the order of the data stored.

Usage Sample: lootevent_sample.txt


 

  • Upvote 1
  • Like 2
Link to comment
Share on other sites

  • 10 months later...

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   23
  • Joined:  04/28/12
  • Last Seen:  

Thanks for this.

For those of you who are not familiar with how to apply patches, I did the following on my Windows machine:

$ git apply "PATH/TO/FILE.patch"

 script_commands.txt      |   14 ++++++++++++++
 map/map.hpp              |    1 +
 map/mob.cpp              |    1 +
 map/npc.cpp              |    4 ++++
 map/npc.hpp              |    1 +
 map/pc.cpp               |   28 ++++++++++++++++++++++++++++
 map/pc.hpp               |    2 ++
 map/script.cpp           |    5 +++++
 map/script.hpp           |    1 +
 map/script_constants.hpp |    1 +
 10 files changed, 58 insertions(+)

 

Details:

GNU patch 2.7.6.

Further reading:

How does a patch work?

Edited by iwillnot
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
Reply to this topic...

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