arena code made by scizzles(spelled right?) had to modify a bit.
mob
var
tmp/arena = 0 // dont touch this var
worldA = 0 /// Var to see if someones using the arena
enemy /// Use this so people cant challenge NPCs
npc /// Use this so people cant challenge NPCs
var/challenge = 0 // dont touch this var
mob
PC
verb
ChallengePlayer(mob/PC/M as mob in world) ///The challenge verb
set category = "Channels"
set name = "Arena Fight"
if(usr.arena == 1) /// if a users in the arena, they cant challenge someone else
usr<<"<b>Info: Your already in a Challenge!</font></b></u>"
return
if(worldA) // check if another user is using the arena!
usr<<"<b>Info: Someone is already using the Arena!"
return
if(M == usr) /// check to see so they cant challenge themselves.
usr<<"<b>You can't challenge yourself!"
return
if(M.type != /mob/PC) /// so they cant challenge npcs
usr<<"<b>You can't challenge NPC's!"
return
if(M.enemy == 1) /// same as above.
usr<<"<b>You can't challenge NPC's!"
return
if(M.pk == 0) /// same as above.
usr<<"<b>They are not a combatant!"
return
else /// now the action begins from here.
world<<"<b>Info: [usr] has challenged [M] to an Arena Fight!</font></b></u>" /// tell the world that a persons challenged another person
switch(input(M,"[usr] wants to fight you, do you accept?","Arena Challenge", text) in list ("Yes", "No")) // ask M if they want to accept the challege
if("Yes") // if the Mob accepts
world<<"<b>Info: [M] has accepted [usr]'s Challenge!"
M.loc=locate(120,33,1) /// take them to there position in the arena
M.arena = 1
M.safe = 0
usr.loc=locate(139,33,1) /// take them to there startin position in the arena
usr.arena = 1
usr.safe = 0
worldA = 1 /// so other ppl cant use the arena now
if("No") // if the mob doesnt wanna fight
world<<"<b>Info: [M] has declined the fight with [usr]!"
mob
proc
arenawin(mob/M) /// proc to check if a person wins while in the arena *** ADD THIS TO YOUR DEATCHECK PROC ***
if(src.arena == 1) /// if the winners having an arena battle
world<<"<center><font size=3><b>[src] has killed [M]. [src] is the winner." // show they've won if a mobs hp is 0
src.arena = 0
M.arena = 0
src.loc = locate(119,46,1) // take the winner outta the arena
worldA = 0 // so ppl can now use arena again
death check proc(piece of it) :
if(src.race == "Majin")
if(!src.regen_dead)
src.icon_state = "Dead"
src.frozen = 1
src.doing = 1
src.density = 0
src.ki_lock = 1
src.it_lock = 1
src.regen_dead = 1
src.powerlevel = 0
src.KO = 0
src.rage = 0
src.sight &= ~BLIND
else
for(var/obj/Dragonballs/O in src)
O.loc = src.loc
src.e_db_1=0
src.e_db_2=0
src.e_db_3=0
src.e_db_4=0
src.e_db_5=0
src.e_db_6=0
src.e_db_7=0
src.buku = 0
src.rest = 0
src.frozen = 0
src.boxing = 0
src.focus_boxing = 0
src.doing = 0
src.icon_state = ""
src.density = 1
src.loc = locate(55,6,3)
src.attack_lock = 0
src.ki_lock = 0
src.dead = 1
src.it_lock = 0
src.it_blocked = 0
src.regen_dead = 0
src.powerlevel = 50
src.KO = 0
src.rage = 0
src.sight &= ~BLIND
src.overlays += src.halo
src.deaths += 1
M.kills += 1
src << "Your body was completely Destroyed!"
world << "<FONT color = red>Battle Information:<FONT color = White> [src] died at the hands of [M]!"
M.arenawin(src)
else
for(var/obj/Dragonballs/O in src)
O.loc = src.loc
src.e_db_1=0
src.e_db_2=0
src.e_db_3=0
src.e_db_4=0
src.e_db_5=0
src.e_db_6=0
src.e_db_7=0
src.buku = 0
src.dead = 1
src.rest = 0
src.frozen = 0
src.boxing = 0
src.doing = 0
src.focus_boxing = 0
src.icon_state = ""
src.density = 1
src.loc = locate(55,6,3)
src.attack_lock = 0
src.ki_lock = 0
src.it_lock = 0
src.it_blocked = 0
src.powerlevel = 50
src.KO = 0
src.rage = 0
src.sight &= ~BLIND
src.overlays += src.halo
src.deaths += 1
M.kills += 1
world << "<FONT color = red>Battle Information:<FONT color = White> [src] died at the hands of [M]!"
M.arenawin(src)
Problem description:
Well, when i beat the src guy the arena win text appears and the winner gets teleported BUT the loser doesnt die and the death text doesnt appear. i tried src.arenawin(M) just to experiment. please help