![]() |
Magic Weapon Drop - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Requests (/Forum-Script-Requests) +--- Thread: Magic Weapon Drop (/Thread-Magic-Weapon-Drop) |
Magic Weapon Drop - Leonidas - 06-03-2013 07:38 AM I need a script to make my magic weapons randomly drop when someone kills like a boss or a strong monster. Like.. sometimes you get a weapon drop and sometimes you dont, so like rarely lol. Thanks for any help! RE: Magic Weapon Drop - Alaric - 06-03-2013 07:52 AM I would recommend you to download basic scriptpack 2.0 or so. Look at those scripts like sphere_template_loot.scp and scripts in the folder "npc". Inspire by that, there is the on=@npcrestock, item=xxx. RE: Magic Weapon Drop - Leonidas - 06-03-2013 08:35 AM I know that, I'm talking about when a player kills a monster that there is a "chance" a weapon will drop, not all the time. Rare drops is what im talkin about RE: Magic Weapon Drop - Alaric - 06-03-2013 09:48 AM I don't know if somebody can do that simplier but add there if statement. if <r> <= 100 => 10% to drop the thing. Code: if <r> <= 100 RE: Magic Weapon Drop - RanXerox - 06-03-2013 10:23 AM You can setup loot templates like this: ITEM=random_potion,1,R4 ITEM=i_potion_heal,1,R4 The three values are: defname (or template name), Amount, Chance ...In my example above, chance is a random number from 0-4, which means there is only a 20% chance the item will be in the loot. RE: Magic Weapon Drop - Leonidas - 06-03-2013 01:07 PM Thank you got it to work! |