Author Topic: neo's Horticulturist v1.2 out 09/22/2011 Get your own seeds of renewal! :)  (Read 88827 times)

0 Members and 2 Guests are viewing this topic.

Offline Gandolf

  • Jr. Member
  • **
  • Posts: 65
  • Activity:
    0%
  • Reputation Power: 1
  • Gandolf has no influence.
  • Respect: +24
  • Referrals: 1
    • View Profile
Re: neo's Horticulturist v1.2 out 09/22/2011 Get your own seeds of renewal! :)
« Reply #180 on: November 21, 2020, 04:19:19 AM »
0
I am using v1.2 I have a total of 1500 plants here is my set up

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
plants.png

Offline Gandolf

  • Jr. Member
  • **
  • Posts: 65
  • Activity:
    0%
  • Reputation Power: 1
  • Gandolf has no influence.
  • Respect: +24
  • Referrals: 1
    • View Profile
Re: neo's Horticulturist v1.2 out 09/22/2011 Get your own seeds of renewal! :)
« Reply #181 on: November 21, 2020, 11:05:55 AM »
0
ran today here is what i Have
scanjournal !temp_jindex

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 486
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: neo's Horticulturist v1.2 out 09/22/2011 Get your own seeds of renewal! :)
« Reply #182 on: November 21, 2020, 11:39:04 AM »
0
So the variable values I asked for would indicate how it got to the journal scan subroutine. It would also show what the values are so we know how it walks through the sub.

A simple way to get those values:
easyuo menu tools->vardump

Gaderian
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline Gandolf

  • Jr. Member
  • **
  • Posts: 65
  • Activity:
    0%
  • Reputation Power: 1
  • Gandolf has no influence.
  • Respect: +24
  • Referrals: 1
    • View Profile
