Hello,
I have one problem with the item Housekeeper_Special_Cheese_Fishcake.
I heva try to add the following code at onLeaveCombat but don't run.
if not player:hasBuff(Cheese_Fishcake) then -- housemaid Food
inventory:useItem(Housekeeper_Special_Cheese_Fishcake)
end
99% is wrong, can U help me with this string (off corse I'n newbie).
Thank a lot
Housekeeper food
Re: Housekeeper food
Actually you could say it is 100% correct, if Cheese_Fishcake and Housekeeper_Special_Cheese_Fishcake were variables that held the correct values.
Eg.Or you can just write them as strings.
Eg.
Code: Select all
local Cheese_Fishcake = "Cheese Fishcake"
local Housekeeper_Special_Cheese_Fishcake = "Housekeeper Special Cheese Fishcake"
if not player:hasBuff(Cheese_Fishcake) then -- housemaid Food
inventory:useItem(Housekeeper_Special_Cheese_Fishcake)
endCode: Select all
if not player:hasBuff("Cheese Fishcake") then -- housemaid Food
inventory:useItem("Housekeeper Special Cheese Fishcake")
end- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
supermario
- Posts: 31
- Joined: Tue Apr 09, 2013 12:15 pm
Re: Housekeeper food
Thank a lot...now it's run and i have inderstood the error... one other question, this time really noob..
I need to use the function addon_player.lua (for rest or stop the bot if there are player nearest) but really dont have understand how use it copy in userfunction folder and?
thank a lot for the support, this is really greath!
I need to use the function addon_player.lua (for rest or stop the bot if there are player nearest) but really dont have understand how use it copy in userfunction folder and?
thank a lot for the support, this is really greath!
Re: Housekeeper food
When you add userfunctions to the userfunctions folder (they can start with 'addon_' or 'userfunction_'), it makes the functions inside the file available for use. Usually, you would still have to use the functions, although there can be exceptions. I can't really comment more without knowing whats in the userfunction.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
supermario
- Posts: 31
- Joined: Tue Apr 09, 2013 12:15 pm
Re: Housekeeper food
userfunction it was gmdetection.
in the beginning I didnt have understood How-to activate (load) the script.
i have played a little bit with the script and ... have understud must be loaded in the profile <onload.
so now I have only to test (with the dummy user) but no error at load.
let me say, i have to know deeply where must be "manipulated" the script, I started to use this from 2 days...
example "arrow carved with name" i didnt have found a working solution but for the daily (butt) or for grind I have found a good (myself) waypoints.
at moment I want try to make the turn of the pg (from one waypoint to the next) little bit better realistic because if I select true in fast turn is like a flipper if I set false is like slow-motion... lot to do... but I program in c++ and not xml so have to learn myself about this..
in the beginning I didnt have understood How-to activate (load) the script.
i have played a little bit with the script and ... have understud must be loaded in the profile <onload.
so now I have only to test (with the dummy user) but no error at load.
let me say, i have to know deeply where must be "manipulated" the script, I started to use this from 2 days...
example "arrow carved with name" i didnt have found a working solution but for the daily (butt) or for grind I have found a good (myself) waypoints.
at moment I want try to make the turn of the pg (from one waypoint to the next) little bit better realistic because if I select true in fast turn is like a flipper if I set false is like slow-motion... lot to do... but I program in c++ and not xml so have to learn myself about this..