Alberta Daily Cargo Quest Macro

Moderator: Moderators

Message
Author
wwaallaa
Noob
Noob
Posts: 11
Joined: 09 Jun 2010, 23:42
Noob?: Yes

Alberta Daily Cargo Quest Macro

#1 Post by wwaallaa »

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: Select all

######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: Select all

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.

kevincousland
Noob
Noob
Posts: 1
Joined: 14 Jul 2010, 02:10
Noob?: No

Re: Alberta Daily Cargo Quest Macro

#2 Post by kevincousland »

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?

krisma
Human
Human
Posts: 36
Joined: 05 Mar 2009, 07:47
Noob?: Yes

Re: Alberta Daily Cargo Quest Macro

#3 Post by krisma »

this is just for the mimic quest right?

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

grascia
Noob
Noob
Posts: 1
Joined: 18 Nov 2010, 05:16
Noob?: No

Re: Alberta Daily Cargo Quest Macro

#4 Post by grascia »

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.

gelo32k
Noob
Noob
Posts: 2
Joined: 26 Nov 2010, 07:51
Noob?: Yes

Re: Alberta Daily Cargo Quest Macro

#5 Post by gelo32k »

try enclosing the variables in quotation marks... works for me ^_^

openshad0w
Noob
Noob
Posts: 3
Joined: 08 Jan 2011, 03:24
Noob?: Yes

Re: Alberta Daily Cargo Quest Macro

#6 Post by openshad0w »

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.

EternalHarvest
Developers
Developers
Posts: 1800
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Alberta Daily Cargo Quest Macro

#7 Post by EternalHarvest »

wwaallaa wrote:

Code: Select all

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

Code: Select all

if ($uname1 == @config(username) && $pword1 == @config(password) && $slot1 == @config(char)) goto secondchar

mkd128
Noob
Noob
Posts: 2
Joined: 24 Jan 2011, 08:09
Noob?: No

Re: Alberta Daily Cargo Quest Macro

#8 Post by mkd128 »

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.

mkd128
Noob
Noob
Posts: 2
Joined: 24 Jan 2011, 08:09
Noob?: No

Re: Alberta Daily Cargo Quest Macro

#9 Post by mkd128 »

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

mnajrg24
Noob
Noob
Posts: 4
Joined: 28 Mar 2011, 08:01
Noob?: Yes

Re: Alberta Daily Cargo Quest Macro

#10 Post by mnajrg24 »

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?

Post Reply