Re: neo's Horticulturist v1.2 out 09/22/2011 Get your own seeds of renewal! :)
« Reply #183 on: November 22, 2020, 04:53:31 AM »
0
ok here is the var dumo
Code: [Select]
#AR: 49
#BACKPACKID: ABDCEFG
#CHARDIR: 0
#CHARGHOST: no
#CHARID: ABCDEF
#CHARNAME: Player
#CHARPOSX: 2272
#CHARPOSY: 1066
#CHARPOSZ: 7
#CHARSTATUS:
#CHARTYPE: IS
#CLICNT: 1
#CLILANG:
#CLILEFT: 15
#CLILOGGED: 1
#CLINR: 1
#CLITITLE: Ultima Online - Player(Baja)
#CLITOP: 41
#CLIVER: 7.0.87.11
#CLIXRES: 800
#CLIYRES: 600
#CONTHP: 0
#CONTID: YIUXJPD
#CONTKIND: AMI
#CONTNAME: container_gump
#CONTPOSX: 320
#CONTPOSY: 610
#CONTSIZE: 180_240
#CONTSIZEX: 180
#CONTSIZEY: 240
#CONTTYPE: IKF
#CR: 57
#CURPATH: C:\Users\Bert54\Desktop\
#CURSKIND: 1
#CURSORX: 1148
#CURSORY: 555
#DATE: 201122
#DEX: 15
#DISPRES:
#DOT: .
#ENEMYHITS: N/A
#ENEMYID: BJVBID
#ER: 67
#EUOVER: 1_50_00
#FALSE: 0
#FINDBAGID: YIUXJPD
#FINDCNT: 1
#FINDCOL: 0
#FINDDIST: N/A
#FINDID: XEYGIOD
#FINDINDEX: 1
#FINDKIND: 0
#FINDMOD: 0_0
#FINDREP: 0
#FINDSTACK: 56416
#FINDTYPE: XUF
#FINDX: 412
#FINDY: 716
#FINDZ: 0
#FOLLOWERS: 3
#FR: 56
#GOLD: 0
#HITS: 112
#INT: 115
#JCOLOR: 995
#JINDEX: 5420
#JOURNAL: You_see:_sandstone_paver
#LHANDID: YC
#LLIFTEDID: WVJVFPD
#LLIFTEDKIND: 0
#LLIFTEDTYPE: VGJ
#LOBJECTID: ESATITD
#LOBJECTTYPE: BWE
#LPC: 10000
#LSHARD: 0
#LSKILL: 0
#LSPELL: 32
#LTARGETID: XEYGIOD
#LTARGETKIND: 3
#LTARGETTILE: 1181
#LTARGETX: 2265
#LTARGETY: 1067
#LTARGETZ: 7
#LUCK: 95
#MANA: 115
#MAXDMG: 6
#MAXFOL: 5
#MAXHITS: 112
#MAXMANA: 115
#MAXSTAM: 15
#MAXSTATS: 255
#MAXWEIGHT: 477
#MENUBUTTON: N/A
#MENURES: -1
#MINDMG: 1
#NEXTCPOSX: 768
#NEXTCPOSY: 768
#NSNAME: GUMPWAIT
#NSTYPE: local
#OPTS: SYS_DMC_EXEC_SEND
#OSVER: 2_5_1
#PIXCOL: 524288
#PR: 70
#PROPERTY: A Wilted Plain Campion Flowers Plant$Weight: 1 Stone$Locked Down$
#RANDOM: 326
#RESULT: 0
#RHANDID: YC
#SCNT: 63720
#SCNT2: 637202
#SENDHEADER:
#SEX: 0
#SHARD: Atlantic
#SHOPCNT: 0
#SHOPCURPOS: 0
#SHOPITEMID: YC
#SHOPITEMMAX: 0
#SHOPITEMNAME:
#SHOPITEMPRICE: 0
#SHOPITEMTYPE: YC
#SKILL: 0
#SKILLCAP: 0
#SKILLLOCK: up
#SMC: ;
#SPC: 
#STAMINA: 15
#STR: 125
#STRRES: 0
#SYSMSG: N/A
#SYSMSGCOL: 0
#SYSTIME: 1290520217458
#TARGCURS: 0
#TILECNT: 0
#TILEFLAGS:
#TILENAME:
#TILETYPE: 0
#TILEZ: 0
#TIME: 085017
#TP: 0
#TRUE: -1
#WEIGHT: 198
%0: 2
%1: generic_gump
%10: gather_5
%2: 255_231
%3: This_plant_has_no
%4: Mutated_plants
%B: 8
%BTNX: 235
%BUTTONX: 215
%CHK_A: 191
%CHK_B: 194
%CHK_X: 223
%CHKX: 151
%CHKY: 71
%CLK: 191
%CLOSEX: 130
%CLOSEY: 120
%CLSEX: 150
%CLSEY: 140
%CONTPOSX: 20
%CONTPOSY: 20
%CURE_A: 123
%CURE_ADDED: 2
%CURE_B: 126
%CURE_BUTTON: 123
%CURE_CNT: 65
%CURE_NEEDED: 0
%CURE_POTION: NUF
%CURRENT_CNT: 555
%CURRENTPLANT: ESATITD
%D_B: 190
%D_G: 189
%D_R: 189
%DIRTBOWL: QLI
%DRAGWAIT: 10
%DROPWAIT: 10
%DYING_CNT: 0
%EMPTYPITCHER: WYF
%FAKE: 10
%FOCUS_X: 170
%FOCUS_Y: 140
%FULLHEALTH: -1
%G: 0
%G_CLICKX: 241
%G_CLICKY: 192
%GATHER_SEEDS: -1
%GATHER_X: 98
%GATHER_Y: 95
%GREENTHORN: GSF
%GREENTHORN_CNT: 0
%GUMP_B: 8
%GUMP_G: 8
%GUMP_R: 8
%GUMPSUM: 4
%HEAL_A: 147
%HEAL_ADDED: 2
%HEAL_B: 150
%HEAL_BUTTON: 147
%HEAL_CNT: 235
%HEAL_NEED1: 2
%HEAL_NEEDED: 2
%HEAL_POTION: UUF
%HEALTHY_CNT: 134
%INITLPC: 10000
%LPC: 10000
%OK: 0
%ORANGEPETAL: RFG
%ORANGEPETAL_CNT: 0
%PA_LPC: 10000
%PITCHER: VBM
%PIX1: -1
%PIX2: 0
%PLANT: QLI_OLI_BCF_VWE_BWE_UAF_JWE_IWE_EXE_UWE_ICF_BXE_YVE_CCF_NWE_MWE_DXE_TCF_NXE_BKP_ZJP_MKP_AKP_CKP_OKP_NKP_LKP_TXE_ZBF_AIF_GWE_VWE_WTE_ZBF_BWE_BCF_CCF_SVE_IWE_MWE_YVE_REK_QVE_BFK_WTE_FWE_NXE_CYE_JDF_WWE_ISN
%PLANTCOUNT: 0
%PLANTQTY: 0
%PLANTS_RESOURCES: 0
%PLANTS_SEEDS: 0
%PLANTS_TENDED: 552
%POISON_A: 100
%POISON_ADDED: 2
%POISON_B: 103
%POISON_BUTTON: 100
%POISON_CNT: 245
%POISON_NEEDED: 2
%POISON_POTION: AVF
%POTION_CONTAINER: YIUXJPD
%R: 0
%RED_B: 90
%RED_G: 49
%RED_R: 231
%REDLEAF: BRL
%REDLEAF_CNT: 0
%RENEWAL: IDHB
%RENEWAL_CNT: 17
%RESOURCE_X: 150
%RESOURCE_Y: 172
%RUNNING: -1
%SAFETYCNT: 0
%SCK_X: 119
%SCK_Y: 193
%SEED: PDF
%SEED_CNT: 438
%SEED_CONTAINER: BSGPLND
%SEED_X: 221
%SICK_CURE: 125
%SICK_HEAL: 149
%SICK_POISON: 102
%SICK_STR: 173
%SICK_X: 99
%SIMILARITY: 7
%SPOT_X: 221
%SPOT_Y: 98
%START: 37
%STARTTIME: 62175
%STR_A: 171
%STR_ADDED: 2
%STR_B: 174
%STR_BUTTON: 171
%STR_CNT: 232
%STR_NEED1: 2
%STR_NEEDED: 2
%STRENGTH_POTION: XUF
%STRING: 24
%T_CRATE_CNT: 0
%TKIND: strength
%TOTAL_CNT: 1396
%TOTALSUM: 0
%TREAT_X: 203
%VIBRANT_CNT: 376
%W_B: 198
%W_G: 189
%W_R: 189
%WATER_BUTTON: 75
%WATER_CNT: 713
%WATER_NEEDED: 0
%WATERTROUGH: TEE_WEE_QEE_VEE
%WILTED_CNT: 42
%X: 132
%Y: 51
%YELLOW_B: 49
%YELLOW_G: 231
%YELLOW_R: 231
%YESPLANT: -1
!L~GUMPWAIT~NAME: generic_gump
!L~GUMPWAIT~SIZE: 255_231
!L~GUMPWAIT~TIMEOUT: 63721
!L~NSXIIXMAXWEIGHT~MAXWEIGHT: 537
!L~NSXIIXMAXWEIGHT~OFFSET: 0
!L~STD~TM_FUNCTIONCALLED: -1
!L~TM_ADVJS_DIRTBOWLS~_JINDEX: 5408
!L~TM_ADVJS_DIRTBOWLS~LPC_SET: 100
!L~TM_ADVJS_GATHER~_JINDEX: 5415
!L~TM_ADVJS_GATHER~ARGS: VALID_ADVANCE
!L~TM_ADVJS_GATHER~CHARNAME: Goatman
!L~TM_ADVJS_GATHER~FIRST_ARG: 3
!L~TM_ADVJS_GATHER~INDEX: 5
!L~TM_ADVJS_GATHER~LPC_SET: 100
!L~TM_ADVJS_GATHER~NAMECNT: 0
!L~TM_ADVJS_GATHER~NAMEPOS: 0
!L~TM_ADVJS_GATHER~NUM_ARGS: 4
!L~TM_ADVJS_GATHER~PASS: -1
!L~TM_ADVJS_GATHER~SAMPLED_JINDEX: 5420
!L~TM_ADVJS_GATHER~SMCPOS: 8
!L~TM_ADVJS_GATHER~TEMP_JINDEX: 5421
!L~TM_ADVJS_GATHER~TEMP_LPC: 10000
!L~TM_ADVJS_GATHER~TEXT: Mutated_plants
!L~TM_ADVJS_GATHER~TEXTPOS: 0
!L~TM_ADVJS_TREAT~_JINDEX: 5408
!L~TM_ADVJS_TREAT~LPC_SET: 100

