Page 1 of 3

forage.mac - The stupidest looking forage macro yet.

Posted: Tue May 18, 2004 12:55 pm
by Preocts
fuck it

Posted: Tue May 18, 2004 1:33 pm
by shadowdragon
not sure what i'm doing incorrectly, but i copy/pasted your code into a notepad file, saved it as forage.mac in the macros folder. when i type /macro forage.mac ingame, it says "the current macro has ended" and that's it. i seriously know nothing of coding for the macros and don't know what to do to fix it.

....

Posted: Tue May 18, 2004 1:56 pm
by robdawg
Damnit Preocts you didn't spoon feed everything to these people! WTF!@!@

Code: Select all

/declare IniFileName string outer ${Me.Name}_IniFile.ini
So in your case shadowdragon, it would be:

NOOB_IniFile.ini

Inside that INI file i am going to guess is should look like this:

Code: Select all

[Global]
Rabbit Meat=0
Plains Pebble=-1
Pod of Water=20
If not Preocts will tellz you!

Posted: Tue May 18, 2004 2:00 pm
by Preocts
Edit: fixed

robdawg: huh? :shock:

Shadow: Fixed the problem. Had a check there to see if the option for auto-forage was enabled and, of course, that was completely dependant on the rest of my macro being present. Removed it.

All:
There are no /echo's that will tell you this macro is currently running. It runs 100% quitely. :wink: If you want noise then add this to your ini file.

WhoEver_IniFile.ini

Code: Select all

[Settings]
Noise=1

....

Posted: Tue May 18, 2004 2:03 pm
by robdawg
Looked through the macro real quickly. Does it create the actual INI file for you if it doesn't exist? If so cool, and disregard by previous post. :)

Posted: Tue May 18, 2004 2:10 pm
by shadowdragon
trying that now, thank you for the help

Posted: Tue May 18, 2004 2:12 pm
by Preocts
We're all cross posting. How fun. :roll:

Interestingly enough you pointing out the problem fixed a few problems I was having with my personal macro. Completely unrelated to foraging but had to do with the fact that certain key option variables were global and not outer. heh. Yay.

Posted: Tue May 18, 2004 2:18 pm
by shadowdragon
/kneel, /grovel, /thank!!! it works PERFECTLY with the code change! thank you thank you thank you!!!

maybe someday in between time spent with kids and taking care of other things i'll have time to learn how to do all this from scratch, until then you all are the best for putting up with my Noobishness and helping me out. thanks very much for the code and the time, it's really appreciated.

edit: good question, do i need to manually create each char_inifile.ini or will it create them per char when using this macro?

Posted: Tue May 18, 2004 2:29 pm
by Preocts
If you want to start learning this stuff DON'T use this as your example. :lol:

Use this one instead. ROFLMAO

Code: Select all

#Event Pocket "#*#You have scrounged#*#"

Sub Main
  :KeepsGoing

    /if (${Me.AbilityReady["Forage"]}) {
        /delay 5
        /doability "Forage"
        /delay 5
    }

  /doevents  
  /delay 1s
  /goto :KeepsGoing
/return

Sub Event_Pocket
  /delay 1s
  /echo Pocketing << ${Cursor.Name} >> for future enjoyment.
  :Going
    /autoinventory
    /delay 5
    /if (${Cursor.ID}) /goto :Going
/return
soooooo much simpler. :lol: Though I think even Oid would shudder at this small one. His would more likely be:

Code: Select all

  Sub Main
    :Loop
      /if (${Me.AbillityReady[Forage]}) {
        /doability Forage
        /delay 1s
        /autoinventory
      }
     /goto :Loop
  /return
hmmm... still 9 lines long.... I'm sure he could do it in 5. :wink:
/challenge

/ramble off

Posted: Tue May 18, 2004 2:35 pm
by Preocts
shadowdragon wrote:/edit: good question, do i need to manually create each char_inifile.ini or will it create them per char when using this macro?
Everything will be created by the macro if it doesn't already exist. What to use one inifile for all your toons? Remove the ${Me.Name}_ part of the /declare statement.




((whew, rakin up the post counts today!))

Posted: Tue May 18, 2004 2:36 pm
by shadowdragon
kk, thank you for the info! run a few different foragers on the 3 computers i have, good to know!!

....

Posted: Tue May 18, 2004 2:39 pm
by robdawg
Looked through the macro real quickly. Does it create the actual INI file for you if it doesn't exist? If so cool, and disregard by previous post. :)

Re: ....

Posted: Fri May 21, 2004 2:51 pm
by firedancer
robdawg wrote:Looked through the macro real quickly. Does it create the actual INI file for you if it doesn't exist? If so cool, and disregard by previous post. :)
omg... look 2 posts above yours and dont be so FUCKING LAZY

Re: ....

Posted: Fri May 21, 2004 2:54 pm
by firedancer
robdawg wrote:Looked through the macro real quickly. Does it create the actual INI file for you if it doesn't exist? If so cool, and disregard by previous post. :)
omg... look 2 posts above yours and dont be so FUCKING LAZY

Re: ....

Posted: Fri May 21, 2004 3:55 pm
by Preocts
firedancer wrote:
robdawg wrote:Looked through the macro real quickly. Does it create the actual INI file for you if it doesn't exist? If so cool, and disregard by previous post. :)
omg... look 2 posts above yours and dont be so FUCKING LAZY

EAT GLASS AND DIE

I find it ironicly humorous that you doubled posted your flame at a double post.... but you can still die.