Page 10 of 15

Re: Rock5's Ancient Treasure

Posted: Sat Jan 12, 2013 6:42 pm
by lisa
many many moons ago we used to call it "sniper bunny" on Aus server, I could never work out how it happens but I did have it happen a few times to me while doing the dalanis events.

Re: Rock5's Ancient Treasure

Posted: Sun Jan 13, 2013 4:44 pm
by Ego95
Sorry, didn't got the time to test it today, I'll do it tomorrow.

AlterEgo95

Re: Rock5's Ancient Treasure

Posted: Mon Jan 14, 2013 2:42 pm
by Ego95
I gave it a try today. It did't fail, but the normal script doesn't fail every time too. Only things that happened (but this happens sometimes in the normal script too) is, that he teleports to a cande and then the casts gets interrupted by that teleport. So it flys to the first candle again, notices that it has already harvested it, flys to the second one, notices the same and then tries to harvest the third one again. This time it worked.
Sometimes - like today it does not wait for the mobs to despawn, so it ports in the chest room and maybe gets attacked. Today it didn't get attacked.

I can post the micromacro output if you want ^.^

I forgot to set the language to english before but there is not very much you can't understand. "Uraltes Steintotem" is the fragment and "Elementar-Kerzenleuchter" the candle

Code: Select all

