So I was able to get the arena working by using some of that code. Instead of creating a zone though I just made a room flag and just enabled pk on the MUD. I then had to go to each skill, assist, etc and enter a flag to prevent the skills and damage spells from hitting a player if they are not in the Arena.
The only issue I am having is with AOE spells not working if two players are in the same room that is NOT arena
Under do_cast I used:
Code:
if (!IS_NPC(victim) && !IS_NPC(ch) && !ROOM_FLAGGED(IN_ROOM(ch), ROOM_ARENA)) {
/* disabled SCMD_MURDER */
send_to_char(ch, "Go to an ARENA for that!\r\n");
return (0);
}
which seems to crash the game
So I went to magic.c and entered this snipped under int mag_damage (see screenshot)
which seems to work but one issue arises from it, if two players are in the same room that is NOT an Arena flag
The AOE spells are wonky..The issue is that it seems to be the AOE spell targets the last PC or NPC to enter the room,
So if a player walks into the room last and another player tries to cast an aoe spell in that room, an error comes up.
If a mob walks in the room while the victim player is still in the room, it is only going to target that first mob and no other mobs
Hopefully that makes sense see the screenshots.