@LabelIndex 414738
@StringIndex 0
class 0 rune_supply_carriage : default_npc {
handler:
	EventHandler ATTACKED(attacker,c0,c1,i0,i1,i2,i3,i4,npc0) {
		myself::SetCurrentQuestID(729);
		c1 = attacker;
		if( c1.master ) {
			c1 = c1.master;
		}
		if( myself::IsNullCreature(c1) == 0 ) {
			if( myself::IsHostileInDominionSiege(c1) == 1 ) {
				i0 = gg::GetIndexFromCreature(myself.sm);
				i1 = 88;
				if( gg::GetDominionWarState(i1) == 5 ) {
					if( myself.i_quest0 != 1 ) {
						myself.i_quest0 = 1;
						gg::SendDominionScriptEvent(i0,i1,72901);
						myself.i_quest2 = myself::GetCurrentTick();
					} else if( myself.i_quest0 >= 1 ) {
						if( myself.i_quest1 < 0 ) {
							myself.i_quest1 = 0;
						} else if( myself.i_quest1 < 10 ) {
							myself.i_quest1 = ( myself.i_quest1 + 1 );
						} else if( ( myself::GetCurrentTick() - myself.i_quest2 ) >= 300 ) {
							gg::SendDominionScriptEvent(i0,i1,72903);
						}
					}
				}
			}
		}
		super;
	}

}