Wegpunktpfad AT.xml geladen.
Es wurde keine Rückkehrpfaddatei mit dem Defaultnamen AT_return.xml gefunden.
Wir benutzen nun die normale Wegepunktdatei AT.xml.
GM detection started
Wir versuchen den NPC Ange Rasa zu finden:
Der NPC 'Ange Rasa' wurde erfolgreich ausgewählt. Wir öffnen das Dialogfenster.
Wir versuchen den NPC Ange Rasa zu finden:
Der NPC 'Ange Rasa' wurde erfolgreich ausgewählt. Wir öffnen das Dialogfenster.
Quest accepted: Sammelt Steintotemfragmente
Quest completed: Sammelt Steintotemfragmente
Wir versuchen den NPC Ange Rasa zu finden:
Der NPC 'Ange Rasa' wurde erfolgreich ausgewählt. Wir öffnen das Dialogfenster.
Drücke MACRO: RoMScript ausführen "ChoiceOption(4);".
Drücke MACRO: RoMScript ausführen "ChoiceOption(1);".
Spieleradresse geändert: 0x44415F00
Fernkampffähigkeit gefunden: MAGE_FLAME
Swimhack ACTIVATED!
Wir versuchen den NPC Luke Xavi zu finden:
Der NPC 'Luke Xavi' wurde erfolgreich ausgewählt. Wir öffnen das Dialogfenster.
Drücke MACRO: RoMScript ausführen "ChoiceOption(3);".
Drücke MACRO: RoMScript ausführen "ChoiceOption(1);".
Lösche Ziel.
Player Teleported to X: 4259    Z: 4078 Y: 74
Player Teleported to X: 4259    Z: 4078 Y: 75
Player Teleported to X: 4259    Z: 4078 Y: 76
Player Teleported to X: 4259    Z: 4078 Y: 77
Player Teleported to X: 4259    Z: 4078 Y: 78
Player Teleported to X: 4259    Z: 4078 Y: 79
Player Teleported to X: 4259    Z: 4078 Y: 80
Player Teleported to X: 4259    Z: 4078 Y: 81
Player Teleported to X: 4259    Z: 4078 Y: 82
Player Teleported to X: 4259    Z: 4078 Y: 83
Player Teleported to X: 4259    Z: 4078 Y: 84
Player Teleported to X: 4259    Z: 4078 Y: 85
Player Teleported to X: 4259    Z: 4078 Y: 86
Player Teleported to X: 4259    Z: 4078 Y: 120
Doing first 2 Uraltes Steintotem
Player Teleported to X: 3720    Z: 4286 Y: 7
Moving to Uraltes Steintotem
Player Teleported to X: 3701    Z: 4198 Y: 18
Wir haben Uraltes Steintotem gefunden und werden es abbauen.
Player Teleported to X: 3653    Z: 4203 Y: 91
Player Teleported to X: 3653    Z: 4203 Y: 92
Player Teleported to X: 3653    Z: 4203 Y: 93
Player Teleported to X: 3653    Z: 4203 Y: 94
Player Teleported to X: 3653    Z: 4203 Y: 95
Player Teleported to X: 3653    Z: 4203 Y: 96
Player Teleported to X: 3653    Z: 4203 Y: 97
Player Teleported to X: 3653    Z: 4203 Y: 98
Player Teleported to X: 3653    Z: 4203 Y: 99
Player Teleported to X: 3653    Z: 4203 Y: 100
Player Teleported to X: 3653    Z: 4203 Y: 101
Player Teleported to X: 3653    Z: 4203 Y: 102
Player Teleported to X: 3653    Z: 4203 Y: 103
Player Teleported to X: 3653    Z: 4203 Y: 120
Moving to Uraltes Steintotem
Player Teleported to X: 3698    Z: 4283 Y: 7
Player Teleported to X: 3637    Z: 4124 Y: 7
Player Teleported to X: 3634    Z: 4125 Y: 18
Wir haben Uraltes Steintotem gefunden und werden es abbauen.
Player Teleported to X: 3608    Z: 4185 Y: 91
Player Teleported to X: 3608    Z: 4185 Y: 92
Player Teleported to X: 3608    Z: 4185 Y: 93
Player Teleported to X: 3608    Z: 4185 Y: 94
Player Teleported to X: 3608    Z: 4185 Y: 95
Player Teleported to X: 3608    Z: 4185 Y: 96
Player Teleported to X: 3608    Z: 4185 Y: 97
Player Teleported to X: 3608    Z: 4185 Y: 98
Player Teleported to X: 3608    Z: 4185 Y: 99
Player Teleported to X: 3608    Z: 4185 Y: 100
Player Teleported to X: 3608    Z: 4185 Y: 101
Player Teleported to X: 3608    Z: 4185 Y: 102
Player Teleported to X: 3608    Z: 4185 Y: 103
Player Teleported to X: 3608    Z: 4185 Y: 120
Going under.
Player Teleported to X: 3704    Z: 4284 Y: 7
Moving to Uraltes Steintotem
Player Teleported to X: 3796    Z: 3788 Y: 12
Harvsting item...
Wir haben Uraltes Steintotem gefunden und werden es abbauen.
Teleporting back down from location 3793.180176, 3787.387207, 12.000000
Player Teleported to X: 3793    Z: 3787 Y: 7
Moving to Elementar-Kerzenleuchter
Player Teleported to X: 3684    Z: 3554 Y: 12
Harvsting item...
Wir haben Elementar-Kerzenleuchter gefunden und werden es abbauen.
Teleporting back down from location 3683.882813, 3553.937988, 12.788570
Player Teleported to X: 3683    Z: 3553 Y: 7
Moving to Uraltes Steintotem
Bot pausiert. (ENTF) drücken um weiterzumachen, (CTRL+L) beendet den Bot, (CTRL+
C) schließt das Micromacro Fenster
Resumed.
Player Teleported to X: 3976    Z: 3450 Y: 12
Harvsting item...
Wir haben Uraltes Steintotem gefunden und werden es abbauen.
Teleporting back down from location 3977.685791, 3453.540771, 12.000000
Player Teleported to X: 3977    Z: 3453 Y: 7
Moving to Uraltes Steintotem
Player Teleported to X: 4104    Z: 3522 Y: 12
Harvsting item...
Wir haben Uraltes Steintotem gefunden und werden es abbauen.
Teleporting back down from location 4105.813477, 3526.119873, 12.000000
Player Teleported to X: 4105    Z: 3526 Y: 7
Moving to Elementar-Kerzenleuchter
Player Teleported to X: 4168    Z: 3832 Y: 12
Harvsting item...
Wir haben Elementar-Kerzenleuchter gefunden und werden es abbauen.
Teleporting back down from location 4164.626465, 3833.561523, 12.000000
Player Teleported to X: 4164    Z: 3833 Y: 7
Moving to Elementar-Kerzenleuchter
Player Teleported to X: 3850    Z: 4027 Y: 12
Harvsting item...
Wir haben Elementar-Kerzenleuchter gefunden und werden es abbauen.
Teleporting back down from location 3845.314697, 4025.482666, 14.163153
Player Teleported to X: 3845    Z: 4025 Y: 7
Moving to next point
Moving to Elementar-Kerzenleuchter
Player Teleported to X: 3684    Z: 3556 Y: 12
Harvsting item...
Wir haben Elementar-Kerzenleuchter gefunden und werden es abbauen.
Teleporting back down from location 3688.492676, 3551.358887, 12.000000
Player Teleported to X: 3688    Z: 3551 Y: 7
Moving to Elementar-Kerzenleuchter
Player Teleported to X: 4164    Z: 3834 Y: 12
Harvsting item...
Wir haben Elementar-Kerzenleuchter gefunden und werden es abbauen.
Teleporting back down from location 4165.149902, 3837.087646, 14.032017
Player Teleported to X: 4165    Z: 3837 Y: 7
Moving to Elementar-Kerzenleuchter
Player Teleported to X: 3852    Z: 4026 Y: 12
Harvsting item...
Wir haben Elementar-Kerzenleuchter gefunden und werden es abbauen.
Teleporting back down from location 3852.999756, 4034.021484, 12.000000
Player Teleported to X: 3852    Z: 4034 Y: 7
Moving to next point
Going to chest room.
Player Teleported to X: 3837    Z: 3993 Y: 18
Player Teleported to X: 3842    Z: 3838 Y: 49
Player Teleported to X: 3880    Z: 3867 Y: 55
Opening Material chests.
Player Teleported to X: 3880    Z: 3867 Y: 55
Wir haben Alte Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3880    Z: 3854 Y: 55
Wir haben Alte Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3879    Z: 3841 Y: 55
Wir haben Alte Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3879    Z: 3828 Y: 55
Wir haben Alte Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3879    Z: 3815 Y: 55
Wir haben Alte Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3797    Z: 3817 Y: 55
Wir haben Alte Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3797    Z: 3830 Y: 55
Wir haben Alte Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3797    Z: 3843 Y: 55
Wir haben Alte Schatztruhe gefunden und werden es abbauen.
Wir haben Alte Schatztruhe gefunden und werden es abbauen.
Wir haben Alte Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3797    Z: 3869 Y: 55
Wir haben Alte Schatztruhe gefunden und werden es abbauen.
Placing Zaubergl├╝cksgrashalm in the itemshop backpack.
Placing Mondscheinperle in the itemshop backpack.
Placing Sonnenuntergangskornähre in the itemshop backpack.
Opening Rune chests.
Player Teleported to X: 3814    Z: 3812 Y: 55
Wir haben Jade-Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3827    Z: 3812 Y: 55
Wir haben Jade-Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3840    Z: 3812 Y: 55
Wir haben Jade-Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3853    Z: 3812 Y: 55
Wir haben Jade-Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3866    Z: 3812 Y: 55
Wir haben Jade-Schatztruhe gefunden und werden es abbauen.
Opening Mount chests.
Player Teleported to X: 3866    Z: 3829 Y: 55
Wir haben Amethyst-Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3853    Z: 3829 Y: 55
Wir haben Amethyst-Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3840    Z: 3829 Y: 55
Wir haben Amethyst-Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3827    Z: 3829 Y: 55
Wir haben Amethyst-Schatztruhe gefunden und werden es abbauen.
Player Teleported to X: 3814    Z: 3829 Y: 55
Wir haben Amethyst-Schatztruhe gefunden und werden es abbauen.
Succeeded with  4:20 remaining.
Swimhack DEactivated.
Did not find any crashed game clients.
8:35pm - [string "..."]:571: Ending script


Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script>

