Scriptname ArenaGrayPrinceScript
short enabled
short fightover
short doonce
short evaluate
short disqualified
short CombatantReset
short aggressive
short randomcrowd
Begin GameMode
if ( doonce == 0 )
if ArenaIC.ChallengeAgronak == 1
if ArenaIC.ReadyMatch == 1
if ( getdead == 1 )
set ArenaIC.GrandChampKilled to 1
set ArenaIC.FightOver to 1
set Arena.FightOver to 1
set doonce to 1
endif
endif
endif
endif
if getav health > 20 && Arena.AttackPlayer >= 1
if ( randomcrowd >= 1 )
if ( randomcrowd <= 10 )
Playsound "AMBArenaCrowdBoo"
set randomcrowd to -1
elseif ( randomcrowd <= 30 )
Playsound "AMBArenaCrowdCheerWin"
set randomcrowd to -1
;elseif ( randomcrowd <= 50 )
;Playsound "AMBArenaCrowdCheerWin"
;set randomcrowd to -1
;elseif ( randomcrowd <= 70 )
;Playsound "AMBArenaCrowdCheerWin"
;set randomcrowd to -1
;elseif ( randomcrowd <= 100 )
;Playsound "AMBArenaCrowdCheerWin"
;set randomcrowd to -1
endif
endif
endif
End
Begin OnHit Player
if player.getincell ICArena
set randomcrowd to GetRandomPercent
endif
End
|