Finding out where it releases the keys, if at all, is kind of problematic. You'd have to find every instance of keyboardRelease() and keyboardPress(), add a printf() statement near it, and see what happens. Doesn't sound like much fun to me. There's a lot of instances of it.
Administrator wrote:Finding out where it releases the keys, if at all, is kind of problematic. You'd have to find every instance of keyboardRelease() and keyboardPress(), add a printf() statement near it, and see what happens. Doesn't sound like much fun to me. There's a lot of instances of it.
keyboardRelease_orig = keyboardRelease;
keyboardRelease = function ()
error("keyboardRelease() called.", 2);
end
Ok. Tried this and it looks like keyboardRelease is only ever called during combat. During normal keyboard navigation and buffing it is never call. So it can't be related to the keyboard problem.
ConcernedCitizen, I found that if I run continuously forward for about a minute continuously changing direction, it will only miss about 3 to 5 key presses. This seems negligible to me.
It you have a more severe problem, maybe it is from something more simple like the power of your machine? I noticed at the moment there is no delay in my script. Adding even a small delay, I expect, will make a dramatic improvement.
Thanks for the tip.. I had to up it to yrest(10000); I may be able to turn it down a bit further...
Question, the potions are not working... Should it be self:checkPotions();? My HP_LOW_POTION is set to 80, but I was down to 50% and not casting anything else, and I waited over a minute and could see the CTRL+0 macro getting pushed, but no potions...
PS - I was FINALLY able to trick Vista into letting me search .lua files for phrases, so am starting to not be so dumb.. hehe
ConcernedCitizen wrote:Thanks for the tip.. I had to up it to yrest(10000); I may be able to turn it down a bit further...
Question, the potions are not working... Should it be self:checkPotions();? My HP_LOW_POTION is set to 80, but I was down to 50% and not casting anything else, and I waited over a minute and could see the CTRL+0 macro getting pushed, but no potions...
PS - I was FINALLY able to trick Vista into letting me search .lua files for phrases, so am starting to not be so dumb.. hehe
You're right. The potions aren't working. I never noticed it because I never drink pots. It looks like it's because the inventory isn't updated so it doesn't know where they are.
I've added 'inventory:update()' on load and 'inventory:updateSlotsByTime()' during the loop. You might need to reduce yrest even further.
Hi rock5,
I changed you Assist-script a little. Now I try to get the combat state of the party/player and want to save it in a variable.
'local state = RoMScript("GetPlayerCombatState();")'
But now I got an error in micromacro
'[string "..."]:124: attempt to call global 'RomScript' (a nil value)'
Is there any other way to get the combat state?
Bubi wrote:Hi rock5,
I changed you Assist-script a little. Now I try to get the combat state of the party/player and want to save it in a variable.
'local state = RoMScript("GetPlayerCombatState();")'
But now I got an error in micromacro
'[string "..."]:124: attempt to call global 'RomScript' (a nil value)'
Is there any other way to get the combat state?
and thanks for the work
There is no reason I can see why RoMScript shouldn't work but I see the error says "RomScript". So somewhere in your script you spell it wrong like that. Find it, change the 'm' to a capital. See how you go.
BTW I've never used that command myself so can't comment on it and rombot must already do this somewhere. Maybe Administrator can tell you what variable you can watch? Maybe player.Fighting?
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.
function aTrigger(_time)
local functime = os.time()
while not ( os.difftime(os.time(),functime) >= _time) do
RoMScript("acsMacro();");
RoMScript("Priesterix_BuffsPriester() ;");
RoMScript("Priesterix_SelbstHeilung();");
RoMScript("Priesterix_PartyHeilung();");
yrest(100)
end
end
if (player.Battling == true) or (attack == true) then
local fighttime = 4
local healtime = 3
RoMScript("TargetUnit('party"..prt.."');")
aTrigger(1)
local state = RoMScript("GetPlayerCombatState();")
if (state) then
RoMScript("AssistUnit('party"..prt.."');")
aTrigger(fighttime)
RoMScript("TargetUnit('player');")
aTrigger(healtime)
RoMScript("TargetUnit('party"..prt.."');")
else
RoMScript("FollowUnit('party"..prt.."');")
RoMScript("TargetUnit('party"..prt.."');")
aTrigger(2)
yrest(200)
end
end
before that, I'm looking for the party# (prt) of my other char. Normaly is 1 but sometimes when im doing daylies not.
Have not had time resently to play allot. I tested it for 1-2h and it worked. Attached you will find the hole code. Just change the "myAssistChar" to the char name you want to assist. If you do not have Pristerix, just comment that part out in the function.
hi, i tested it and du no if wrong but RBAssist1.3.xml work great, but the myAssist.xml dont, 1 of all Priesterix dont work, i look on web and its not any moor suported. I tried all option, auto ... but the charakter its not automaticli fallowing the setup charakter , and its not healling, not buffing, du nothink. I dont knou if i did somthynk wrong, but it wass not du nothink. RBAssist1.3.xml works great, thx
hi, i tested it and du no if wrong but RBAssist1.3.xml work great, but the myAssist.xml dont, 1 of all Priesterix dont work, i look on web and its not any moor suported. I tried all option, auto ... but the charakter its not automaticli fallowing the setup charakter , and its not healling, not buffing, du nothink. I dont knou if i did somthynk wrong, but it wass not du nothink. RBAssist1.3.xml works great, thx
Are you Priest? (Priester) german.
If not (Druid) you need to change the code to your class
Hi yes its druid, and naw if i understant, the idea its. I hawe 1 char k/w and other d/s and i won if i will go with k/w and the second char d/s will fallow me and heal and guff me. But when i set Priesterix on heal and i go singel with d/s on mob, and HP its les then 80%, Priesterix just start write in chat ... /cast BLOSSOMING LIFE but dont du nothink, just agein and agein /cast BLOSSOMING LIFE in chat but not castink. Its that problem in Priesterix? And same if i hawe log on 2 chars and k/w haw 50% hp, on d/s Priesterix agein just in chat /cast BLOSSOMING LIFE but it dont du nothing. Btw the fallow i must alwais set manual on asist char coz its not start fallow automaticli, any idea or i du somthink wrong?
But when i set Priesterix on heal and i go singel with d/s on mob, and HP its les then 80%, Priesterix just start write in chat ... /cast BLOSSOMING LIFE but dont du nothink, just agein and agein /cast BLOSSOMING LIFE in chat but not castink. Its that problem in Priesterix? And same if i hawe log on 2 chars and k/w haw 50% hp, on d/s Priesterix agein just in chat /cast BLOSSOMING LIFE but it dont du nothing.
I realized the same issue. Probably need to insert a "yrest(20)" between the calls of the Pristerix functions. I will test this.
Btw the fallow i must alwais set manual on assist char coz its not start fallow automaticli, any idea or i du somthink wrong?
You need to be in the same Party/Group with the chars and activate the assist with the "go" macro.
"myAssistChar" to the Charname (for example "Maroco") which you want to assist? (in the myAssist.xml file)
btw Pristerix wont work that way. I only healed my chars with Uberflex
I think it's because Pristerix creats a macro with the spellname. With the Patch 3 its is no longer possible to cast a maco by a maco. It would probably work when you do it like Uber by using useAction(x) where x is the number of the slot with the spellname.
Is there a way to put a spell in a specific slot with a lua code? so you don't need to create a macro.
when its not working anymoor? Then i dont knou what next, use the Uberflex, and its need cheng your code or Uberflex will heal me 2 chars k/w and d/s if needed. 1 moor time thx for help, i thynk that will by great do it work and finali use great micromacro for main char in rock5 and your for assist main char. I thynk if that will work,it will make alot oportunites in game solo go som good instance and be heal from assist char.
Maroco wrote: i dont understent why its Pristerix in your code when its not working anymoor?
I was wondering the same thing.
BTW. I think a better solution to trigger priesterix is by using the on update function Priesterix_Buff_OnUpdate(elapsedTime). That way it should work for any class. Something like this;
LastTime=os.clock()
while (true) do
sendMacro("acsMacro();");
sendMacro("Priesterix_Buff_OnUpdate("..os.clock()-LastTime..")"); LastTime=os.clock()
yrest(50)
end
This triggers both Uberflex and Priesterix.
This is assuming, of course, that someone can figure out how to make Priesterix work.
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.