Random Armour Generator - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Random Armour Generator (/Thread-Random-Armour-Generator) Pages: 1 2 |
Random Armour Generator - htid4life - 09-23-2012 11:06 PM Hey on the old sphere forums there was a script i think it was buy soulless that it completely added random armour on rare loot system or some thing for example [ITEMDEF i_arms_rarearmour] id=i_arms name=Arms on=@create dorand name=Arms of the gods name=Arms of the devil name=arms of copper end dorand id=i_platemail_arms id=i_ringmail_arms end dorand modar=30 modar=40 end dorand color=03 color=05 color=06 end and so on i know this is totaly wrong i used it as example any one got the script im looking for? RE: Random Armour Generator - Extreme - 09-24-2012 12:19 AM PHP Code: DoRand x PHP Code: dorand 3 RE: Random Armour Generator - Skul - 09-24-2012 12:42 AM set a local, and read it to determine which type of armor it will be Code: local.rnd=<eval {1 1 2 5 3 10}> RE: Random Armour Generator - htid4life - 09-26-2012 09:13 PM Hey Thanks for the replys but i got abit of a problem When i create the armor it gives me random luck every time i drag and drop it meaning luck changes all time when i equip it Code: [ITEMDEF i_rare_legs] RE: Random Armour Generator - Mordaunt - 09-26-2012 09:51 PM Because you told it to.... Tag.luck {1 100} randomised it *slap* RE: Random Armour Generator - htid4life - 09-26-2012 09:53 PM so ur telling me every time i drag a Already created piece of armor it fires on=@create again??? RE: Random Armour Generator - RanXerox - 09-26-2012 11:54 PM Perhaps you are setting the value of the TAG to literally "{1 100}" (since a TAG is a string by nature)... try TAG.LUCK=<R1,100> or maybe <EVAL <R1,100>> RE: Random Armour Generator - htid4life - 09-27-2012 04:44 AM Thanks guys im usng tag.luck=<EVAL <R1,100>> and its working like a charm thanks again RE: Random Armour Generator - admin phoenix - 10-02-2012 10:28 PM should it not be <eval {R1,100}> ???? RE: Random Armour Generator - Extreme - 10-02-2012 11:57 PM (10-02-2012 10:28 PM)admin phoenix Wrote: should it not beNo no, <R1,100> or <EVAL <R1,100>> or <EVAL RAND(1,100)> |