you can immediately put the character back to pvp state when it's spawned, by checking if a cape is attached... (
) or codecave here: 0x004DEBE7
BL is 0 by default, which will remove your pvp-state every teleport.
change BL to something else, e.g 5 will you put your char into yellow cape.
2nd method seems easier & better