My first macro (I'm proud ^A^b)

International

Moderator: Moderators

Message
Author
Ilovemybots
Noob
Noob
Posts: 1
Joined: 10 Jun 2014, 20:32
Noob?: Yes

My first macro (I'm proud ^A^b)

#1 Post by Ilovemybots »

Hi guys, I'm doing my macro training ground and I have a question:

Ok... I'm training ground new_1-3 (novice battleground) I have the quest to kill and get a poring jellopy, here it's okay, but not how to stop when you get the item and go to the npc to complete the quest.

This is my macro:

automacro Anti-DisconnectedFromMapServer {
class Novice
location new_1-1, new_2-1, new_3-1, new_4-1, new_5-1, new_1-2, new_2-2, new_3-2, new_4-2, new_5-2, new_1-3, new_2-3, new_3-3, new_4-3, new_5-3, new_1-4, new_2-4, new_3-4, new_4-4, new_5-4
console /(Disconnected from Map Server|The NPC did not respond|You are not talking to any NPC|Desconectado do Servidor de Mapas)/
exclusive 1
call DFMS
}
macro DFMS {
pause 1
do reload macro
release all
do reload conf
do relog 7
pause 4
}

# Newbie chars talking to the Teachers
automacro NoviceGroundPart1 {
location new_1-1, new_2-1, new_3-1, new_4-1, new_5-1, new_1-2, new_2-2, new_3-2, new_4-2, new_5-2, new_1-3, new_2-3, new_3-3, new_4-3, new_5-3, new_1-4, new_2-4, new_3-4, new_4-4, new_5-4
class Novice
run-once 1
call NoviceGroundPart1M

}
macro NoviceGroundPart1M {

[
log ================================================
log =========== Speaking with Sprakki ============
log ================================================
]
pause @rand(2,3)
do talknpc 54 114 c r0 c c c c c c c c n
pause @rand(2,3)
do move new_1-1 148 112

}

automacro NoviceGroundPart2 {

location new_1-2 100 9
class Novice
run-once 1
call NoviceGroundPart2M

}

macro NoviceGroundPart2M {

do move 100 27
do talknpc 100 29 c c c r0 c c n
pause @rand(2,3)

}

automacro NoviceGroundPart3 {

location new_1-2 100 100
class Novice
run-once 1
call NoviceGroundPart3M

}

macro NoviceGroundPart3M {

do move new_1-2 @rand(99,101) @rand(101,103)
pause @rand(2,3)

[
log ================================================
log ========= Conversation with Brade ============
log ================================================
]

do talknpc 100 105 c w2 c w2 c w2 c w2 c w2 c w2 c w2 c w2 c w2 c w2 c w2 c w2 c w2 n

pause @rand(2,3)

[
log ================================================
log ======== Equip items given by Brade ===========
log ================================================
]

do eq @inventory (Tattered Novice Ninja Suit)
do eq @inventory (Somber Novice Hood)
do eq @inventory (Novice Slippers)
do eq @inventory (Novice False Eggshell)
do eq @inventory (Novice Main-Gauche)
do eq @inventory (Novice Guard)

pause @rand(2,3)

do talknpc 100 105 c w2 c w2 c w2 c w2 c w2 c w2 c w2 c w2 c w2 c w2 c w2 c

pause @rand(2,3)
do talknpc 100 105 w4 c

pause @rand(2,3)
do move new_1-2 110 118

}

automacro NoviceGroundPart4 {

location new_1-2 110 118
class novice
run-once 1
call NoviceGroundPart4M

}

macro NoviceGroundPart4M {

[
log ================================================
log ========== Conversation with Jinha ===========
log ================================================

]


do talknpc 115 120 w2 c w2 r0 w2 c w2 c w2 c w2 c
pause @rand(2,3)
do talknpc 115 120 w2 c w2 r0 w2 c
pause @rand(2,3)
do move new_1-2 102 100
}


automacro NoviceGroundPart5 {
location new_1-2 102 100
class novice
run-once 1
call NoviceGroundPart5M

}



macro NoviceGroundPart5M {
pause @rand(2,3)
do move new_1-2 101 103

[
log ================================================
log ========== Conversation with Brade 2 =========
log ================================================
]
pause @rand(2,3)
do talknpc 100 105 w2 c w2 c w2 c w2 c
pause @rand(2,3)
do talknpc 100 105 w2 c w2 r0 w2 c
pause @rand(2,3)
do move new_1-2 103 108


}

automacro NoviceGroundPart6 {
location new_1-2 103 108
class novice
run-once 1
call NoviceGroundPart6M

}

macro NoviceGroundPart6M {

pause @rand(2,3)
do move new_1-2 @rand(32,34) @rand(173,175)
[
log ================================================
log ======== Conversation with Chocolat ==========
log ================================================
]
do talknpc 33 172 w1 c w1 c w1 c w1 c
pause @rand(2,3)
do move new_1-2 31 174

}

automacro NoviceGroundPart7 {
location new_1-2 31 174
class novice
run-once 1
call NoviceGroundPart7M

}

macro NoviceGroundPart7M {

pause @rand(2,3)
[
log ================================================
log ========= Kafra ============
log ================================================
]
do talknpc 30 176 w1 c w1 c w1 c w1 c w1 c w1 c w1 c w1 c w1 c w1 c w1 c w1 c w1 c w1 r4 w1 c
pause @rand(2,3)
do move new_1-2 33 175

}

automacro NoviceGroundPart8 {
location new_1-2 33 175
class novice
run-once 1
call NoviceGroundPart8M

}

macro NoviceGroundPart8M {
do talknpc 33 176 c w1 c w1 c w1 c w1 c w1 c w1
pause @rand(2,3)
do move new_1-2 37 176

}

automacro NoviceGroundPart9 {
location new_1-2 37 176
class novice
run-once 1
call NoviceGroundPart9M

}

macro NoviceGroundPart9M {

pause @rand(2,3)
[
log ================================================
log ========= Conversation with Soldier ==========
log ================================================
]
do talknpc 36 176 w4 c w4 c w4 c w4 c
pause @rand(2,3)
do move new_1-2 32 172
}

automacro NoviceGroundPart10 {
location new_1-2 32 172
class novice
run-once 1
call NoviceGroundPart10M

}

macro NoviceGroundPart10M {
pause@rand(3,4)
[
log ================================================
log ======== Conversation with Chocolat 2 =========
log ================================================
]
do talknpc 33 172 w2 c w2 c w2 c w2 c w2 c w2 c
pause @rand(2,3)
do move new_1-3 100 27
}

automacro NoviceGroundPart11 {
location new_1-3 100 27
class novice
run-once 1
call NoviceGroundPart11M

}
macro NoviceGroundPart11M {
[
log ================================================
log ========= Conversation with Brade 3 ==========
log ================================================
]
pause @rand(2,3)
do talknpc 96 30 w2 c w2 c w2 c w2 c w2 c w2 c
pause @rand(2,3)
do conf route_randomWalk 1
pause 2
do conf attackAuto 2
pause @rand(2,3)
$poring = @eval(0)
do move new_1-3 100 41

}

automacro NoviceGroundPart12 {
location new_1-3 100 41
class novice
run-once 1
console /(You attack Monster Poring)/i
call NoviceGroundPart12M

}

macro NoviceGroundPart12M {
$poring = @eval($poring+1)
if ($poring < 4) goto rls
if ($poring >= 4) goto npc

:rls
release all
goto end

:npc
pause @rand(3,4)
do conf route_randomWalk 0
pause 1
do conf attackAuto 0
pause 1
do conf itemsTakeAuto 0
pause 1
pause @rand(3,4)
do move new_1-3 @rand(94,96) @rand(26,28)

[
log ================================================
log ========= Conversation with Brade 4 ==========
log ================================================
]
pause @rand(2,3)
do talknpc 96 30 w2 c w2 c w2 c w2 c w2 c w2 c w2 c w2 c
pause @rand(2,3)
do eq @inventory (Novice Cutter [3])
do conf statsAddAuto 1
do conf statsAddAuto_list 10 dex, 10 str, 20 agi, 20 str, 15 dex, 30 vit, 20 dex, 40 vit, 30 str, 30 dex, 22 agi, 40 str, 40 agi, 40 dex, 50 str, 12 int, 67 agi, 50 dex, 70 str, 60 vit, 24 int, 80 agi, 70 dex, 90 agi
do conf skillsAddAuto 1
do conf skillsAddAuto_list Basic Skill 9, Item Appraisal 1, Enlarge Weight Limit 3, Discount 10, Overcharge 10, Enlarge Weight Limit 10, Pushcart 10, Vending 8
do conf QuestPart NoviceZone11

:end
stop
}

Thanks you

omgitsabotter
Noob
Noob
Posts: 16
Joined: 31 May 2014, 12:53
Noob?: No

Re: My first macro (I'm proud ^A^b)

#2 Post by omgitsabotter »

I think you're playing on the classic server right? Anyways this is what I came up with to help you out.

automacro dothatwhengetjellopy{
location yourlocationhere
inventory "jellopy" = 1
call {
do ai manual
do move 123 456
do talk @npc (123 457)
do talk resp 0
do ai auto
}
run-once 1
}

Post Reply