Openkore.com

OpenKore Forums
It is currently 17 Nov 2018, 15:11

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Alberta Daily Cargo Quest Macro
PostPosted: 28 Jun 2010, 03:30 
Offline
Noob
Noob

Joined: 09 Jun 2010, 23:42
Posts: 11
this is for pinoy out there tired of walking back en forth around alberta

just set your characters in changeCHAR macro
the default number of char is 5, just edit the macro if you want to add

this code is not mine, thanks to the persons who make the code you know who you are if you are reading this.

i just added change character

Code:
######AUTOMACROS#########

automacro MOVEtoALBERTA {
   location not alberta
   call {
      do move alberta
   }
   timeout 60
}

#START THE QUEST
automacro STARTQUEST {
   console /Your Coordinates:/
   location alberta
   call PORTNPC
   timeout 5
}

#END TALKING TO MIMIC
automacro ENDmimic1 {   
   console /before it changes its mind/
   call PORTNPC
   timeout 5
}

automacro ENDmimic2 {   
   console /have already moved/
   call PORTNPC
   timeout 5
}

# TALK TO MIMIC AGAIN
automacro RETALKmimic {
   location alberta
   console /Deadly Cargo (.*) That/
   call retalkMIMIC
   timeout 0
}

#go to mimic
automacro MIMIC1-a {
   console /recognize the first crate/
   call {
      $mimic = first
      call talkMIMIC
   }
   timeout 5
}

automacro MIMIC1-b {
   console /get me the first crate/
   call {
      $mimic = first
      call talkMIMIC
   }
   timeout 5
}

automacro MIMIC2-a {
   console /retrieve the second crate/   
   call {
      $mimic = second
      call talkMIMIC
   }   
   timeout 5
}

automacro MIMIC2-b {
   console /get me the second crate/
   call {
      $mimic = second
      call talkMIMIC
   }
   timeout 5
}



automacro MIMIC3-a {
   console /third crate should be with/
   call {
      $mimic = third
      call talkMIMIC
   }
   timeout 5
}

automacro MIMIC4-a {
   console /get me the fourth crate/
   call {
      $mimic = fourth
      call talkMIMIC
   }
   
   timeout 5
}

automacro MIMIC5-a {
   console /find the fifth crate/
   call {
      $mimic = fifth
      call talkMIMIC
   }   
   
   timeout 5
}

automacro MIMIC6-a {
   console /sixth create has been found/
   call {
      $mimic = sixth
      call talkMIMIC
   }
   timeout 5
}

automacro MIMIC6-b {
   console /our wounded scouts have reported/
   call {
      $mimic = sixth
      call talkMIMIC
   }
   timeout 5
}

#QUEST FINISH CHANGING CONFIG
automacro FINISHa {
   console /already did work for today/
   call changeCHAR
   timeout 5
}

automacro FINISHb {
   console /come back 20 hours/
   call changeCHAR
   timeout 5
}

#######MACROS###########

macro PORTNPC {
   $x = @random ("94","95","96","97","98")
   $y = @random ("60","61","62","63","64")
   do move alberta $x $y
   do talknpc 90 62 c r0 n   
}

macro talkMIMIC {   
   if ($mimic == first) goto mimic1
   if ($mimic == second) goto mimic2
   if ($mimic == third) goto mimic3
   if ($mimic == fourth) goto mimic4
   if ($mimic == fifth) goto mimic5
   if ($mimic == sixth) goto mimic6
   stop
   :mimic1
   $x = @random ("187","188","189","190","191")
   $y = @random ("164","165","166","167","168")
   do move $x $y
   do talknpc 188 173 c n
   stop
   :mimic2
   $x = @random ("224","225","226","227","228")
   $y = @random ("102","103","104","105","106")
   do move $x $y
   do talknpc 232 104 c n
   stop
   :mimic3
   $x = @random ("238","239","240","241","242")
   $y = @random ("88","89","90","91","92")
   do move $x $y
   do talknpc 246 87 c n   
   stop   
   :mimic4
   $x = @random ("238","239","240","241","242")
   $y = @random ("64","65","66","67","68")
   do move $x $y
   do talknpc 245 67 c n
   stop
   :mimic5
   $x = @random ("235","236","237","238","239")
   $y = @random ("40","41","42","43","44")
   do move $x $y
   do talknpc 243 43 c n
   stop
   :mimic6
   $x = @random ("114","115","116","117","118")
   $y = @random ("215","216","217","218","219")
   do move $x $y
   do talknpc 123 221 c n
   stop
}

