FeedMe.inc

Moderator: MacroQuest Developers

onetimehero
a ghoul
a ghoul
Posts: 105
Joined: Fri Sep 05, 2003 2:42 pm

FeedMe.inc

Post by onetimehero » Wed Apr 27, 2005 7:35 pm

Ported from A_Druid_00

Code: Select all

;FeedMe.inc v1.1
; Ported from Feedme.inc v2.2 by A_Druid_00
; Include for ISXEQ 
; can toggle DoFeedMe by DoFeedMe:Set[<1/0>] from the chat window, or DoFeedMe:Set[<1/0>] from another script
;

function CheckForceFeed()
{
  if "!${Me.Casting.ID} && ${DoFeedMe}"
  {
    if "${Me.Hunger}<=5000"
      call ForceFeed Food
    if "${Me.Thirst}<=5000"
      call ForceFeed Drink
  }
}

function FeedMeDeclares()
{
  if "!${Variable[DoFeedMe]}"
    declare DoFeedMe bool global true
}

function ForceFeed(string whichtype)
{
  declare mypack         string local 
  declare myslot         string local 
  declare i              int    local 
  declare foodcount      int    local 
  declare foodtoeat      string local

  EQExecute /autoinventory 


  if "${Cursor.ID}"
    return FEEDME_CURSORFULL

  foodcount:Set[1]
  do
  {
    foodtoeat:Set[${SettingXML["FeedMe.xml"].Set["${whichtype}"].GetString["${whichtype}${foodcount}","NONE"]}]
    if "${foodtoeat.NotEqual[NONE]}"
    {
      if "${FindItemCount[${foodtoeat}]}>0"
      {
        echo Trying to eat/drink ${foodtoeat}
        mypack:Set[${FindItem[${foodtoeat}].InvSlot.Pack}]
        myslot:Set[${FindItem[${foodtoeat}].InvSlot}]
        if "${mypack}"
        {
          if "!${Window[${InvSlot[${mypack}].Name}].Open}"
          {
            nomodkey EQitemnotify ${mypack} rightmouseup
	    wait 10 "${Window[${InvSlot[${mypack}].Name}].Open}"               
            WaitFrame
          }
          nomodkey ctrl EQitemnotify ${myslot} leftmouseup
          wait 10 ${Cursor.ID}
          nomodkey EQitemnotify ${mypack} leftmouseup
          wait 1
          nomodkey EQitemnotify ${mypack} rightmouseup
          wait 1
          nomodkey EQitemnotify ${mypack} leftmouseup
          wait 1
        }
        else
        {
          nomodkey EQitemnotify ${myslot} rightmouseup
        }
        return FEEDME_OK
      }
    }
    foodcount:Inc
  }
  while "${foodtoeat.NotEqual[NONE]}"
}  
FeedMe.xml - goes in IS directory

Code: Select all

<?xml version='1.0'?>
<InnerSpaceSettings NextID="3">
	<Set ID="1" Name="Food">
