macro kill count error

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

Moderator: Moderators

Message
Author
genskull
Plain Yogurt
Plain Yogurt
Posts: 91
Joined: 10 Jul 2014, 09:16
Noob?: Yes

Re: macro kill count error

#11 Post by genskull »

up

genskull
Plain Yogurt
Plain Yogurt
Posts: 91
Joined: 10 Jul 2014, 09:16
Noob?: Yes

Re: macro kill count error

#12 Post by genskull »

up

Mortimal
Developers
Developers
Posts: 389
Joined: 01 Nov 2008, 15:31
Noob?: No

Re: macro kill count error

#13 Post by Mortimal »

my am for Eden as example

Code: Select all

automacro setupEden2q{
	eval ($::config{lvlingPart} eq "setupEden2q") and ($::questList->{'7152'}->{'active'} == 1)
	location moc_para01
	run-once 1
	call setupEden2qM
}
	macro setupEden2qM {
	pause 2
	[
		log ============================================================
		log ===============> Config 2nd Eden Quest (orcdun) for all jobs
		log ============================================================
	
		do iconf Drainliar Card 0 1 0
		do iconf Emveretarcon 0 1 0
		do iconf Rough Oridecon 0 1 0
		do iconf Orc Skeleton Card 0 1 0
		do iconf Buster [2] 0 1 0
		do iconf Rough Elunium 0 1 0
		do iconf Orc Helm 0 1 0
		do iconf Orc Zombie Card 0 1 0
		do iconf Emperium 0 1 0
		
		do mconf Familiar 0
		do mconf Steel Chonchon 0
		do mconf White Plant 0
		do mconf Black Mushroom 0
		do mconf 1111 2
		do mconf Orc Skeleton 2
		do mconf Orc Zombie 2
		do mconf Elusive Orc Zombie -1
		
		do conf attackAuto -1
		do conf route_randomWalk 0
		
		call conf_orcs
		do conf lockMap orcsdun01
		do conf lvlingPart gotEden2q
	]
	}

automacro orcsEdenQuest1{
	eval ($::config{lvlingPart} eq "gotEden2q") and ($::questList->{'7152'}->{'active'} == 1)
	location orcsdun01, in_orcs01
	run-once 1
	call orcsEdenQuest1M
}
	macro orcsEdenQuest1M{
	[
		log ============================================================
		log ===============> Talking to npc in in_orcs01
		log ============================================================
		do conf lockMap none
	]
		pause 2
		do move in_orcs01 @rndxy(38,173,1)
		pause @rand(1,2)
		do talknpc 38 175 w1 c w1 c w1 c w1 c w1 c w1 c w1 c w1 c w1
	}

automacro orcsEdenQuest2{
	eval ($::config{lvlingPart} eq "gotEden2q") and ($::questList->{7153}->{'active'} == 1) and ($::questList->{7153}->{missions}->{1153}->{count} < $::questList->{7153}->{missions}->{1153}->{goal})
	location orcsdun01, in_orcs01
	run-once 1
	call orcsEdenQuest2M
}
	macro orcsEdenQuest2M{
	[
		log ============================================================
		log ===============> Killing @eval($::questList->{7153}->{missions}->{1153}->{goal}) Orc Zombies
		log ============================================================
		
		do priconf Orc Zombie
		
		do conf attackAuto 2
		do conf route_randomWalk 1
		do conf lockMap orcsdun01
	]
		do c @autoloot 100
	}
	
automacro orcsEdenQuest3{
	eval ($::config{lvlingPart} eq "gotEden2q") and ($::questList->{7153}->{'active'} == 1) and ($::questList->{7153}->{missions}->{1153}->{count} >= $::questList->{7153}->{missions}->{1153}->{goal})
	run-once 1
	location orcsdun01, in_orcs01
	call orcsEdenQuest3M
}
	macro orcsEdenQuest3M{
	[
		log ============================================================
		log ===============> Killed @eval($::questList->{7153}->{missions}->{1153}->{goal}) Orc Zombies
		log ============================================================
		
		do conf attackAuto -1
		do conf route_randomWalk 0
		do conf lockMap none
	]
		do c @eval($::config{saveMap_warpChatCommand})
		pause @rand(2,3)
		do move orcsdun01
		pause 1
		do move in_orcs01 @rndxy(38,173,1)
		pause @rand(1,2)
		do talknpc 38 175 w1 c w1 c w1 c w1 c w1 c w1
	}
	
automacro orcsEdenQuest4{
	eval ($::config{lvlingPart} eq "gotEden2q") and ($::questList->{7154}->{'active'} == 1) and ($::questList->{7154}->{missions}->{1152}->{count} < $::questList->{7154}->{missions}->{1152}->{goal})
	run-once 1
	location orcsdun01, in_orcs01
	call orcsEdenQuest4M
}
	macro orcsEdenQuest4M{
	[
		log ============================================================
		log ===============> Killing @eval($::questList->{7154}->{missions}->{1152}->{goal}) Orc Skeletons
		log ============================================================
		
		do priconf Orc Skeleton
		
		do conf attackAuto 2
		do conf route_randomWalk 1
		do conf lockMap orcsdun01
	]
		do c @autoloot 100
	}
	
