any cmd for detecting pet? [solved]
any cmd for detecting pet? [solved]
is there anything i can use to see if my alt has a pet, so i can enable pet assist accordinly?
Last edited by botje on Thu Dec 13, 2012 8:18 am, edited 3 times in total.
Re: any cmd for detecting pet?
You can use the eggpet class. This checks the first 3 slots.
Code: Select all
local pet
for i = 1,3 do
pet = CEggPet(i)
if pet.EggId ~= 0 then
break
end
end
if pet.EggId == 0 then
settings.profile.options.EGGPET_ENABLE_ASSIST = false
else
settings.profile.options.EGGPET_ENABLE_ASSIST = true
settings.profile.options.EGGPET_ASSIST_SLOT = i
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
Re: any cmd for detecting pet? [solved]
very nice ^^
im always amazed how easy you pull these things out of your hat xd
thanx rock
im always amazed how easy you pull these things out of your hat xd
thanx rock
Re: any cmd for detecting pet?
Well it helps that I wrote the eggpet class and I know the options.
- 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
Re: any cmd for detecting pet? [solved]
hmm. does'nt work O.o
keeps printing cant find id etc
i used it in onload profile
keeps printing cant find id etc
i used it in onload profile
Re: any cmd for detecting pet?
that is for your own egg pet, he means another character's eggpet.rock5 wrote:You can use the eggpet class. This checks the first 3 slots.Code: Select all
local pet for i = 1,3 do pet = CEggPet(i) if pet.EggId ~= 0 then break end end if pet.EggId == 0 then settings.profile.options.EGGPET_ENABLE_ASSIST = false else settings.profile.options.EGGPET_ENABLE_ASSIST = true settings.profile.options.EGGPET_ASSIST_SLOT = i end
If you know the name of it's pet you could do a "scan" of objects for it's name I guess. Not sure if there is any indicator for who the pet belongs to, maybe the name also says the owner in memory?
<Joes pet Shadow>
Joe being character's name, Shadow being pet's name. Worth checking out.
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: any cmd for detecting pet? [solved]
no, i actually mean my own pet, so i can enable it.
Re: any cmd for detecting pet? [solved]
ohh well in that case we should fix rock's code lolbotje wrote:no, i actually mean my own pet, so i can enable it.
Code: Select all
local pet
for i = 1,3 do
pet = CEggPet(i)
if pet.EggId ~= 0 then
break
end
end
if pet.EggId == 0 then
settings.profile.options.EGGPET_ENABLE_ASSIST = false
else
settings.profile.options.EGGPET_ENABLE_ASSIST = true
settings.profile.options.EGGPET_ASSIST_SLOT = pet.EggSlot
end
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: any cmd for detecting pet?
As usual.
- 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
Who is online
Users browsing this forum: No registered users and 0 guests