[@logout]
#if 
hasmaster
#act
call @sendtomaster
#end
#if
hasstudent
#act
call @sendtostudent
#if
ismarried
#act
call @marryshow
#end
#act
call @redname
close

[@marryshow]
#if
check sex  0
#act
systemmsgex $CC_SPECIAL $marriage "ɷ<$username><$mapname> (<$posx>,<$posy>)ˣ"
#elseact
systemmsgex $CC_SPECIAL $marriage "<$username><$mapname> (<$posx>,<$posy>)ˣ"


[@sendtomaster]
#if
humonline $master
#act
systemmsgex $CC_SPECIAL $master "ͽ<$username><$mapname> (<$posx>,<$posy>)"


[@sendtostudent]
#if
hasstudent 0
humonline $student1
#act
systemmsgex $CC_SPECIAL $student1 "ʦ<$username><$mapname> (<$posx>,<$posy>)"
#if
hasstudent 1
humonline $student2
#act
systemmsgex $CC_SPECIAL $student2 "ʦ<$username><$mapname> (<$posx>,<$posy>)"
#if
hasstudent 2
humonline $student3
#act
systemmsgex $CC_SPECIAL $student3 "ʦ<$username><$mapname> (<$posx>,<$posy>)"

[@redname]
#if
ISDEATH
#act
call @rednameer
close

[@rednameer]
#if
checkex pkpoint > 3
#act
setrelivepoint 
close