Monday, March 17, 2008

Linker Macro V1

Nie macro buat kasi link ke char satu nya...

macro foo {
$d = $.lastMatch1
if ($d > 6) goto stop
$i = $.lastMatch3
$g = @eval (exists $::players{$::playersID[$i]}->{guild} ? $::players{$::playersID[$i]}->{guild}{name} : 'null')
$jobID = @eval ($::players{$::playersID[$i]}->{jobID})
$y1 = VulgarRefineTrader
$y2 = G2
$y3 = G3
$y4 = G4
$e = $.lastmatch4
if ($g eq $y1) goto ok
if ($g eq $y2) goto ok
if ($g eq $y3) goto ok
if ($g eq $y4) goto ok
:stop
stop
:ok
if (@eval ("$jobID" eq "Lord Knight") == 1) goto knight
if (@eval ("$jobID" eq "High Priest") == 1) goto priest
if (@eval ("$jobID" eq "High Wizard") == 1) goto wizard
if (@eval ("$jobID" eq "Whitesmith") == 1) goto smith
if (@eval ("$jobID" eq "Sniper") == 1) goto sniper
if (@eval ("$jobID" eq "Assassin Cross") == 1) goto assassin
if (@eval ("$jobID" eq "Peco Lord Knight") == 1) goto knight
if (@eval ("$jobID" eq "Paladin") == 1) goto paladin
if (@eval ("$jobID" eq "Champion") == 1) goto champion
if (@eval ("$jobID" eq "Professor") == 1) goto professor
if (@eval ("$jobID" eq "Stalker") == 1) goto stalker
if (@eval ("$jobID" eq "Creator") == 1) goto creator
if (@eval ("$jobID" eq "Clown") == 1) goto clown
if (@eval ("$jobID" eq "Gypsy") == 1) goto clown
if (@eval ("$jobID" eq "Peco Paladin") == 1) goto paladin
:knight
do sp 452 $i 5
stop
:priest
do sp 454 $i 5
stop
:wizard
do sp 453 $i 5
stop
:smith
do sp 458 $i 5
stop
:sniper
do sp 460 $i 5
stop
:assassin
do sp 457 $i 5
stop
:paladin
do sp 450 $i 5
stop
:champion
do sp 447 $i 5
stop
:professor
do sp 449 $i 5
stop
:creator
do sp 445 $i 5
stop
:clown
do sp 455 $i 5
stop

}

No comments: