Page 1 of 1
'dying' when transporting
Posted: Thu Nov 28, 2013 5:39 pm
by ZZZZZ
Im having an issue with a lot of my characters lately where after I teleport (change zone @ snoop, even just vara transporters etc), the bot seems to think that the character has died and sits there doing the usual rest after dying, and then reloads the waypoint which can cause it to return somewhere I don't want it to go.
Code: Select all
We successfully target NPC Bareve and try to open the dialog window.
Use MACRO: Executing RoMScript "ChoiceOption(4);".
Clearing target.
Moving to waypoint #30, (2355, 1128)
Saved a screenshot to: E:/micromacro/scripts/rom/profiles/player.bmp
Died. Resurrecting player...
We will try to resurrect in 5 seconds.
Try to use the ingame resurrect macro ...
Player address changed: 0x3A28FA00
Ranged skill found: MAGE_THUNDERSTORM
Maximum range of range attack skills is less than COMBAT_DISTANCE 250. Reducing
COMBAT_DISTANCE setting to 225.
You have died 1 times from the maximum 10 deaths/automatic resurrections.
Returning to waypoints.
Resting for 15 seconds.
Character is alive the whole time.
Re: 'dying' when transporting
Posted: Thu Nov 28, 2013 6:07 pm
by Bill D Cat
Just curious, are you using Rock5's userfunction_travelTo when this happens, or are you scripting your own routines to transport?
Re: 'dying' when transporting
Posted: Thu Nov 28, 2013 7:11 pm
by ZZZZZ
My own routes, never used any travel userfunctions.
Re: 'dying' when transporting
Posted: Fri Nov 29, 2013 12:53 am
by rock5
Do you include a waitForLoadingScreen()?
Re: 'dying' when transporting
Posted: Fri Nov 29, 2013 2:43 am
by ZZZZZ
yep, there is a waitForLoadingScreen() at all of my loading screens.
eg.
Code: Select all
<!-- # 18 --><waypoint x="-20476" z="6519" y="-187"> player:target_NPC(122115); -- Snoop the Stubborn
yrest(1000);
ChoiceOptionByName("Varanas")
waitForLoadingScreen()
</waypoint>
Re: 'dying' when transporting
Posted: Fri Nov 29, 2013 3:06 am
by rock5
Sometimes the game needs a bit more time to be fully loaded so try adding this after the waiForLoadingScreen()
I use a rest here instead of a yrest because if the game isn't fully loaded yet we don't want to yield to any other processes yet.
Re: 'dying' when transporting
Posted: Fri Nov 29, 2013 6:23 am
by ZZZZZ
Is it possible to add rest(2000) to the actual waitForLoadingScreen() function to save having to change all my waypoints?
Re: 'dying' when transporting
Posted: Fri Nov 29, 2013 7:04 am
by rock5
It already has a rest(2000) but it's possible that your system in particular needs a bit more time. There is no reason why you can't go ahead and increase that rest to 4000 to see if it helps. The function is in functions.lua around line 1450. Change the rest at the end of the function.
Re: 'dying' when transporting
Posted: Fri Nov 29, 2013 7:37 am
by ZZZZZ
ok will give it a shot, thanks again.
Re: 'dying' when transporting
Posted: Fri Nov 29, 2013 3:38 pm
by Ego95
Code: Select all
<!-- # 18 --><waypoint x="-20476" z="6519" y="-187"> player:target_NPC(122115); -- Snoop the Stubborn
yrest(1000);
ChoiceOptionByName("Varanas")
waitForLoadingScreen()
</waypoint>
You are missing the part where is accepts the costs of teleporting. The popup which appears and tells you, how much it will cost.
Re: 'dying' when transporting
Posted: Fri Nov 29, 2013 6:22 pm
by Bill D Cat
There are a few add-ons out there that will auto-accept the transport payment dialogs.
Not sure if the OP is using one or not though.
Re: 'dying' when transporting
Posted: Fri Nov 29, 2013 6:49 pm
by ZZZZZ
Correct Bill, have been using that Addon pretty much since day 1 of playing, those things pissed me off way too much and they are so insignificant in gold cost lol.