Re: Rock5's Ancient Treasure

Posted: Mon Jan 14, 2013 3:16 pm
by rock5
AlterEgo95 wrote:that he teleports to a cande and then the casts gets interrupted by that teleport
Hopefully it doesn't happen very often. Luckily it does go round again if it missed any. Unfortunately we can't tell which candles have been clicked so it has to check all of them again.
AlterEgo95 wrote:Sometimes - like today it does not wait for the mobs to despawn, so it ports in the chest room and maybe gets attacked. Today it didn't get attacked.
Do you actually get attacked? Because I've popped up in from of the mobs numerous times and they have never attacked me. But if they actually attack you then I can easily add a couple of seconds to the wait.
AlterEgo95 wrote:I can post the micromacro output if you want ^.^
I notice that it went down from a height of 14 a couple of times even though it teleported to 12. That means it is moving when collecting the candles.

Re: Rock5's Ancient Treasure

Posted: Mon Jan 14, 2013 3:52 pm
by Ego95
Do you actually get attacked? Because I've popped up in from of the mobs numerous times and they have never attacked me. But if they actually attack you then I can easily add a couple of seconds to the wait.
It's not the time it waits until mobs are despawned. My char pops out every time into the mobs, but just in that moment they disappear. But sometimes, like today it does not wait for the mobs. It collects the last candle on goes straight on to the chest room.

Re: Rock5's Ancient Treasure

Posted: Mon Jan 14, 2013 11:16 pm
by rock5
The wait timer starts from the last candle clicked so if it ends up collecting a couple of fragments after the last candle then it is quite possible that it will go right up because the timer has already expired.

