Openkore.com

OpenKore Forums
It is currently 08 Dec 2019, 15:09

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: macro kill count error
PostPosted: 03 Jul 2017, 01:29 
Offline
Plain Yogurt
Plain Yogurt

Joined: 10 Jul 2014, 09:16
Posts: 95
up


Top
 Profile  
 
 Post subject: Re: macro kill count error
PostPosted: 06 Jul 2017, 00:56 
Offline
Plain Yogurt
Plain Yogurt

Joined: 10 Jul 2014, 09:16
Posts: 95
up


Top
 Profile  
 
 Post subject: Re: macro kill count error
PostPosted: 06 Jul 2017, 07:34 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 391
my am for Eden as example

Code:
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!


Top
 Profile  
 
 Post subject: Re: macro kill count error
PostPosted: 06 Jul 2017, 12:28 
Offline
Plain Yogurt
Plain Yogurt

Joined: 10 Jul 2014, 09:16
Posts: 95
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:
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
}


Top
 Profile  
 
 Post subject: Re: macro kill count error
PostPosted: 07 Jul 2017, 03:34 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 391
Code:
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!


Top
 Profile  
 
 Post subject: Re: macro kill count error
PostPosted: 07 Jul 2017, 04:30 
Offline
Plain Yogurt
Plain Yogurt

Joined: 10 Jul 2014, 09:16
Posts: 95
Mortimal wrote:
Code:
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.


Top
 Profile  
 
 Post subject: Re: macro kill count error
PostPosted: 10 Jul 2017, 22:49 
Offline
Moderators
Moderators
User avatar

Joined: 16 Dec 2011, 02:53
Posts: 1215
Location: Brazil
https://github.com/OpenKore/openkore/issues/605

_________________
"'There are three things all wise men fear: the sea in storm, a night with no moon, and the anger of a gentle man.'" :P

viewtopic.php?f=10&t=16117

Thanks for this Eternal! =D <3<3


Top
 Profile  
 
 Post subject: Re: macro kill count error
PostPosted: 12 Jul 2017, 20:27 
Offline
Plain Yogurt
Plain Yogurt

Joined: 10 Jul 2014, 09:16
Posts: 95
SkylorD wrote:
https://github.com/OpenKore/openkore/issues/605


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


Top
 Profile  
 
 Post subject: Re: macro kill count error
PostPosted: 15 Aug 2017, 23:10 
Offline
Moderators
Moderators
User avatar

Joined: 16 Dec 2011, 02:53
Posts: 1215
Location: Brazil
https://github.com/OpenKore/openkore/pull/914

_________________
"'There are three things all wise men fear: the sea in storm, a night with no moon, and the anger of a gentle man.'" :P

viewtopic.php?f=10&t=16117

Thanks for this Eternal! =D <3<3


Top
 Profile  
 
 Post subject: Re: macro kill count error
PostPosted: 16 Aug 2017, 00:21 
Offline
Noob
Noob

Joined: 12 Aug 2017, 06:07
Posts: 16
SkylorD wrote:
https://github.com/OpenKore/openkore/pull/914


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:
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
}


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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