CODE
begin creaturearena
;bet and duel are global variables
;this handles the betting money
if ( ondeath == 1 )
if ( duel == 1 )
if ( bet == 1000 )
player->additem gold01 1000
elseif ( bet == 100 )
player->additem gold01 100
elseif ( bet == 500 )
player->additem gold01 500
endif
set bet to 0
;and ressurects if there is know money set
elseif ( duel == 0 )
ressurect
endif
endif
;this should handle the attacker
if ( duel == 1 )
startcombat alit_telauto_arena
startcombat atronach_flame_telauto
startcombat atronach_storm_telauto
startcombat atronach_frost_telauto
startcombat BonewalkerGreater_telau
startcombat centurion_spider_telaut
startcombat golden_saint_telauto_ar
startcombat daedroth_telauto_arena
startcombat guar_feral_telauto_are
endif
if ( bet > 1 )
set duel to 1
endif
end creaturearena
;bet and duel are global variables
;this handles the betting money
if ( ondeath == 1 )
if ( duel == 1 )
if ( bet == 1000 )
player->additem gold01 1000
elseif ( bet == 100 )
player->additem gold01 100
elseif ( bet == 500 )
player->additem gold01 500
endif
set bet to 0
;and ressurects if there is know money set
elseif ( duel == 0 )
ressurect
endif
endif
;this should handle the attacker
if ( duel == 1 )
startcombat alit_telauto_arena
startcombat atronach_flame_telauto
startcombat atronach_storm_telauto
startcombat atronach_frost_telauto
startcombat BonewalkerGreater_telau
startcombat centurion_spider_telaut
startcombat golden_saint_telauto_ar
startcombat daedroth_telauto_arena
startcombat guar_feral_telauto_are
endif
if ( bet > 1 )
set duel to 1
endif
end creaturearena
And vice versa for the other group of creatures spawned.