Edited to add code box

Edited TM: Removed player information
« Last Edit: November 23, 2020, 10:54:52 AM by TrailMyx »

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 486
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: neo's Horticulturist v1.2 out 09/22/2011 Get your own seeds of renewal! :)
« Reply #184 on: November 22, 2020, 11:35:22 AM »
0
So the variables indicate it actually processed the journal entries.

The #FIND variables indicate it has arrived at the last plant - it seems. Your picture doesn't look like you have 1500 plants. Do you have plants on other floors of the home? Do you need to approach the other plants? Even the variable counts looks like you have < 600 plants.

Gaderian
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 486
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: neo's Horticulturist v1.2 out 09/22/2011 Get your own seeds of renewal! :)
« Reply #185 on: November 26, 2020, 10:24:12 PM »
0
So one of the issues happening in the script is that finditem locates anything on the facet within the range you specify - without regard for the Z axis.

So version 1.2 of this script if finding plants on other floors of the house and trying to include those in the count.

The fix is not to rely solely on #FINDCNT for the quantity, but actually process the returned list from FINDITEM and test that it is within range for Z.

Here is an example on how to fix it - there would be several places in this script where such a solution model needs to be applied:
Code: easyuo
  1.     finditem %plant G_2
  2.     set %total_cnt 0
  3.     if #findcnt > 0
  4.      {
  5.      for #findindex 1 #findcnt
  6.       {
  7.       if #findz >= #charposz && #findz < #charposz + 20 ; each level of a house is 20 Z 'levels' - so you are testing anything from the current floor, but below the next higher floor
  8.        set %total_cnt %total_cnt + 1
  9.       }
  10.      }
  11.     ;set %total_cnt #findcnt