macro retalkMIMIC {
   $num = $.lastMatch1   
   goto mimic
   stop
   :mimic   
   if ($num == [1]#:) goto retalk1
   if ($num == [2]#:) goto retalk2
   if ($num == [3]#:) goto retalk3
   if ($num == [4]#:) goto retalk4
   if ($num == [5]#:) goto retalk5
   stop
   :retalk1
   do talknpc 188 173 c n
   stop
   :retalk2
   do talknpc 232 104 c n
   stop
   :retalk3
   do talknpc 246 87 c n
   stop
   :retalk4
   do talknpc 245 67 c n
   stop
   :retalk5
   do talknpc 243 43 c n
   stop
   :retalk6
   do talknpc 123 221 c n
   stop
}

macro changeCHAR {
   $uname1 = yourusername
   $pword1 = yourpassword
   $slot1 = yourcharslot#

   $uname2 = yourusername
   $pword2 = yourpassword
   $slot2 = yourcharslot#

   $uname3 = yourusername
   $pword3 = yourpassword
   $slot3 = yourcharslot#

   $uname4 = yourusername
   $pword4 = yourpassword
   $slot4 = yourcharslot#

   $uname5 = yourusername
   $pword5 = yourpassword
   $slot5 = yourcharslot#

   goto char
   stop

   :char
   if (($uname1 == @config(username)) && ($pword1 == @config(password)) && ($slot1 == @config(char))) goto secondchar
   if (($uname2 == @config(username)) && ($pword2 == @config(password)) && ($slot2 == @config(char))) goto thirdchar
   if (($uname3 == @config(username)) && ($pword3 == @config(password)) && ($slot3 == @config(char))) goto fourthchar
   if (($uname4 == @config(username)) && ($pword4 == @config(password)) && ($slot4 == @config(char))) goto fifthchar
   if (($uname5 == @config(username)) && ($pword5 == @config(password)) && ($slot5 == @config(char))) goto firstchar   
   stop

   :secondchar
   do conf username $uname2
   do conf password $pword2
   do conf char $slot2
   do relog 5
   stop

   :thirdchar
   do conf username $uname3
   do conf password $pword3
   do conf char $slot3
   do relog 5
   stop

   :fourthchar
   do conf username $uname4
   do conf password $pword4
   do conf char $slot4
   do relog 5
   stop

   :fifthchar
   do conf username $uname5
   do conf password $pword5
   do conf char $slot5
   do relog 5
   stop

   :firstchar
   do conf username $uname1
   do conf password $pword1
   do conf char $slot1
   do relog 5
   stop
}



this one is for single account but multiple char
Code:
macro changeCHAR {
   $slot0 = 0   
   $slot1 = 1   
   $slot2 = 2   
   $slot3 = 3

   goto char
   stop

   :char
   if ($slot0 == @config(char)) goto char2
   if ($slot1 == @config(char)) goto char3
   if ($slot2 == @config(char)) goto char4
   if ($slot3 == @config(char)) goto char1
   stop

   :char2
   do conf char $slot1
   do autostorage
   stop

   :char3
   do conf char $slot2
   do autostorage
   stop

   :char4
   do conf char $slot3
   do autostorage
   stop

   :char1   
   do conf char $slot0
   do autostorage
   stop
}


Last edited by wwaallaa on 24 Aug 2011, 11:06, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Alberta Daily Cargo Quest Macro
PostPosted: 30 Jul 2010, 05:01 
Offline
Noob
Noob

Joined: 14 Jul 2010, 02:10
Posts: 1
There's this error that i get whenever I use it when its done with 1 character.

Talking to NPC at (90, 62) using sequence: c r0 n
[Quest] Port Manager#: [Port Manager]
[Quest] Port Manager#: Well, boxes are not arrived yet.
[Quest] Port Manager#: Since you have completed to help me out yesterday, you need to come back 20 hours later.
[macro] automacro FINISHb triggered.
[Quest] Port Manager#: Done talking
[macro] changeCHAR error: error in 18: syntax error in if statement
Done talking with [Quest] Port Manager#.

Can anyone help me on this?


Top
 Profile  
 
 Post subject: Re: Alberta Daily Cargo Quest Macro
PostPosted: 08 Dec 2010, 01:10 
Offline
Human
Human

Joined: 05 Mar 2009, 07:47
Posts: 36
this is just for the mimic quest right?

do you have other macro for the daily quest?
if you have please share :D


Top
 Profile  
 
 Post subject: Re: Alberta Daily Cargo Quest Macro
PostPosted: 21 Dec 2010, 17:21 
Offline
Noob
Noob

Joined: 18 Nov 2010, 05:16
Posts: 1
kevincousland wrote:
There's this error that i get whenever I use it when its done with 1 character.

Talking to NPC at (90, 62) using sequence: c r0 n
[Quest] Port Manager#: [Port Manager]
[Quest] Port Manager#: Well, boxes are not arrived yet.
[Quest] Port Manager#: Since you have completed to help me out yesterday, you need to come back 20 hours later.
[macro] automacro FINISHb triggered.
[Quest] Port Manager#: Done talking
[macro] changeCHAR error: error in 18: syntax error in if statement
Done talking with [Quest] Port Manager#.

Can anyone help me on this?



Yeah I also have the same problem, but no one is answering until today. Please does anyone know how to deal with this problem? I've been using all the possible methods that I could think of but none so far is effective. Please help anyone.


Top
 Profile  
 
 Post subject: Re: Alberta Daily Cargo Quest Macro
PostPosted: 03 Jan 2011, 06:08 
Offline
Noob
Noob

Joined: 26 Nov 2010, 07:51
Posts: 2
try enclosing the variables in quotation marks... works for me ^_^


Top
 Profile  
 
 Post subject: Re: Alberta Daily Cargo Quest Macro
PostPosted: 08 Jan 2011, 03:32 
Offline
Noob
Noob

Joined: 08 Jan 2011, 03:24
Posts: 3
gelo32k wrote:
try enclosing the variables in quotation marks... works for me ^_^


macro changeCHAR {
$uname1 = valkquest1
$pword1 = cargo1
$slot1 = "3"

like that?...i still have the same problems as above posts. valkquest1 and cargo1 are examples of usernames and passwords.


Top
 Profile  
 
 Post subject: Re: Alberta Daily Cargo Quest Macro
PostPosted: 13 Jan 2011, 15:28 
Offline
Developers
Developers

Joined: 05 Dec 2008, 05:42
Posts: 1811
wwaallaa wrote:
Code:
if (($uname1 == @config(username)) && ($pword1 == @config(password)) && ($slot1 == @config(char))) goto secondchar


Try without parentheses around "==":
Code:
if ($uname1 == @config(username) && $pword1 == @config(password) && $slot1 == @config(char)) goto secondchar


Top
 Profile  
 
 Post subject: Re: Alberta Daily Cargo Quest Macro
PostPosted: 24 Jan 2011, 08:26 
Offline
Noob
Noob

Joined: 24 Jan 2011, 08:09
Posts: 2
kevincousland wrote:
There's this error that i get whenever I use it when its done with 1 character.

Talking to NPC at (90, 62) using sequence: c r0 n
[Quest] Port Manager#: [Port Manager]
[Quest] Port Manager#: Well, boxes are not arrived yet.
[Quest] Port Manager#: Since you have completed to help me out yesterday, you need to come back 20 hours later.
[macro] automacro FINISHb triggered.
[Quest] Port Manager#: Done talking
[macro] changeCHAR error: error in 18: syntax error in if statement
Done talking with [Quest] Port Manager#.

Can anyone help me on this?



am new here.
- try this - in macros.txt changeCHAR make sure you got the spelling correct. the first block should be the same info as what's in your config.txt (example: username, password and char#) the second, third, fourth and fifth blocks are your other accounts that you wish your bot to change to.


Top
 Profile  
 
 Post subject: Re: Alberta Daily Cargo Quest Macro
PostPosted: 24 Jan 2011, 08:30 
Offline
Noob
Noob

Joined: 24 Jan 2011, 08:09
Posts: 2
my bot keeps entering alberta_in after going to the fifth or sixth crate then just sits and stops with out finishing the quest. any solutions?

sometimes it move back to alberta but still doesn't finish the quest. i think it accidentally enters alberta_in on its way back from the mimic crate. solutions plsssss...


Top
 Profile  
 
 Post subject: Re: Alberta Daily Cargo Quest Macro
PostPosted: 28 Mar 2011, 08:34 
Offline
Noob
Noob

Joined: 28 Mar 2011, 08:01
Posts: 4
im using ur macro, it seems that there is no bug, or something but,
the only problem is, the bot is sitting after the quest has been finished, it supposed to change char right?
is theres something to add in config or anywhere to trigger the change char?
and i have some question.
can i add more chars in the macros?
can i make it to 9?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group