<Setting Name="Food1">Iron Ration</Setting>
<Setting Name="Food2">Ration</Setting>
<Setting Name="Food3">Arctic Mussels</Setting>
<Setting Name="Food4">Arctic Scallop</Setting>
<Setting Name="Food5">Basilisk Eggs</Setting>
<Setting Name="Food6">Berries</Setting>
<Setting Name="Food7">Brasha Berries</Setting>
<Setting Name="Food8">Cactus Pulp</Setting>
<Setting Name="Food9">Chameleon Rat</Setting>
<Setting Name="Food10">Cobalt Rock Crab</Setting>
<Setting Name="Food11">Cockatrice Egg</Setting>
<Setting Name="Food12">Emerald Orange</Setting>
<Setting Name="Food13">Frontier Stink Beetles</Setting>
<Setting Name="Food14">Frost Turnip</Setting>
<Setting Name="Food15">Fruit</Setting>
<Setting Name="Food16">Ginseng</Setting>
<Setting Name="Food17">Green Radish</Setting>
<Setting Name="Food18">Griffon Eggs</Setting>
<Setting Name="Food19">Habanero Pepper</Setting>
<Setting Name="Food20">Handful of Tea Twigs and Leaves</Setting>
<Setting Name="Food21">Hermit Crab</Setting>
<Setting Name="Food22">Honey Berry</Setting>
<Setting Name="Food23">Lichen Roots</Setting>
<Setting Name="Food24">Mint</Setting>
<Setting Name="Food25">Moldy Tea Leaf</Setting> 
<Setting Name="Food26">Mud Crabs</Setting>
<Setting Name="Food27">Mushroom</Setting>
<Setting Name="Food28">Nifilik Egg</Setting>
<Setting Name="Food29">Phoenix Egg</Setting>
<Setting Name="Food30">Rabbit Meat</Setting>
<Setting Name="Food31">Ro Dates</Setting>
<Setting Name="Food32">Rockweed Bulb</Setting>
<Setting Name="Food33">Roots</Setting>
<Setting Name="Food34">Ruhiri Berries</Setting>
<Setting Name="Food35">Rujarkian Potato</Setting>
<Setting Name="Food36">Spikerattle Root</Setting>
<Setting Name="Food37">Sylvan Berries</Setting>
<Setting Name="Food38">Twisted Tuber</Setting>
<Setting Name="Food39">Vegetables</Setting>
<Setting Name="Food40">Vein Worm</Setting>
<Setting Name="Food41">Wild Cabbage</Setting>
<Setting Name="Food42">1 lb. Cragbeast Meat</Setting>
<Setting Name="Food43">1 lb. Hynid Meat</Setting>
<Setting Name="Food44">2 lb. Cragbeast Meat</Setting>
<Setting Name="Food45">2 lb. Hynid Meat</Setting>
<Setting Name="Food46">3 lb. Cragbeast Meat</Setting>
<Setting Name="Food47">3 lb. Hynid Meat</Setting>
<Setting Name="Food48">4 lb. Cragbeast Meat</Setting>
<Setting Name="Food49">4 lb. Hynid Meat</Setting>
<Setting Name="Food50">5 lb. Cragbeast Meat</Setting>
<Setting Name="Food51">5 lb. Hynid Meat</Setting>
<Setting Name="Food52">6 lb. Cragbeast Meat</Setting>
<Setting Name="Food53">6 lb. Hynid Meat</Setting>
<Setting Name="Food54">7 lb. Cragbeast Meat</Setting>
<Setting Name="Food55">7 lb. Hynid Meat</Setting>
<Setting Name="Food56">8 lb. Cragbeast Meat</Setting>
<Setting Name="Food57">8 lb. Hynid Meat</Setting>
<Setting Name="Food58">9 lb. Cragbeast Meat</Setting>
<Setting Name="Food59">9 lb. Hynid Meat</Setting>
<Setting Name="Food60">10 lb. Cragbeast Meat</Setting>
<Setting Name="Food61">10 lb. Hynid Meat</Setting>
<Setting Name="Food62">11 lb. Cragbeast Meat</Setting>
<Setting Name="Food63">11 lb. Hynid Meat</Setting>
<Setting Name="Food64">12 lb. Cragbeast Meat</Setting>
<Setting Name="Food65">12 lb. Hynid Meat</Setting>
<Setting Name="Food66">13 lb. Cragbeast Meat</Setting>
<Setting Name="Food67">14 lb. Cragbeast Meat</Setting>
<Setting Name="Food68">15 lb. Cragbeast Meat</Setting>
<Setting Name="Food69">15 lb. Hynid Meat</Setting>
<Setting Name="Food70">Dragon Egg</Setting>
<Setting Name="Food71">Drake Egg</Setting>
<Setting Name="Food72">Wurm Egg</Setting>
<Setting Name="Food73">Rye of Eternity</Setting>
<Setting Name="Food74">Summoned: Black Bread</Setting>
<Setting Name="Food75">Arctic King Crab</Setting>
	</Set>
	<Set ID="2" Name="Drink">
<Setting Name="Drink1">Brackish Water</Setting>
<Setting Name="Drink2">Glob of Slush Water</Setting>
<Setting Name="Drink3">Pod of Water</Setting>
<Setting Name="Drink4">Water Flask</Setting>
<Setting Name="Drink5">Water of Eternity</Setting>
	</Set>
</InnerSpaceSettings>
Standalone script to run FeedMe, since IS can run multiple scripts at once.

Code: Select all

;FeedMe.iss v1.0
; Ported from Feedme.inc v2.2 by A_Druid_00
; Standalone script for ISXEQ 
; /runscript FeedMe
;

#include FeedMe.inc

function main()
{

  call FeedMeDeclares

  if "!${Variable[FeedMe_Exit]}"
    declare FeedMe_Exit int global 0
  
  declare fm_wait int script 50

  FeedMe_Exit:Set[0]

  do
  {
    call CheckForceFeed
;   Wait fm_wait deci-seconds (default 50, 5 seconds)
    Wait ${fm_wait}
  }
  while "!${FeedMe_Exit}"
  Return 0
}

edit: updated to reflect new method of setting variables (no more varset)
Last edited by onetimehero on Fri May 27, 2005 2:13 pm, edited 1 time in total.
Hmm. That's odd.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Thu Apr 28, 2005 10:17 am

I'm honored sir.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

eolewis
orc pawn
orc pawn
Posts: 26
Joined: Tue Oct 04, 2005 4:11 pm

Post by eolewis » Sat Nov 26, 2005 10:09 pm

what is the difference between feedme.inc and feedme.iss

from my very basic knowledge of IS, I know from WoW that the iss file goes in the scripts directory, so I'd assume feedme.iss does also...

So I guess really, do I need feedme.inc if I have feedme.iss and if so, where does feedme.inc go?

Sorry Im asking all these questions thats probably really simple to do, but Im just a little confused...

Red-One
a ghoul
a ghoul
Posts: 143
Joined: Tue Dec 28, 2004 9:14 pm

Post by Red-One » Sun Nov 27, 2005 3:42 pm

Yes, feedme.inc does all the work and it is needed. feedme.inc is an "include" file that you can use to be included with other scripts, but since IS can run multiple scripts at a time, you can have feedme.iss running (which as you can see includes feedme.inc) along side your favorite script.

-Red

eolewis
orc pawn
orc pawn
Posts: 26
Joined: Tue Oct 04, 2005 4:11 pm

Post by eolewis » Sun Nov 27, 2005 10:03 pm

okies... so the iss file goes in the script folder... where would one put the ini and inc file then?

Red-One
a ghoul
a ghoul
Posts: 143
Joined: Tue Dec 28, 2004 9:14 pm

Post by Red-One » Sun Nov 27, 2005 10:10 pm

Put all 3 in the scripts folder. Remember that the settings file is an XML, not an INI... so make sure when you copy and paste it you name the files as described in the first post.

-Red

eolewis
orc pawn
orc pawn
Posts: 26
Joined: Tue Oct 04, 2005 4:11 pm

Post by eolewis » Wed Nov 30, 2005 10:51 am

when I try and run in, im getting

Unknown command 'EQExecute'
Dumping script stack
------------------------
-->D:/Sony/Innerspace/Scripts/FeedMe.inc:32 ForceFeed( ) EQExecute /autoinventory
D:/Sony/Innerspace/Scripts/FeedMe.inc12 CheckForceFeed( ) call ForceFeed Food
D:\Sony\Innerspace\Scripts\FeedMe.iss:23 main( ) call CheckForceFeed


Everything was copied as is into seperate files and all in the scripts directory... and yes, the above is copied symbol by symbol...

2 lines do show d:/Sony/Innerspace/Scripts and the third line shows d:\Sony\Innerspace\Scripts

not sure if that might also be part of my problem...

Red-One
a ghoul
a ghoul
Posts: 143
Joined: Tue Dec 28, 2004 9:14 pm

Post by Red-One » Wed Nov 30, 2005 1:24 pm

