ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Blacklisted on May 12, 2017, 12:25:00 PM

Title: Bod turn in reward gump
Post by: Blacklisted on May 12, 2017, 12:25:00 PM
I have writen a script to turn in BOD's to the Blacksmith however at the moment it is just clicking the save reward points then it moves on and gets a new BOD then turns in a filled one.

I've been trying to figure out a way to grab the value of the points to then determine if not to save the points or spend them on say POF.

I cant see the reward points value anywhere in the journal, anyone any ideas how I can grab that reward pont value?



Title: Re: Bod turn in reward gump
Post by: The Ghost on May 12, 2017, 01:57:38 PM
I turn in the BOD by value.   I have a book that is junk = point and the POF is in is own book,   This  way I just need to change the location of the click depending on the reward.
Title: Re: Bod turn in reward gump
Post by: Blacklisted on May 12, 2017, 02:21:18 PM
Thanks ghost :) How do you determine a BOD value?
Title: Re: Bod turn in reward gump
Post by: The Ghost on May 12, 2017, 02:51:32 PM
That because all my POF are in the book from the last 8 years.  I have so many deeds That I haven't try to sort them.   But if u use MeWonUo
http://www.scriptuo.com/index.php?topic=8671.0   you can mod it to what u want.     U have the base, need just to rebuild the table to reward. 
Title: Re: Bod turn in reward gump
Post by: Blacklisted on May 12, 2017, 03:35:57 PM
Ahhh I get what you mean, so I guess I could sort the bods into books of reward type then use the books name to determine where to click on the reward gump. I take with the new Bod system that each BOD will always have a specific reward point value associated with it and is not random.
Title: Re: Bod turn in reward gump
Post by: The Ghost on May 12, 2017, 04:54:53 PM
Not sure if that the most efficient way to do it, but it work for me.  I still require to do more testing and finish the array.   I started  and get busy with other project.
Title: Re: Bod turn in reward gump
Post by: manwinc on May 12, 2017, 06:12:34 PM




Code: [Select]
Sub Bod_Reward_Value
Namespace Push
Namespace Local Mwinc_Bod_Point_Calc
set !Bod %1
For !Attempt 1 5
{
Event Property !Bod
if Blessed in #Property
Break
wait 5
}
if Blessed in #Property
{
  set !Value 0
  if Make: , #Spc , 10 in #property
    set !Value !Value + 10
  if Make: , #Spc , 15 in #property
    set !Value !Value + 25
  if Make: , #Spc , 20 in #property
    set !Value !Value + 50
  if Exceptional in #Property
    set !Value !Value + 200
  if Dull , #spc , Copper , #spc , Ingots in #Property
    set !Value !Value + 200
  if Shadow , #spc , Iron , #spc , Ingots in #property
    set !Value !Value + 250
  if Copper , #Spc , Ingots in #property && Dull , #Spc , Copper Notin #Property
    set !Value !Value + 300
  if Bronze , #Spc , Ingots in #Property
    set !Value !Value + 350
  if Gold , #spc , Ingots in #Property
    set !Value !Value + 400
  if Agapite , #Spc , Ingots in #Property
    set !Value !Value + 450
  if Verite , #Spc , Ingots in #Property
    set !Value !Value + 500
  if Valorite , #Spc , Ingots in #Property
    set !Value !Value + 550
set #result !Value
}
Else
set #Result Property
Namespace Pop
Return #Result

Here is what I have so far for small smithing bods. You can add more things for larges if you wish.

Gosub Bod_Reward_Value (Bod id)
#Result is the Point value
Title: Re: Bod turn in reward gump
Post by: BobOzarius on May 13, 2017, 12:37:42 AM
Thank the lord! Manwinc is starting to use some form of spacing convention in his scripts! Halleluja!  ;)
Title: Re: Bod turn in reward gump
Post by: Blacklisted on May 13, 2017, 04:36:32 AM
Amazing thanks Manwinc, i'll take a look at this today :)
Title: Re: Bod turn in reward gump
Post by: manwinc on May 13, 2017, 09:43:21 AM
I think you mean,

"Manwinc is starting to use SUO to auto indent his scripts"

It's actually harder for me to read indented scripts like that believe it or not.
Title: Re: Bod turn in reward gump
Post by: gimlet on May 13, 2017, 10:26:43 AM
My favorite Manwinc storage area -

Namespace Local I_love_DA_Boobies
Title: Re: Bod turn in reward gump
Post by: manwinc on May 13, 2017, 11:34:13 AM
I come across gems like that all the time. Most recent was this one.


Repeat
until Rich
Title: Re: Bod turn in reward gump
Post by: gimlet on May 13, 2017, 12:45:37 PM
I come across gems like that all the time. Most recent was this one.


Repeat
until Rich

lol
Title: Re: Bod turn in reward gump
Post by: TrailMyx on May 13, 2017, 11:13:57 PM
I think you mean,

"Manwinc is starting to use SUO to auto indent his scripts"

It's actually harder for me to read indented scripts like that believe it or not.

You are an ODD, ODD fellow, MW.....
Title: Re: Bod turn in reward gump
Post by: BobOzarius on July 02, 2017, 12:56:22 AM
 :P

Code: [Select]
menu text apples 13 20 ~ Man Whores Inc ~
menu font size 12
wait 3
menu text apples 90 60 "Obey Us"
wait 3
menu text apples 70 80 " We have candy "

Code: [Select]
Finditem %Sharp_Objects C_ , #backpackid
if #findcnt < 1
{
display Nothing to Cut your Wrists with
Halt
}

Code: [Select]
;=======================================================
; Things to come
; Sort 120/115/110 Binders/PS into Appropriate Containers
; Steal Your Account Info (And your Rabbits)
; You have a pretty mouth...
;=====================================================

Code: [Select]
Menu Text mwincsetup 50 80 Fear The Hell Monkeys
wait 10
Menu Text mwincsetup 50 120 They PARA SPAM!
wait 10
Menu Font size 10
Menu Font Color Silver
Menu Text Mwincsetup 50 150 (and they stole my cookies)

Code: [Select]
;=======================================================
;<------------- A Balls 2 Chin Production --------------->
;=======================================================

Code: [Select]
if #Dex < 60 ; WTF ARE YOU DOING CROSSHEALING
Title: Re: Bod turn in reward gump
Post by: gimlet on July 02, 2017, 05:52:28 AM
lol
Title: Re: Bod turn in reward gump
Post by: manwinc on July 03, 2017, 05:53:54 PM
Ohhhhhh the memoriesss
Title: Re: Bod turn in reward gump
Post by: manwinc on July 03, 2017, 05:55:42 PM
Upon searching for what script the Balls 2 chin production was in, You should not have that  \>:(
Title: Re: Bod turn in reward gump
Post by: BobOzarius on July 04, 2017, 11:23:48 PM
But but but.  I don't. Those snippets were given to me just to post here. I don't have those scripts.