ID:262051
 
                        if("Yes")
alert("Your test will be to defeat 3 of my best students.")
alert("They are strong and fast.. no one has ever beaten them.")
switch(alert("There is no turning back now. Do you still want to take the test?",,"Yes","No"))
if("Yes")
usr.loc = locate(20,9,3)
var/M1 = new /mob/monster/ninja(locate(24,6,3))
var/M2 = new /mob/monster/ninja(locate(24,12,3))
var/M3 = new /mob/monster/ninja(locate(28,9,3))
if(M1:Die(M1,usr)&&M2:Die(M2,usr)&&M3:Die(M3,usr))
usr.loc = locate(6,22,3)
alert("Congratulations, You passed the test.")
alert("Here, Take these Shurikens and this Ninja Suit.")
usr.contents += new /obj/magic/Shuriken/
usr.contents += new /obj/magic/samurai
if(usr.Die(usr,M1)||usr.Die(usr,M2)||usr.Die(usr,M3))
del(M1)
del(M2)
del(M3)
dojoarena = 0
if(usr.Logout())
del(M1)
del(M2)
del(M3)
dojoarena = 0
usr.loc = locate(6,22,3)
if("No")
alert("Come back when your ready, [usr.name].")


When you say yes when you want to take the test(the 2nd one), instead of going to the arena, it BOOTS you, any idea why?
my guess is that the usr.logout() is being used first due to the deaths of the ninjas not being in places yet so i think usr.logout makes you logout try making a var for it so it knows u logged out