Event property takes time to fill data into #PROPERTY
There is a "repeat...until weight in #PROPERTY sequence" which has ignored the the ID for the plant. The repeat block is not repeated when #PROPERTY is not finished filling it's value. This is skipping processing plants. #PROPERTY gets populated with a single '$' and then gets set to whatever the value is.

Sometimes you can get a #PROPERTY description that has it's name and "no significant properties". Here is one method to verify that the #PROPERTY variable is populated without a hardcoded wait by checking for a 2nd '$' character:
Code: easyuo
  1.       event property #findid
  2.       while ( ( str count #property $ ) < 2 )
  3.         wait 1
  4.     until weight in #property
  5.  

Currently seeing plants in the count skipped. I have 702 plants, but anywhere from 495 - 566 get processed (gathering seeds). Have you experienced this before? My guess is lag issues where the script assumes success. Maybe an action takes place before the required cool down between actions, so the 2nd action actually fails, but the script doesn't have any catch on the failed action.

I believe this to be the culprit in start_button. It will issue the event property and immediately check for the results of #PROPERTY in the until statement. It needs something like the above example to guarantee #PROPERTY has a valid value:
Code: easyuo
  1.       set %currentplant #findid
  2.       ignoreitem #findid
  3.       event property #findid
  4.       while ( ( str count #property $ ) < 2 )
  5.         wait 1
  6.     until weight in #property
  7.  

It ignores this plant, issues the event property and if #PROPERTY is not finished populating it's text, it repeats the loop and never processes this plant.


Gaderian
« Last Edit: November 26, 2020, 10:59:24 PM by Gaderian »
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline Piller

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • Piller has no influence.
  • Respect: +3
  • Referrals: 1
    • View Profile
0
Currently have 1500 growing. Set up went amazing, caring for plants I think 2x in 7 days i had to restart it because something bugged and it didn't finish. All in all I have cared for 1500 plants by clicking play 10 times so taking that as a huge win.

I will be getting seeds and thorns for the first time on mon/tuesday of this week and report back. The plants will not be finished but I want to grab 2000 seeds for a 2nd grow. 

Anyone thinking of doing this you are going to need a buttload of potions. I underestimated this 1500 plants will use right under 1000 potions a day. Poisions and Cures running it daily i have not used 1 heal or strength.

1 question. When the plants are done and picked clean is there an easy way to unlock/dispose of 1500 plants on 1 tile. This seems like its going to be a pain to do.

Offline Insideout

  • Full Member
  • ***
  • Posts: 183
  • Activity:
    0%
  • Reputation Power: 2
  • Insideout has no influence.
  • Respect: +13
  • Referrals: 0
    • View Profile
0
Currently have 1500 growing. Set up went amazing, caring for plants I think 2x in 7 days i had to restart it because something bugged and it didn't finish. All in all I have cared for 1500 plants by clicking play 10 times so taking that as a huge win.

I will be getting seeds and thorns for the first time on mon/tuesday of this week and report back. The plants will not be finished but I want to grab 2000 seeds for a 2nd grow. 

Anyone thinking of doing this you are going to need a buttload of potions. I underestimated this 1500 plants will use right under 1000 potions a day. Poisions and Cures running it daily i have not used 1 heal or strength.

1 question. When the plants are done and picked clean is there an easy way to unlock/dispose of 1500 plants on 1 tile. This seems like its going to be a pain to do.


All in the the script under tools.  Just make sure if you put more down they are 2-3 tiles away for the onbes you want to trash.

Offline Piller

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • Piller has no influence.
  • Respect: +3
  • Referrals: 1
    • View Profile
0
I have not looked @ the tools since i locked them down guess i missed that. Thank you!!

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
0
Hey, yesterday I started gathering information for a new plant tender written in OrionUO, and decided to read through this topic for information. I'm surprised this still works to some degree... This was one of my first scripts, and writing this is how I started learning EUO... Got a nostalgic vibe reading through this... There was so much information about plants and everything that I used to know that I don't remember anymore... Such a weird feeling...

Anyway, thank you everyone for the testing and all the changes suggested throughout the topic. Will come back here after I finish the OrionUO script...

Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline jenovauh

  • Jr. Member
  • **
  • Posts: 60
  • Activity:
    0%
  • Reputation Power: 1
  • jenovauh has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
0
Hey, yesterday I started gathering information for a new plant tender written in OrionUO, and decided to read through this topic for information. I'm surprised this still works to some degree... This was one of my first scripts, and writing this is how I started learning EUO... Got a nostalgic vibe reading through this... There was so much information about plants and everything that I used to know that I don't remember anymore... Such a weird feeling...

Anyway, thank you everyone for the testing and all the changes suggested throughout the topic. Will come back here after I finish the OrionUO script...

Yes it is still a great tool till now, thank you so much. I did some further improvement to be able to use potion kegs and also moving bowl with dirt to backpack. I am trying to check for emptied resources and seeds plant then turn them into decorative, pick up and cut with clipper. Had tried using kalocr but it couldnt recognize 0/0 for resources and seeds. Not sure if anyone have done that portion.

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
0
Hey, yesterday I started gathering information for a new plant tender written in OrionUO, and decided to read through this topic for information. I'm surprised this still works to some degree... This was one of my first scripts, and writing this is how I started learning EUO... Got a nostalgic vibe reading through this... There was so much information about plants and everything that I used to know that I don't remember anymore... Such a weird feeling...

Anyway, thank you everyone for the testing and all the changes suggested throughout the topic. Will come back here after I finish the OrionUO script...

Yes it is still a great tool till now, thank you so much. I did some further improvement to be able to use potion kegs and also moving bowl with dirt to backpack. I am trying to check for emptied resources and seeds plant then turn them into decorative, pick up and cut with clipper. Had tried using kalocr but it couldnt recognize 0/0 for resources and seeds. Not sure if anyone have done that portion.
That's good news, thank you for letting me know.

I haven't done plants in ages, and don't remember much about it, so I'm just writing the new script for Orion as the situations present themselves here...

Still in day 2 of tending, so I still don't know how I'm gonna handle resources and retiring plants when it comes to that... Will make it up as I go along...
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline Piller

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • Piller has no influence.
  • Respect: +3
  • Referrals: 1
    • View Profile
0
I am starting a 2nd grow so i wanted to pull 1500 seeds off my plants today. I set it to pull thorns and seeds and it seemed the menu does not know you picked up thorns. The seeds were going into storage every plant but the thorns were remaining in pack. I was @ work and could not monitor it so I swaped it to seeds only. In 7 days all plants will be done and I will be stripping them so I will watch and see what happens when i go overweight and try to track down item id and such.

Me reading Neo's script language is like a 2rd grader trying to translate ancient Greek but I will try my best  ;D

Offline Piller

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • Piller has no influence.
  • Respect: +3
  • Referrals: 1
    • View Profile
0
Working on why green thorns do not move into the secure container. I think I have it narrowed down, can anyone tell me if im on the right track before I start testing stuff and mess it up worse lol.


Code: [Select]
if #findkind <> -1
   {
   set %greenthorn_cnt %greenthorn_cnt + #findstack
   menu set greenthorn_cnt %greenthorn_cnt
   exevent drag #findid #findstack
   wait %dragwait
   exevent dropc %resource_container
   wait %dropwait
   ignoreitem #findid
   }



It seems the menu is not counting the thorns. So I am assuming the problem is in the code above where I believe is the sub to move the thorns. But possibly it would be in the counting of the resources. Let me know what you think and I will look into it.
« Last Edit: March 16, 2023, 05:58:06 AM by Piller »

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 486
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
0
Hi Piller,
That code looks correct to add the stack that is in your backpack to the count, then update the menu and move it to the %resource_container. It doesn't look like there is anything wrong with this code snippet.

I would look at the potential failures.
Is it possible that %resource_container is not set to the ID of a container?
Could %resource_container be out of reach - more than 2 tiles from your character?
Is %resource_container hidden in another container level (a bag in a bag, for instance)?
Is this block of code even being executed?
Is this block of code being executed the first time while %resource_container is not valid for one of the above reasons, but later it is fine? The ignoreitem will not allow the stack to be found going forward when more are collected - as the stack of green thorns would have the same initial #findid.



"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Tags: