ON=@KILL TRIGGER - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: ON=@KILL TRIGGER (/Thread-ON-KILL-TRIGGER) |
ON=@KILL TRIGGER - dabritmusic - 03-01-2014 01:37 PM does the ON=@KILL trigger serve just for players or npcs also? im making an event for bosses. so when the play kills the boss it add ''Legendary Points'' its basically gonna be a system that gives the players a chance to collect the bosses armor through these points. i also made the armor craftable but the req skill is so high, players need a few unique skill clothing create which are dropped on highest lvl under the boss... ON=KILL if (<isevent.e_boss>) src.tag.lp +=<r1,5> src.sysmessage @0481 You have gained some Legendary Points for the defeating <src.name>! src.message @0ba7 You now have you now have : <eval <src.tag.lp>>! return 1 endif RE: ON=@KILL TRIGGER - pinku - 03-01-2014 03:08 PM Yes, it works for NPCs too; ARGO - The character killed. SRC - The character who killed. So, if you want to check anything on the boss, that event for example, you must use ARGO. amIright? Just trying to help. RE: ON=@KILL TRIGGER - JohnVeritas - 03-01-2014 08:22 PM on=@deathcorpse ref1=<attacker.max> // who ever did most damage only he gots LP if <ref1.isplayer> // if max damage doner is player. ref1.tag.lp +=<r1,5> ref1.sysmessage @0481 You have gained some Legendary Points for the defeating <argo.name>! ref1.message @0ba7 You now have you now have : <eval <ref1.tag.lp>>! endif Try this one if you put retun 1 after @kill trigger you cant kill boss actually. If you add this trigger under boss script when he dead, whoever done most damage, he will take LP's otherwise ppl just attack randomly bosses and when it dead they all got LP's RE: ON=@KILL TRIGGER - dabritmusic - 03-02-2014 01:19 PM thanks a bunch |