Akkarin Posted November 15, 2020 Share Posted November 15, 2020 View File Item Use, Drop & Pickup Events A handy extra set of script events and variables for you to maximise your event and quest scripts! New Variables: DroppedItemID, DroppedItemQTY, UsedItemID, PickedItemID New Scripted Event Triggers: OnItemDropEvent, OnItemUseEvent, OnItemPickupEvent Includes 3 Test NPC scripts e.g. - script onusetest -1,{ end; OnItemUseEvent: dispbottom "Found item use event"; dispbottom "Using on "+ UsedItemID; switch(UsedItemID){ case 501: dispbottom "You used a Red Potion!"; break; } end; } As an example use-case, I've previously used this code in an Easter event script where each time you pickup any 1 of the 13 different eggs, specific code will run for effects, item swapping, costume changes, play sounds, etc. The possibilities are enormous! Submitter Akkarin Submitted 11/15/2020 Category Source Modifications Video Content Author Akkarin 2 1 Quote Link to comment Share on other sites More sharing options...
Neragalengel Posted July 14, 2021 Share Posted July 14, 2021 install diff manually three times but i have this problem the UseEvent: acts as an onlogin the dropevent: acts as a useEvent the pickupevent: acts as a useEvent Do you know if it is compatible with emulators of 2018? pc.cpp Quote Link to comment Share on other sites More sharing options...