![]() |
Extra Loot - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Extra Loot (/Thread-Extra-Loot) |
Extra Loot - Van Glan Bloom - 03-22-2015 08:26 AM Well this script has been functioning well, until the few days it stopped working altogether, his function is that the player receives extra gold after killing mobs, but has not worked properly Event added in Item : Code: .... Event Code: [Events e_more_money] RE: Extra Loot - Shamino - 03-22-2015 09:00 AM Try... Code: ON=@EQUIP Code: [Events e_more_money] RE: Extra Loot - UltimaAku - 04-28-2015 07:34 PM Have you checked all your variables? (<ARGO.TAG.BONUSCHANCE>=1) The NPC being killed has to have the tag on them SRC.VAR.RAND=<EVAL {1 50}> The chance of this happening is 1/50, so small chance of it happening This looks like a weapon/armour piece that grants gold for killing NPCs on a small chance. I'd say either remove the tag requirement and set it to something like this: ON=@kill SRC.VAR.RAND=<EVAL {1 50}> //2% chance or 1/50 chances if (<ARGO.brain> > 0) // Doesn't trigger on players. SRC.SYSMESSAGE You have received bonus gold from <ARGO.NAME>. SRC.SYSMESSAGE (<ARGO.STR> + <ARGO.DEX> + <ARGO.INT>) has been put into your backpack. SRC.newitem i_gold // Creates the new item SRC.ACT.AMOUNT = (<ARGO.STR> + <ARGO.DEX> + <ARGO.INT>) /// the tougher the mob, the more the gold SRC.ACT.BOUNCE /// gives it to the player RETURN 0 // but the kill still happens ENDIF Now the tags gone, which means it has a chance on working on all NPCs, but the chance remains the same at 2% |