ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Khameleon on June 19, 2009, 07:09:18 AM

Title: Kham's BOD Reward Calculator
Post by: Khameleon on June 19, 2009, 07:09:18 AM
First off only the Target BOD button works
about a few Code blocks down in the Reward Section for some reason it skips about 10 lines of code for no reason (Or at least any reason I can see) SUO Syntax Scanner Cleared the Script.

Found an error, still messes up during the Reward Section though.

Revision 2
* Reversed Code working 95% better now.
* Rewards it will find are, Stretched Hide, Bear Skin Rug, 120 Tailor Scroll, Spined, Horned, Barbed Runic Kits, Tapestry, Clothing Bless Deeds.
( I didn't add 110, or 115 Tailor Scrolls so the LBOD's should Come back as Cloth Rewards )
Please Double Check the Rewards and let me know if Any Come up wrong..
This is for TAILOR BODS ONLY
Smithing Rewards Will Come at a later time.
Title: Re: Kham's BOD Reward Calculator
Post by: Toptwo on June 19, 2009, 07:28:10 AM
Got it Kham, TY...will play with as soon as I get a fdew ToT's :)
Title: Re: Kham's BOD Reward Calculator
Post by: Khameleon on June 19, 2009, 05:21:12 PM
the script seems easy enough to follow, I'm not sure why its not reading the code right.. I might have change the way its checking all the variables.. I Dead doing that, It took me 3 day's to write the reward code.


Code: [Select]
If ( %Amount = 10 || %Amount = 15 ) && %Quality = Normal && %Type = Large4 && ( %Material = Cloth || %Meterial = Leather )
   Set %Reward Streached_Hide
If %Amount = 20 && %Quality = Exceptional && %Type = Small && %Material = Barbed
   set %Reward Streached_Hide
If ( %Amount = 10 || %Amount = 15 ) && %Quality = Normal && %Type = Large4 && %Material = Spined
   Set %Reward Spined_Runic_Kit

Perhaps I need to change it to.

Code: [Select]
if ( 10 in %Amount || 15 in %Amount ) && Normal in %Quality && Large4 in %Type && ( Cloth in %Material || Leather in %Material )
    Set %Reward Stretched_Hide
Title: Re: Kham's BOD Reward Calculator
Post by: Khameleon on June 19, 2009, 07:05:15 PM
Updated. Rewards should be showing now. please let me know if you find any rewards that are wrong.
I didn't add 110, or 115 Tailor Power Scrolls, so those should come up as Reward Cloth.