Page 9 of 11

Re: New EggPet class.

Posted: Fri Jan 28, 2011 9:29 am
by nerf
please we need the solution of the bot in the miller's ranch, the mobs kill standart bot is already running, now need this, please help

Re: New EggPet class.

Posted: Fri Jan 28, 2011 7:19 pm
by rock5
nerf wrote:please we need the solution of the bot in the miller's ranch, the mobs kill standart bot is already running, now need this, please help
You're off topic. This thread is about the EggPet Class.

Re: New EggPet class.

Posted: Sat Jan 29, 2011 4:24 pm
by nerf
rock5 wrote:
nerf wrote:please we need the solution of the bot in the miller's ranch, the mobs kill standart bot is already running, now need this, please help
You're off topic. This thread is about the EggPet Class.

There are some related post on the subject?

Re: New EggPet class.

Posted: Sun Jan 30, 2011 9:27 am
by noobot
Hi,

sorry for noob question but i tried to find the script and couldn't and don't get how it works.

I would like to have a pet which is farming ressources alone. Can you give me the link to this script or paste it here?

If it's already included somewhere, i didn't get how to run it.

Thanks in advance for help.

Re: New EggPet class.

Posted: Mon Jan 31, 2011 1:22 am
by rock5
noobot wrote:Hi,

sorry for noob question but i tried to find the script and couldn't and don't get how it works.

I would like to have a pet which is farming ressources alone. Can you give me the link to this script or paste it here?

If it's already included somewhere, i didn't get how to run it.

Thanks in advance for help.
The EggPet class is part of rombot. To use it you need to set up the eggpet settings in your profile. Then when you are running any waypoint file it will use your pet/pets as you've set them up in your profile.
http://www.solarstrike.net/wiki/index.p ... _-_Options

Re: New EggPet class.

Posted: Mon Jan 31, 2011 2:51 am
by noobot
many thanks for answer

Re: New EggPet class.

Posted: Sun Aug 21, 2011 9:19 am
by Dsanchez
I ran across a few problems using the eggpet enabled and was wondering if there was a fix for them. 1. It will try to summon the eggpet while in combat, resulting in getting beatdown by mobs for an unreasonable amount of time. 2. It will feed an eggpet after dying and lay there without ressing.


Thanks.

Re: New EggPet class.

Posted: Sun Aug 21, 2011 9:50 am
by rock5
Why does it try to summon the pet during combat? Is it when the pet dies during combat? I would think that would hardly ever happen. I guess we could add a combat check.

If we fix this I expect the second problem might fix itself. Does it try to feed the pet when it dies or even when it doesn't die?

Re: New EggPet class.

Posted: Sun Aug 21, 2011 10:10 am
by botje
same problems i have been having.

it tries to call pet when i die, thus not ressing my char.

and first problem i have too xd

something i do see sometimes too, when my pet fights, bot goes haywire, it doesnt help pet, but tries to go on his way, but waypoints dont get followed anymore O.o

Botje

Re: New EggPet class.

Posted: Sun Aug 21, 2011 10:45 am
by Dsanchez
Pet doesn't die but it will unsummon pet to feed it.

Re: New EggPet class.

Posted: Sun Aug 21, 2011 11:36 am
by rock5
So the problem is it's feeding the pet during combat?

Thinking about it, returning the pet and feeding it isn't a problem as it's very fast and can't be interrupted. Resommoning it is the problem which his what I think you guys are saying.

I just checked the CEggPet:Summon() function and it already has a check to see if you are battling. But it looks like its designed to continue trying to summon the pet after the fight. If you die during that fight it gets stuck in the loop trying to feed the pet. I think just checking to see if you are alive should fix it. Could you try the following?

Change line 218 of eggpet.lua to

Code: Select all

	while self.EggId > 0 and self.Summoned == false and player.Alive and player.HP > 0 do
and let me know how it goes.

Re: New EggPet class.

Posted: Sun Aug 21, 2011 12:50 pm
by Dsanchez
no, the problem is it's trying to summon the pet while in combat. the pet is getting summoned not because it died but it was unsummoned so that it could be fed. i'll edit the code and see how it works.


ty

Re: New EggPet class.

Posted: Sun Aug 21, 2011 1:25 pm
by rock5
I understood that.

The feeding of a pet has 3 parts, returning the pet, feeding the pet and resummoning the pet. The whole process shouldn't start while in combat so I'm assuming it starts fighting just after starting the feeding process. The first 2 steps shouldn't be a problem because they happen instantly and can't be interrupted. The problem is if it is in combat when it's trying to resummon the pet and the character dies, then it will get stuck in a loop trying to feed the pet. The change I suggested above should stop it from trying to summon the pet and allow the bot to continue.

Re: New EggPet class.

Posted: Sun Aug 21, 2011 1:42 pm
by Dsanchez
also, when the pet is summoned and i die, it will feed the pet then continue trying to cast skills while i am still dead and not res. this is with the edited line above. i haven't run into the problem with summoning pet in combat yet, i'll keep you updated.


thanks

Re: New EggPet class.

Posted: Sun Aug 21, 2011 1:56 pm
by rock5
Are you saying it tries to feed the pet after you died? What skills does it try to cast when it's dead? Maybe if you pasted a copy of the micromacro output from when this happened might be useful.

Re: New EggPet class.

Posted: Sun Aug 21, 2011 5:06 pm
by Dsanchez
it does feed the pet after i'm dead. then it'll continue to try casting spells. atm i'm playing k/p so it was spamming urgent heal nonstop while i was dead.

Re: New EggPet class.

Posted: Mon Aug 22, 2011 12:24 am
by rock5
The bot should detect that you are dead when normally casting skills. Is it possible you added some code somewhere that casts heal until you are healed so it gets stuck in a loop? Maybe in one of the profile events?

Re: New EggPet class.

Posted: Tue Aug 23, 2011 3:43 pm
by Dsanchez
when i reported the error no, it was just in the regular list. but since then i've added my heals to the onskillcast section and the error happened there as well.

Image

note: regenerate is still not in the onskillcast section, it is only in the regular section for skills

Re: New EggPet class.

Posted: Tue Aug 23, 2011 7:23 pm
by lisa
Are you using partyhealer.xml ??

Re: New EggPet class.

Posted: Tue Aug 23, 2011 10:53 pm
by rock5
Can we have a look at your onskillcast section?