joecalis Posted May 27, 2018 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 64 Reputation: 41 Joined: 03/26/12 Last Seen: March 29 Share 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 Link to comment Share on other sites More sharing options...
iwillnot Posted April 5, 2019 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 51 Reputation: 23 Joined: 04/28/12 Last Seen: April 22, 2022 Share 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 Link to comment Share on other sites More sharing options...
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.