Rock5's Ancient Treasure

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Message
Author
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Rock5's Ancient Treasure

#181 Post by lisa » Sat Jan 12, 2013 6:42 pm

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.
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

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Rock5's Ancient Treasure

#182 Post by Ego95 » Sun Jan 13, 2013 4:44 pm

Sorry, didn't got the time to test it today, I'll do it tomorrow.

AlterEgo95

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Rock5's Ancient Treasure

#183 Post by Ego95 » Mon Jan 14, 2013 2:42 pm

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>

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Ancient Treasure

#184 Post by rock5 » Mon Jan 14, 2013 3:16 pm

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.
  • 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

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Rock5's Ancient Treasure

#185 Post by Ego95 » Mon Jan 14, 2013 3:52 pm

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.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Ancient Treasure

#186 Post by rock5 » Mon Jan 14, 2013 11:16 pm

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.
  • 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

kenzu38
Posts: 279
Joined: Sun Dec 02, 2012 8:52 am

Re: Rock5's Ancient Treasure

#187 Post by kenzu38 » Mon Jan 21, 2013 10:21 am

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.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Ancient Treasure

#188 Post by rock5 » Mon Jan 21, 2013 10:46 am

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
  • 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

kenzu38
Posts: 279
Joined: Sun Dec 02, 2012 8:52 am

Re: Rock5's Ancient Treasure

#189 Post by kenzu38 » Mon Jan 21, 2013 11:25 am

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. :)

kenzu38
Posts: 279
Joined: Sun Dec 02, 2012 8:52 am

Re: Rock5's Ancient Treasure

#190 Post by kenzu38 » Thu Jan 24, 2013 9:49 pm

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.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Rock5's Ancient Treasure

#191 Post by lisa » Thu Jan 24, 2013 10:10 pm

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.
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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Rock5's Ancient Treasure

#192 Post by lisa » Thu Jan 24, 2013 11:19 pm

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.
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

kenzu38
Posts: 279
Joined: Sun Dec 02, 2012 8:52 am

Re: Rock5's Ancient Treasure

#193 Post by kenzu38 » Fri Jan 25, 2013 12:12 am

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.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Rock5's Ancient Treasure

#194 Post by lisa » Fri Jan 25, 2013 12:49 am

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.
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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Ancient Treasure

#195 Post by rock5 » Fri Jan 25, 2013 1:47 am

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 ==--
  • 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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Rock5's Ancient Treasure

#196 Post by lisa » Fri Jan 25, 2013 2:37 am

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 =)
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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Ancient Treasure

#197 Post by rock5 » Fri Jan 25, 2013 3:08 am

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)
  • 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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Ancient Treasure

#198 Post by rock5 » Fri Jan 25, 2013 3:17 am

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
  • 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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Rock5's Ancient Treasure

#199 Post by lisa » Fri Jan 25, 2013 3:27 am

Hmm that probably won't work then, so yours didn't load the second path at all then? Interesting
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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Ancient Treasure

#200 Post by rock5 » Fri Jan 25, 2013 3:56 am

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.
  • 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

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests