Automacro timeout

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

Raider
The Kore Devil
The Kore Devil
Posts: 672
Joined: 22 Feb 2013, 03:40
Noob?: No
Location: The Netherlands

Automacro timeout

#1 Post by Raider »

Hello, a friendly member already tried to help me with this macro, but the automacro still doesn't care about the timeout.

I now got this:

Code: Select all

automacro warper {
status not Dead
location not prontera,amatsu,aldebaran
run-once 1
call {
do conf macrotimeout @random("20","150","500")
do c @random ("@go amatsu","@go prontera","@go aldebaran")
pause 1
release warper
}
timeout @config(macrotimeout)
}
}
gamenikko
The Way Of Human
The Way Of Human
Posts: 192
Joined: 16 Aug 2009, 03:47
Noob?: Yes
Location: Gonryun

Re: Automacro timeout

#2 Post by gamenikko »

Raider wrote:Hello, a friendly member already tried to help me with this macro, but the automacro still doesn't care about the timeout.

I now got this:

Code: Select all

automacro warper {
status not Dead
location not prontera,amatsu,aldebaran
run-once 1
call {
do conf macrotimeout @random("20","150","500")
do c @random ("@go amatsu","@go prontera","@go aldebaran")
pause 1
release warper
}
timeout @config(macrotimeout)
}
}
Its because of the "release waper"

try this:

Code: Select all

automacro warper {
status not Dead
location not prontera,amatsu,aldebaran
timeout 10
call {
do c @random ("@go amatsu","@go prontera","@go aldebaran")
 }
}
Just like old times.
Raider
The Kore Devil
The Kore Devil
Posts: 672
Joined: 22 Feb 2013, 03:40
Noob?: No
Location: The Netherlands

Re: Automacro timeout

#3 Post by Raider »

Yes, but the problem is that I want to generate a random timeout.
User avatar
4epT
Developers
Developers
Posts: 627
Joined: 30 Apr 2008, 14:17
Noob?: No
Discord: ya4ept#8494
Location: Moskow (Russia)

Re: Automacro timeout

#4 Post by 4epT »

Code: Select all

automacro warper {
status not Dead
location not prontera,amatsu,aldebaran
run-once 1
call {
 do c @random ("@go amatsu","@go prontera","@go aldebaran")
 pause @random("20","150","500")
 release warper
}
}
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image
Raider
The Kore Devil
The Kore Devil
Posts: 672
Joined: 22 Feb 2013, 03:40
Noob?: No
Location: The Netherlands

Re: Automacro timeout

#5 Post by Raider »

4epT wrote:

Code: Select all

automacro warper {
status not Dead
location not prontera,amatsu,aldebaran
run-once 1
call {
 do c @random ("@go amatsu","@go prontera","@go aldebaran")
 pause @random("20","150","500")
 release warper
}
}
Thanks for your help, but the pause command stops the bot totally which I don't wait.
I want the automacro to wait for the random generated time before it warps to another map.
gamenikko
The Way Of Human
The Way Of Human
Posts: 192
Joined: 16 Aug 2009, 03:47
Noob?: Yes
Location: Gonryun

Re: Automacro timeout

#6 Post by gamenikko »

Code: Select all

automacro warper {
status not Dead
location not prontera,amatsu,aldebaran
timeout 5
call {
$i = @rand (0, 5)
if ($i != 5) stop
do c @random ("@go amatsu","@go prontera","@go aldebaran")
}
}
Okay, this does what you want.
Please try it maybe 5 times first before making a feedback.
Just like old times.
Raider
The Kore Devil
The Kore Devil
Posts: 672
Joined: 22 Feb 2013, 03:40
Noob?: No
Location: The Netherlands

Re: Automacro timeout

#7 Post by Raider »

gamenikko wrote:

Code: Select all

automacro warper {
status not Dead
location not prontera,amatsu,aldebaran
timeout 5
call {
$i = @rand (0, 5)
if ($i != 5) stop
do c @random ("@go amatsu","@go prontera","@go aldebaran")
}
}
Okay, this does what you want.
Please try it maybe 5 times first before making a feedback.
Thanks Gamenikko! This is working nicely!
I think I'm going to look to the rate of probability now, because between 20 and 3600 seconds there is a huge difference. Sorry to ask a question again, but I'm now using two goto routes Short and Long, is there a way to let a route loop with having a timeout of 20?

E.g:

Code: Select all

:short 
while ($i != 2) as loop
$i = @rand (0, 2)
if ($i != 2) close
if ($i == 2) goto warp
end loop
Something like:

Code: Select all

automacro warper {
status not Dead
location not prontera,amatsu,aldebaran
timeout 20
call {
$i = @rand (0, 1)
if ($i != 0) goto short
if ($i != 1) goto long
:short 
while ($i != 2) as loop
$i = @rand (0, 2)
if ($i != 2) close
if ($i == 2) goto warp
end loop
:long
while ($i != 8) as loop
$i = @rand (0, 8)
if ($i != 8) close
if ($i == 8) goto warp
end loop
:warp
do c @random ("@go amatsu","@go prontera","@go aldebaran")
}
}
gamenikko
The Way Of Human
The Way Of Human
Posts: 192
Joined: 16 Aug 2009, 03:47
Noob?: Yes
Location: Gonryun

Re: Automacro timeout

#8 Post by gamenikko »

I dont really understand what you are trying to do,
all I can say is dont use loop in that matter, use if instead.
and before
:short
you need
stop

ex:

Code: Select all

call {
$i = @rand (0, 1)
if ($i != 0) goto short
if ($i != 1) goto long
stop << you need this or else it will go to short even the $i is equal to long.
:short 
blabla 
try to rephrase what you are trying to do, maybe if I understand your goal I can help.

Edit:
I guess you are trying not to look like a bot, I think?
Well what you're trying to do will not help if thats your goal. Just saying,
a bot is a bot even how much randomness it does.
Just like old times.
Raider
The Kore Devil
The Kore Devil
Posts: 672
Joined: 22 Feb 2013, 03:40
Noob?: No
Location: The Netherlands

Re: Automacro timeout

#9 Post by Raider »

My goal is to have an automacro that automatically warps to a random location after a random generated timeout.
My first goal was to have a range from a timeout of 20 seconds to a maximum of 3600 seconds.
We now have every 20 seconds a random number generation in a range of 0 to 5.
Would this range be enough to reach it some time to 3600 seconds or do we need two routes?

Code: Select all

$i = @rand (0, 5)
if ($i != 5) stop
gamenikko
The Way Of Human
The Way Of Human
Posts: 192
Joined: 16 Aug 2009, 03:47
Noob?: Yes
Location: Gonryun

Re: Automacro timeout

#10 Post by gamenikko »

This code is enough.

Code: Select all

automacro warper {
status not Dead
location not prontera,amatsu,aldebaran
timeout 5
call {
$i = @rand (0, 5) #<<< just change this to @rand(0, 20) just change that and the probability will be lessened you just need to experiment with this                                       
if ($i != 5) stop
do c @random ("@go amatsu","@go prontera","@go aldebaran")
}
}
Just like old times.