timelimit

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Starrider
Posts: 164
Joined: Sat May 01, 2010 7:04 am
Location: Germany

timelimit

#1 Post by Starrider »

Is there any possibility to let the bot farm with a timelimit in a zone an then to load a waypointfile that the bot goes to the npc and selling his trashloot and then foward to the next farming zone? And how to use the teleporter?
swietlowka
Posts: 316
Joined: Wed Jun 16, 2010 8:16 am

Re: timelimit

#2 Post by swietlowka »

for teleport use player:target_Object(_objname, _waittime, _harvestall, _donotignore, _evalFunc);
from http://www.solarstrike.net/wiki/index.p ... _Functions and the use ChoseOption function for telporting and yrest to w8 some time to not let it unstick-logout,

there functions for doing something in comparision with time here:
http://www.solarstrike.net/wiki/index.p ... _Variables

but since theres no more os.time i would say theyre obsolete now, u can always use killed mob or smt diffrent
Alkaiser
Posts: 222
Joined: Sat Sep 25, 2010 2:03 pm

Re: timelimit

#3 Post by Alkaiser »

I might be wrong about this, but, I believe the os.time() function in MicroMacro is independent from the game's os.time() (non)function. It should work.
Starrider
Posts: 164
Joined: Sat May 01, 2010 7:04 am
Location: Germany

Re: timelimit

#4 Post by Starrider »

My idea was to use in any way the timestamp from micromacro. There still stand bot is runnning for xx minutes. So i thought that there is any possibility to use this.
Alkaiser
Posts: 222
Joined: Sat Sep 25, 2010 2:03 pm

Re: timelimit

#5 Post by Alkaiser »

This works for me:

Code: Select all

<onLoad>
	fighttime = os.time()
</onLoad>
	
	if( os.difftime(os.time(), fighttime) > 3600 ) then -- true if one hour has passed since onLoad event
		...
	end

The example linked above by swietlowka is basically the same.

Code: Select all

	if( os.difftime(os.time(), player.BotStartTime) > 3600 ) then
   		...
	end
swietlowka
Posts: 316
Joined: Wed Jun 16, 2010 8:16 am

Re: timelimit

#6 Post by swietlowka »

ofc you would have to call for some other wpl or waypoint file to go for your teleporter frome the place of check and then use teleport functions
Post Reply