joecalis Posted May 27, 2018 Posted May 27, 2018 View File 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 Submitter joecalis Submitted 05/27/2018 Category Source Modifications Video Content Author joecalis 1 2 Quote
iwillnot Posted April 5, 2019 Posted April 5, 2019 (edited) 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 April 5, 2019 by iwillnot Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.