魔兽 RPG 自动加钱代码(每秒 1000 木钱)

globals

trigger gg_trg_KS_002=CreateTrigger()

endglobals

  

function Trig_KS_002_Func001A takes nothing returns nothing

call AdjustPlayerStateBJ(1000,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)

call AdjustPlayerStateBJ(1000,GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)

endfunction

  

function Trig_KS_002_Actions takes nothing returns nothing

call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_KS_002_Func001A)

endfunction

function main takes nothing returns nothing

call TriggerRegisterTimerEventPeriodic(gg_trg_KS_002,1.)

call TriggerAddAction(gg_trg_KS_002,function Trig_KS_002_Actions)

endfunction