SphereCommunity
Message on Item Drop - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Requests (/Forum-Script-Requests)
+--- Thread: Message on Item Drop (/Thread-Message-on-Item-Drop)



Message on Item Drop - KyleH112 - 06-16-2015 11:15 AM

I'm looking for a script that will broadcast a message when a certain item is dropped.

So and So Kills Monster
Monster has an item on the broadcast list
Message is Broadcasted


RE: Message on Item Drop - XuN - 06-16-2015 03:59 PM

With drop you mean loot or drop on ground?

If you mean drop you'll have to create one event for all npcs with this code:

ON=@DeathCorpse
if (<findid.youritemid>)
serv.b=your_broadcast
endif

If you want the broadcast if the item is dropped on ground you need to add this trigger to that item:
ON=@DropOn_Ground
serv.b=your_broadcast