@LabelIndex 53378
@StringIndex 0
class 0 sculpture_garden : default_npc {
parameter:
	int	buff = 293535745;
	int	GM_ID = 7;

handler:
	EventHandler CREATED(i0) {
		if( GM_ID != 0 ) {
			i0 = myself::GetGlobalMap(GM_ID);
			if( i0 == -1 ) {
				myself::RegisterGlobalMap(GM_ID,gg::GetIndexFromCreature(myself.sm));
			}
		}
		super;
	}

	EventHandler SEE_CREATURE(creature,i0,i1,c0,party0) {
		myself.c_ai0 = creature;
		super;
	}

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2,party0,i0,i1,c0) {
		if( script_event_arg1 == 10027 ) {
			myself::InstantTeleportInMyTerritory(115792,-125760,-3373,200);
		} else if( script_event_arg1 == 11038 ) {
			myself::LookNeighbor(1000);
			if( myself::IsNullCreature(myself.c_ai0) == 0 ) {
				party0 = gg::GetParty(myself.c_ai0);
				if( myself::IsNullParty(party0) == 0 ) {
					i0 = party0.member_count;
					for(i1 = 0; i1 < i0; i1++) {
						c0 = myself::GetMemberOfParty(party0,i1);
						if( myself::IsNullCreature(c0) == 0 ) {
							myself::CastBuffForQuestReward(c0,buff);
						}
					}
				}
			}
		}
	}

}
