使用方法:
e.g. 要求每人身上都要有10000000zeny (一千萬) openkore: 隊伍用p z g 10000000 公會用g z g 10000000
官方遊戲程式: 在隊伍頻道直接輸入z g 10000000或在公會頻道輸入z g 10000000
getzeny
12345678910111213
automacrogetzeny{console/\[(隊伍|公會)\] (.*) \: z g (\d+)/player"派錢員",3call{while($.zeny<$.lastMatch3)asloop# 比較身上的金錢$z=@eval($.lastMatch3-$.zeny)# 計算差額$n=派錢員doevalforeachmy$_player(@{$::playersList->getItems()}){nextif$_player->{'name'}eq"";nextif$_player->{actorType}ne"Player";if($_player->{'name'}eq"$n"){$::Macro::Data::varStack{name}=$_player->{'name'};$::Macro::Data::varStack{id}=$_player->{'binID'};}}dopm$nza$z# 通知派錢員派錢pause7# 密一次派錢員的相隔秒數endloop}}
addzeny
123456789101112131415
automacroaddzeny{pm/z a (\d+)/exclusive1call{if($.zeny<$.lastMatch1)stop# 比較身上跟要派的金額$n=$.lastpm# 最後密我的人的名字doevalforeachmy$_player(@{$::playersList->getItems()}){nextif$_player->{'name'}eq"";nextif$_player->{actorType}ne"Player";if($_player->{'name'}eq"$n"){$::Macro::Data::varStack{name}=$_player->{'name'};$::Macro::Data::varStack{id}=$_player->{'binID'};}}dodeal$id# 交易最後密我的人pause3dodealaddz$.lastMatch1# 放上金額dodealpause3dodeal}}