Re: Rock5's Ancient Treasure

Posted: Mon Jan 21, 2013 10:21 am
by kenzu38
apple wrote:iam using this waypoint for a long time now, but last 2 days iam getting something wierd, this is what happends:
I enter AT then my char talks to npc and the game starts.
bot goes up, wants to fly a bit to the right so he can go under (if i remember right)
but when i start moving, i get knocked down by a skill or something (the sign of the debuff is a white bunny (its not a joke) )
This, my chars have been getting this a lot lately as well. So it's most probably an anti-bot mechanism.

Sometimes though, if the char gets lucky because of lag or something it gets knocked down late and this causes it to drop under the ground. The sniping stops at this point and you just have to turn fly on again as the swimhack gets turned off when the char drops.

Also, one key point is that:
apple wrote:bot goes up, wants to fly a bit to the right so he can go under (if i remember right)
I noticed that the sniping always starts when the char moves to the right after going up through the roof so it seems like the anti-bot is only set up on one of the many starting points.

Btw rock, is the AT waypoint supposed to be ressing my char automatically? I wonder why my chars don't get resurrected.

I use userdefault profile (which is basically just the default profile with more skills added to it) and I have these lines:

Code: Select all

		<!-- Log out and resurrect settings -->
		<option name="LOGOUT_TIME" 			value="0" />			<!-- in minutes, 0 = timer disabled -->
		<option name="LOGOUT_SHUTDOWN"		value="false" />
		<option name="LOGOUT_WHEN_STUCK"	value="true" />
		<option name="CLOSE_WHEN_STUCK"		value="true" />
		<option name="RES_AFTER_DEATH" 		value="true" />
		<option name="MAX_DEATHS" 			value="10" /> 			<!-- Log out after this many deaths -->
My chars got sniped multiple times and the bot didn't res them automatically after that.

I'm using RC3 and client version is 5.0.6.2607. Although I remember even when using regular Rombot and RC2, it won't res automatically as well.

Anything I'm doing wrong?

Thanks.

Re: Rock5's Ancient Treasure

Posted: Mon Jan 21, 2013 10:46 am
by rock5
Basically because it does everything in the onload, it bypasses everything the bot does automatically. To support rezing I would have to ad various checks throughout the code. It would be a big job that I don't think is worth the effort, especially as it's a pretty flawless script, well for me anyway. I don't know how people manage to die so easily. :P

Re: Rock5's Ancient Treasure

Posted: Mon Jan 21, 2013 11:25 am
by kenzu38
I see. Lol well, my chars didn't keep on getting killed until recently, that anti-bot measure the GMs might have set up sure is a pain.

Pretty frustrating that there's no easy way around it. Well, I guess I'll just try the model files so that I can at least prevent the rare cases of my chars getting killed by that monster that pops up in CoT.

Anyway, thanks for the fast reply. :)

Re: Rock5's Ancient Treasure

Posted: Thu Jan 24, 2013 9:49 pm
by kenzu38
Hey rock, my chars are still getting sniped by the anti-bot thing when doing AT minigame, and it's annoying how the script gets stuck coz it doesn't auto-res and the rest of the chars in the account can't do AT anymore. So I really want to at least make sure the other chars get to do AT.

So I thought up of some possible solutions to this and what I have in mind right now is something like a HP monitor userfunction which when called on the onload section will constantly monitor a char's hp and if it gets killed, res it or relog that char.

First of all, is something like this possible?

And if it is, then will it be a simple code? Maybe something like:

Code: Select all

function hpmonitor()
repeat
player:update()
if not player.Alive then
relog or res code here
end
until (dunno what to put here)
rest of the code
Or is it supposed to be more complicated?

Thanks.

Re: Rock5's Ancient Treasure

Posted: Thu Jan 24, 2013 10:10 pm
by lisa
that wouldn't work as you would be stuck in that repeat loop and not do any other code in the waypoint.

Simpliest solution would be to start an event timer (which is independant of the Wp code) which checks if you are alive and if not then relog/loadpath.
There may be some issues to deal with but they won't be apparent until it is tested.

Re: Rock5's Ancient Treasure

Posted: Thu Jan 24, 2013 11:19 pm
by lisa
you would be looking at something like this.

Code: Select all

function ATdeadcheck()
	if player:exists() then
		player:updateAlive()
		if not player.Alive then
			unregisterTimer("ATdeadrelog");
			checkRelog()
		end
	end
end
unregisterTimer("ATdeadrelog");
registerTimer("ATdeadrelog", secondsToTimer(1), ATdeadcheck);
no idea what the relog function is called so I just did checkRelog().

