@LabelIndex 103152
@StringIndex 12013
class 0 npc_zerian : citizen {
parameter:
	int	Pass_Skill = 154468353;
	int	pos_x = -22204;
	int	pos_y = 277056;
	int	pos_z = -15023;

handler:
	EventHandler CREATED() {
		myself.i_ai4 = 0;
		super;
	}

	EventHandler TALKED() {
		super;
	}

	EventHandler MENU_SELECTED(talker,ask,reply,party0,i0,c0,i1,i2,i3) {
		if( ask == -1006 ) {
			if( reply == 1 ) {
				i2 = gg::GetStep_FieldCycle(1);
				if( i2 >= 11 ) {
					party0 = gg::GetParty(talker);
					i0 = gg::Party_GetCount(talker);
					if( talker != myself::GetLeaderOfParty(party0) ) {
						myself::ShowPage(talker,"zerian002a.htm");
					} else {
						for(i1 = 0; i1 < i0; i1++) {
							c0 = gg::Party_GetCreature(talker,i1);
							if( gg::GetAbnormalLevel(c0,myself::Skill_GetAbnormalType(Pass_Skill)) < 0 || myself::DistFromMe(c0) > 300 ) {
								myself.i_ai4 = ( myself.i_ai4 + 1 );
							}
						}
						if( myself.i_ai4 == 0 ) {
							myself::TeleportParty(party0.id,pos_x,pos_y,pos_z,300,0);
						} else {
							myself::ShowPage(talker,"zerian002.htm");
						}
						myself.i_ai4 = 0;
					}
				} else {
					myself::ShowPage(talker,"zerian002b.htm");
				}
			}
		}
	}

}
