Author Topic: Question about feasibility  (Read 1868 times)

0 Members and 1 Guest are viewing this topic.

Offline NoobieTopic starter

  • Sr. Member
  • *
  • Posts: 262
  • Activity:
    0%
  • Reputation Power: 1
  • Noobie has no influence.
  • Gender: Male
  • Respect: +13
  • Referrals: 1
    • View Profile
Question about feasibility
« on: July 25, 2011, 05:28:25 PM »
0
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?

Code: [Select]
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
« Last Edit: July 27, 2011, 04:22:15 PM by Noobie »

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Question about feasibility
« Reply #1 on: July 25, 2011, 05:46:33 PM »
0
What do you put into %name?
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline NoobieTopic starter

  • Sr. Member
  • *
  • Posts: 262
  • Activity:
    0%
  • Reputation Power: 1
  • Noobie has no influence.
  • Gender: Male
  • Respect: +13
  • Referrals: 1
    • View Profile
Re: Question about feasibility
« Reply #2 on: July 27, 2011, 04:20:38 PM »
0
I guess i made a typo I was going to put the findID in it.

Offline NoobieTopic starter

  • Sr. Member
  • *
  • Posts: 262
  • Activity:
    0%
  • Reputation Power: 1
  • Noobie has no influence.
  • Gender: Male
  • Respect: +13
  • Referrals: 1
    • View Profile
Re: Question about feasibility
« Reply #3 on: July 27, 2011, 04:41:43 PM »
0
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?

Tags: