Rugby

These are the macros for a rugby game.

Player

Attack

/script if(GetRaidTargetIndex("target")==2) and CheckInteractDistance("target",3) and (random(20) > 18) then SetRaidTarget("target", 0);SetRaidTarget("player",2) end

Pass

/script if(GetRaidTargetIndex("player")==2) and CheckInteractDistance("target",1) and (random(10) > 5) then SetRaidTarget("target", 1);SetRaidTarget("player",0) end

Accept

/script if(GetRaidTargetIndex("player")==1) then SetRaidTarget("player", 2) end

Intercept

/script if(GetRaidTargetIndex("target")==1) and CheckInteractDistance("target",2) and (random(10) > 5) then SetRaidTarget("target", 0);SetRaidTarget("player",2) end

Tackle

/script if(CheckInteractDistance("target",3) and (random(10) > 7)) then if(GetRaidTargetIndex("target")==2) then SetRaidTarget("target", 8);SetRaidTarget("player",2) else SetRaidTarget("player",7);SendChatMessage("*** Foul" , "RAID") end end

Referee

Pauze match

/script SetRaidTarget("player",2) /rw **Pause**

Clear symbols

/script SetRaidTarget("target",0)