You should also add a unregisterTimer("ATdeadrelog"); in the relog function to make sure the timer stops when reloging, it should be fine without it but it is good practise to stop timers when changing chars or paths.

Re: Rock5's Ancient Treasure

Posted: Fri Jan 25, 2013 12:12 am
by kenzu38
Hey lisa, thanks for the code! :D

Hmm, if you're not sure with the relog function then I can just use ChangeChar("current") for relogging, right?

Still not familiar with timers, I read the wiki but I can't understand it fully so just wanted to know if the code you posted is "good to go" and ready for testing or do I have to add some more things to it?

Also, can I use this as a userfunction or just for the onload section of the AT waypoint?

Thanks.

Re: Rock5's Ancient Treasure

Posted: Fri Jan 25, 2013 12:49 am
by lisa
I had a look and AT does use checkRelog() to change chars, so you should be able to just copy paste it to the WP file. I would probably pop it in around line 35.

after this line
--====================--

before this line.
local medalshop = {

Won't know if it works without issue until you try it ;)
lisa wrote:There may be some issues to deal with but they won't be apparent until it is tested.

Re: Rock5's Ancient Treasure

Posted: Fri Jan 25, 2013 1:47 am
by rock5
I'll give it a go but the problem is, if it is in the middle of trying to do something when it relogs, it will keep trying to do it even after it rezes, relogs or even change character. So you might end up with some unusual behaviour. But like Lisa said, we wont really know until we try it.

Ok try this version. It has some other changes to 3.6 which I will list here.
  • - Removed SlowTeleports option. Now it's always slow. It doesn't really add that much time and is more reliable.
    - Modified logging feature to be compatible with rev 745 "romglobal" folder feature.
    - Double checks some teleports and does a moveTo if they fail.
    - Attempts to recover if it pops up through the floor when collecting candles. Needs testing.
    - Changed a "math.mod" command to "math.fmod" to support lua 5.2.
    - Added resurrecting if killed. Needs testing.
--== Test File moved to first post ==--

Re: Rock5's Ancient Treasure

Posted: Fri Jan 25, 2013 2:37 am
by lisa
This is what I used for testing

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
function ATdeadcheck()
	if player:exists() then
		player:update()
		if player.MP ~= player.MaxMP then
			unregisterTimer("ATdeadrelog");
			sendMacro("}LoginNextToon=true;a={")
			sendMacro("Logout();");
			waitForLoadingScreen();
			loadPaths("1")
		end
	end
end
unregisterTimer("ATdeadrelog");
registerTimer("ATdeadrelog", secondsToTimer(1), ATdeadcheck);
local count = 0
while(true) do
	yrest(1000)
	count = count +1
	print(count)
end
</onLoad>
</waypoints>

So it just keeps counting up and doing a print each second, I would use a skill to make mana drop and then it logged next char. Seemed to work, that's why I thought to give it a try =)

Re: Rock5's Ancient Treasure

Posted: Fri Jan 25, 2013 3:08 am
by rock5
So doesn't mine work?

So with your test, after relog, did the counter reset to 0? (assuming you were reloading the same file, although it would probably be better to load another file that does something else)

Re: Rock5's Ancient Treasure

Posted: Fri Jan 25, 2013 3:17 am
by rock5
It didn't work for me. I had it load a second file

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
while(true) do
    print("hiho")
end
</onLoad>
</waypoints>
After the reload it just kept printing the count

Code: Select all

7
8
9
10
Use MACRO: Executing RoMScript "}LoginNextToon=true;a={".
Use MACRO: Executing RoMScript "Logout();".
Player address changed: 0x52C20F00
No ranged skills specified in profile; Turning COMBAT_RANGED_PULL off.
Maximum range of range attack skills is less than COMBAT_DISTANCE 170. Reducing
COMBAT_DISTANCE setting to 50.
Loaded waypoint path 2.xml
No return path with default naming 2_return.xml found.
We use the normal waypoint path 2.xml now.
11
12
13
14
15

Re: Rock5's Ancient Treasure

Posted: Fri Jan 25, 2013 3:27 am
by lisa
Hmm that probably won't work then, so yours didn't load the second path at all then? Interesting

Re: Rock5's Ancient Treasure

Posted: Fri Jan 25, 2013 3:56 am
by rock5
lisa wrote:Hmm that probably won't work then, so yours didn't load the second path at all then? Interesting
I think it loads it but doesn't run it until the previous onload finishes which it never will.