ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Noobie on July 25, 2011, 05:28:25 PM
-
I know that this is missing the TM_NGFS and the MENU code, but is what I have below even feasible? Or am I way off track?
gosub EUOMenu1
gosub TM_NGFS_InitializeScript learning_to_save_stuff
finditem QLI G_1
if #findkind = -1
Return
If #findkind > 0
set %name #findid
For #findindex 1 #findcnt
{
set #lobjectid #findid
event macro 17
repeat
wait 1
until #CONTNAME = generic_gump && #CONTKIND = CFN
gosub pxlscan 198 -86 Water #FINDID
menu Text %name 100 %loc #FINDID
gosub TM_NGFS_RegisterVariables learning_to_save_stuff std std %name
set %loc %loc + 15
}
gosub TM_NGFS_SaveVariables learning_to_save_stuff
gosub menu
halt
sub menu
gosub TM_NGFS_InitializeScript test_script
gosub TM_NGFS_LoadVariables test_script
menu show 0 0
return
sub pxlscan
set %name %3 , %4
set %tempx %1 + #CONTPOSX
set %tempy %2 + #CONTPOSY
savePix %tempx %tempy %name
return
-
What do you put into %name?
-
I guess i made a typo I was going to put the findID in it.
-
Scratch that after thinking about it I don't think it is feasible. I was thinking about making the sub make a variable for each plant ID it finds and doing a savepix with the name of that variable. Then when i search for plant bowls a sub that takes that bowl ID and loads all the variables associated with that plant ID to cmpix and decided if what needs done (water...), but I think this is a bad idea after thinking about it.
I am curious of a way to tell if each plant needs tended.
Is it best to open the gump save the pix then water and cmpix to see if there was a change?