You have ISXEQ loaded right? (meaning you typed ext isxeq into the IS console after you loaded up your character?

-Red

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Wed Nov 30, 2005 4:40 pm

Scripts can explicitly "require" specific extensions (it will error out if you do not have the extension, or it isnt loaded and couldnt be loaded). This can be done similarly for requiring isxeqmelee, isxeqmoveutils, or whatever else.

Code: Select all

;FeedMe.iss v1.0
; Ported from Feedme.inc v2.2 by A_Druid_00
; Standalone script for ISXEQ
; /runscript FeedMe
;

#include FeedMe.inc

function main()
{
[color=red]  ext -require isxeq[/color]

  call FeedMeDeclares

  if "!${Variable[FeedMe_Exit]}"
    declare FeedMe_Exit int global 0
 
  declare fm_wait int script 50

  FeedMe_Exit:Set[0]

  do
  {
    call CheckForceFeed
;   Wait fm_wait deci-seconds (default 50, 5 seconds)
    Wait ${fm_wait}
  }
  while "!${FeedMe_Exit}"
  Return 0
} 
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

eolewis
orc pawn
orc pawn
Posts: 26
Joined: Tue Oct 04, 2005 4:11 pm

Post by eolewis » Thu Dec 01, 2005 10:22 am

Hmmm... no I didn't type ext isxeq before trying to load it... didn't think I had to since the only other times I loaded things was the autofish script from WoW which loaded isxwow for me... logging onto EQ now to try it.

*EDIT* Okies... that worked... thank you... and found out how to autoload ISXEQ so hoping I set it up right.

eolewis
orc pawn
orc pawn
Posts: 26
Joined: Tue Oct 04, 2005 4:11 pm

Post by eolewis » Thu Dec 01, 2005 10:52 am

currently recieving No such 'charachter' member 'Casting'

Any idea what this is?

*edit* okies... trying to autoload isxeq didn't work... ill just have to remember... hehehe

Red-One
a ghoul
a ghoul
Posts: 143
Joined: Tue Dec 28, 2004 9:14 pm

Post by Red-One » Thu Dec 01, 2005 1:22 pm

So how is everything eolewis? I'm confused if you are up and running or not by your edit comment. Did you mean that the "no such character member casting" problems was also because ISXEQ didn't autoload, or even after loading it you still are getting the error?

-Red

eolewis
orc pawn
orc pawn
Posts: 26
Joined: Tue Oct 04, 2005 4:11 pm

Post by eolewis » Thu Dec 01, 2005 1:47 pm

sorry, edit was in wrong reply....
I thought I saw how to load isxeq automatically, but when tryng to start up EQ, it just kept crashing so I removed it...

The no such character member casting thing occurs after I get into game all the way, type "ext isxeq" then "runscript feedme"

I notice I do drink a flask of water (trying to get it to drink Fizzlecutter formula 5000 first though) and would exp[lode if trying to manually force myself to eat.

FrankJScott
naggy
naggy
Posts: 2384
Joined: Sun Feb 19, 2023 7:11 am

Handy Tips For Deciding On Green Energy

Post by FrankJScott » Wed Mar 01, 2023 7:19 am

In reply to the guy asking about canadian solar panels for sale, 500w solar panel price, 5kv solar panel price, hydro power supply, best wind turbine, micro hydro power system, savonius wind turbine design, windmill efficiency, install solar panels at home, kafue gorge power station, geothermal hydronic heating and cooling, I highly suggest this recommended geothermal heat pump advice on top of solar wind system, go power solar panels, geothermal vertical loop depth, 1.5 kw wind turbine, 800 watt solar panel, wind turbine tower, puna geothermal venture, solar installation cost, tesla solar panels for home, solar wave, wind farm companies, the source of geothermal energy, solar wind power system, khimti hydropower, used solar panels for sale near me, look at this updated solar power link on top of lg solar panels for sale, the solar cell converts which energy into electrical energy, airborne wind energy systems, average solar panel output per day, cost of pumped hydro storage, axitec solar panels, 5 kw on grid solar system, microhydro power, ge wind energy ltd, solar wind energy, solar panels, gallagher s20, buy tesla powerwall, mitsubishi geothermal heat pump, solar installers near me, try this top rated wind energy blog for chevron geothermal, kundan group hydro power plant, turbulent micro hydro, boiler solar, solar panel price, hydroelectric dam turbine, cost of wind energy per kwh, solar one, bluetti ac200 price, wind energy examples, saur urja panel, . See More Agree With For Good Mastiff Breed Advice d1ac76_

FrankJScott
naggy
naggy
Posts: 2384
Joined: Sun Feb 19, 2023 7:11 am

Free Suggestions For Selecting Car Selling

Post by FrankJScott » Thu Mar 02, 2023 11:21 am

For the man inquiring about toyota jeep for sale, used 2020 cars for sale, we buy your car today, lamborghini urus used for sale, family car sales, local used cars for sale, I highly suggest this more hints about car buying info or trade in your old car, sell my used car online for free, sale my car for parts, car sell online price, websites to sell cars by owner free, toyota car sell, not to mention this recommended site on car buying site as well as used tesla for sale near me, toyota small cars for sale, trade in my old car, sell car fast, sell your car instant offer, mini cooper for sale second hand, and don't forget this resources about car buying url which is as good as the best way to sell a car online, low mileage cars for sale, audi rs3 used for sale, sell your old engine, want to sell my car for cash, sell car to dealership for cash, . Also, have a look at this consultant about car buying advice alongside all collect scrap cars for cash, low mileage cars for sale near me, online car selling sites, sell your salvage car, sell my car fast online quote, sell my car today, as well as this full article about car buying advice on top of good sites to buy cars, fastest way to sell my car, $1200 cars for sale, sell my accident damaged car, junk my car today, fastest selling used cars under $3 000, and don't forget website about car selling forum which is also worth a look not to mention kia soul 2010 for sale, best price paid for scrap cars, sell my car direct, autotrader private sellers, ways to sell cars online, cheapest place to buy a car online, also. I also recommend this at yahoo on car buying forum as well as honda civic 2014 for sale, used car sales on line, car trade sell car, junk yards to sell cars, sold car online, junk my vehicle, not to mention this continue reading for car selling url and don't forget car sale quote, vans for sale by owner near me, places that buy cars for parts, we buy cars quote, honda civic 2013 for sale, gumtree sell car, alongside all this guy for car selling details not to mention easiest way to sell a car, arnold sell your car, list my car for sale, sell your car today llc, selling car without v5, online car selling and buying, which is also great. Finally, have a look at this get the facts for car buying details with private junk car buyers, 2005 mazda rx8 for sale, manheim sell my car, sell your junk car near me, biggest online car seller, places that purchase junk cars, for good measure. Check more @ Best Advice For Deciding On Green Energy 3c8dec9