automacro orcsEdenQuest5{
	eval ($::config{lvlingPart} eq "gotEden2q") and ($::questList->{7154}->{'active'} == 1) and ($::questList->{7154}->{missions}->{1152}->{count} >= $::questList->{7154}->{missions}->{1152}->{goal})
	run-once 1
	location orcsdun01, in_orcs01
	call orcsEdenQuest5M
}
	macro orcsEdenQuest5M{
	[
		log ============================================================
		log ===============> Killed @eval($::questList->{7154}->{missions}->{1152}->{goal}) Orc Skeletons
		log ============================================================
		
		do conf attackAuto -1
		do conf route_randomWalk 0
		do conf lockMap none
	]
		do c @eval($::config{saveMap_warpChatCommand})
		pause @rand(2,3)
		do move orcsdun01
		pause 1
		do move in_orcs01 @rndxy(38,173,1)
		pause @rand(1,2)
		do talknpc 38 175 w1 c w1 c w1 c
		pause @rand(1,2)
		do c @eval($::config{saveMap_warpChatCommand})
		pause @rand(1,2)
		do conf lvlingPart readyToEden2e
	}
sry no time edit yours...
Please use pin function for uploading your file contents!

genskull
Plain Yogurt
Plain Yogurt
Posts: 91
Joined: 10 Jul 2014, 09:16
Noob?: Yes

Re: macro kill count error

#14 Post by genskull »

sir Mortimal heres my new macro.
the result is call not defined.
thank you for your response sir, i did try to understand your example. but still i cant make it.

Code: Select all

automacro QuestCheck {
timeout 15
exclusive 1
$temp1 = @eval($::questList->{62557}->{missions}->{1376}->{count})
if ($temp1 == 150) call cashier
}
}


macro cashier {
do is Butterfly Wing 
pause 3
do move yuno 173 140
pause 1
do talknpc 180 145 c c r0 c r0 c r1 n
pause 2
do talknpc 180 145 c c r0 c r1 c r0 n
pause 2
}

Mortimal
Developers
Developers
Posts: 389
Joined: 01 Nov 2008, 15:31
Noob?: No

Re: macro kill count error

#15 Post by Mortimal »

Code: Select all

automacro QuestCheck {
exclusive 1
eval $::questList->{62557}->{missions}->{1376}->{count} >= 150
run-once 1
call cashier
}
}
Please use pin function for uploading your file contents!

genskull
Plain Yogurt
Plain Yogurt
Posts: 91
Joined: 10 Jul 2014, 09:16
Noob?: Yes

Re: macro kill count error

#16 Post by genskull »

Mortimal wrote:

Code: Select all

automacro QuestCheck {
exclusive 1
eval $::questList->{62557}->{missions}->{1376}->{count} >= 150
run-once 1
call cashier
}
}
thank you sir but still nothing my bot doesn't count/update the monster kill. i think the problem is in the iRO chaos server. maybe they did some update. thank you very much sir.

SkylorD
Moderators
Moderators
Posts: 1163
Joined: 16 Dec 2011, 02:53
Noob?: Yes
Location: Brazil

Re: macro kill count error

#17 Post by SkylorD »

Learn rules

genskull
Plain Yogurt
Plain Yogurt
Posts: 91
Joined: 10 Jul 2014, 09:16
Noob?: Yes

Re: macro kill count error

#18 Post by genskull »

thank you sir. in short the killcount can no longer use in iRO. thank you again.

SkylorD
Moderators
Moderators
Posts: 1163
Joined: 16 Dec 2011, 02:53
Noob?: Yes
Location: Brazil

Re: macro kill count error

#19 Post by SkylorD »

Learn rules

ScriptKiddy
Noob
Noob
Posts: 16
Joined: 12 Aug 2017, 06:07
Noob?: No

Re: macro kill count error

#20 Post by ScriptKiddy »

I've been trying to play around with the new strings, but cant get it to work. the closest i got was the below code (it only spit out one yellow error, saying the "call *name*" couldn't be found.

How close am I to getting this to work?

Code: Select all

automacro KoboldQuests {
  if (&questCompleteCount(62750) == 1) {
    call AxeKobold
  }

  if (&questCompleteCount(62751) == 1) {
    call HammerKobold
  }

  if (&questCompleteCount(62753) == 1) {
    call ArcherKobold
  }

  if (&questCompleteCount(62752) == 1) {
    call MaceKobold
  }

macro AxeKobold {
do ai manual
pause 3
do is Butterfly Wing
pause 3
do move lighthalzen 192 159
pause 3
do talknpc 192 161 c c r1 c r0 c c r0 n
pause 3
do talknpc 192 161 c c r0 c r0 n
do ai on
}

macro HammerKobold {
do ai manual
pause 3
do is Butterfly Wing
pause 3
do move lighthalzen 192 159
pause 3
do talknpc 192 161 c c r1 c r0 c c r1 n
pause 3
do talknpc 192 161 c c r0 c r1 n
do ai on
}

macro ArcherKobold {
do ai manual
pause 3
do is Butterfly Wing
pause 3
do move lighthalzen 192 159
pause 3
do talknpc 192 161 c c r1 c r0 c c r3 n
pause 3
do talknpc 192 161 c c r0 c r3 n
do ai on
}

macro MaceKobold {
do ai manual
pause 3
do is Butterfly Wing
pause 3
do move lighthalzen 192 159
pause 3
do talknpc 192 161 c c r1 c r0 c c r2 n
pause 3
do talknpc 192 161 c c r0 c r2 n
do ai on
}

Post Reply