Monday, March 17, 2008

Macros Repair

Nie macro repair

Sample. Macro d bawah bisa d ganti
###################################################
# Auto-Repair v2
###################################################
###################### Head #######################
automacro repair_head {
inventory "BROKEN +8 Bulb Band [Marin*2]" = 1
map um_fild04
run-once 1
call auto_repair_cmd
}
#################### RightHand ####################
automacro repair_righthand {
inventory "BROKEN +5 Tirfing [The Paper*4]" = 1
map um_fild04
run-once 1
call auto_repair_cmd
}
#################### LeftHand #####################
automacro repair_lefthand {
inventory "BROKEN +4 Tirfing [The Paper*4]" = 1
map um_fild04
run-once 1
call auto_repair_cmd
}
###################### Armor ######################
automacro repair_armor {
inventory "BROKEN +8 Chain Mail [Ghostring] [1]" = 1
map um_fild04
run-once 1
call auto_repair_cmd
}

macro auto_repair_cmd {
c @warp prt_in 59 63
@pause 3
c @storage
@pause 3
storage get Steel 1
@pause 3
talknpc 62 54 c r0 r0 n
@pause 3
eq +8 Bulb Band [Marin*2]
@pause 3
eq +4 Tirfing [The Paper*4]
@pause 3
eq +5 Tirfing [The Paper*4]
@pause 3
eq +8 Chain Mail [Ghostring] [1]
@pause 3
c @warp um_fild04 174 42
@release repair_head
@release repair_righthand
@release repair_lefthand
@release repair_armor
}

No comments: