Scriptname XingRandomScript extends Quest  

Int Property CurrentGroup = 0 Auto
Int Property NextIdle = 0 Auto
Idle[] Property FNISidle Auto

Quest[] Property SubQuest Auto
Int[] Property QuestCnt Auto
Actor[] Property FNISnpc Auto
Quest Property FNISquest1 Auto
Quest Property FNISquest2 Auto
Quest Property FNISquest3 Auto
Quest Property FNISquest4 Auto
Quest Property FNISquest5 Auto
Quest Property FNISquest6 Auto
Quest Property FNISquest7 Auto
Quest Property FNISquest8 Auto
Quest Property FNISquest9 Auto
Quest Property FNISquest10 Auto
Quest Property FNISquest11 Auto
Quest Property FNISquest12 Auto
Quest Property FNISquest13 Auto
Quest Property FNISquest14 Auto
Quest Property FNISquest15 Auto

Spell Property IdleSpell Auto
Spell Property IdleSelfSpell Auto
Spell Property IdleSelect Auto


Event OnInit()
	int i
	Utility.Wait(1)
;		DEBUG.TRACE("FNIS started")	
	Game.GetPlayer().AddSpell(IdleSpell, false)
	Game.GetPlayer().AddSpell(IdleSelfSpell, false)
	Game.GetPlayer().AddSpell(IdleSelect, false)
	Game.GetPlayer().EquipSpell(IdleSelect, 0)
	Game.GetPlayer().EquipSpell(IdleSpell, 1)

	SubQuest = new Quest[16]
	SubQuest[1] = FNISquest1
	SubQuest[2] = FNISquest2
	SubQuest[3] = FNISquest3
	SubQuest[4] = FNISquest4
	SubQuest[5] = FNISquest5
	SubQuest[6] = FNISquest6
	SubQuest[7] = FNISquest7
	SubQuest[8] = FNISquest8
	SubQuest[9] = FNISquest9
	SubQuest[10] = FNISquest10
	SubQuest[11] = FNISquest11
	SubQuest[12] = FNISquest12
	SubQuest[13] = FNISquest13
	SubQuest[14] = FNISquest14
	SubQuest[15] = FNISquest15
	
	
	QuestCnt = new Int[16]
	FNISnpc = new Actor[16]
	i = 0
	while ( i <= 16 )
		QuestCnt[i] = 0
		FNISnpc[i] = None
		i = i + 1
	endWhile
	
	FNISidle = new Idle[101]
	FNISidle[0] = FNISidle1
	FNISidle[1] = FNISidle2
	FNISidle[2] = FNISidle3
	FNISidle[3] = FNISidle4
	FNISidle[4] = FNISidle5
	FNISidle[5] = FNISidle6
	FNISidle[6] = FNISidle7
	FNISidle[7] = FNISidle8
	FNISidle[8] = FNISidle9
	FNISidle[9] = FNISidle10
	FNISidle[10] = FNISidle11
	FNISidle[11] = FNISidle12
	FNISidle[12] = FNISidle13
	FNISidle[13] = FNISidle14
	FNISidle[14] = FNISidle15
	FNISidle[15] = FNISidle16
	FNISidle[16] = FNISidle17
	FNISidle[17] = FNISidle18
	FNISidle[18] = FNISidle19
	FNISidle[19] = FNISidle20
	FNISidle[20] = FNISidle21
	FNISidle[21] = FNISidle22
	FNISidle[22] = FNISidle23
	FNISidle[23] = FNISidle24
	FNISidle[24] = FNISidle25
	FNISidle[25] = FNISidle26
	FNISidle[26] = FNISidle27
	FNISidle[27] = FNISidle28
	FNISidle[28] = FNISidle29
	FNISidle[29] = FNISidle30
	FNISidle[30] = FNISidle31
	FNISidle[31] = FNISidle32
	FNISidle[32] = FNISidle33
	FNISidle[33] = FNISidle34
	FNISidle[34] = FNISidle35
	FNISidle[35] = FNISidle36
	FNISidle[36] = FNISidle37
	FNISidle[37] = FNISidle38
	FNISidle[38] = FNISidle39
	FNISidle[39] = FNISidle40
	FNISidle[40] = FNISidle41
	FNISidle[41] = FNISidle42
	FNISidle[42] = FNISidle43
	FNISidle[43] = FNISidle44
	FNISidle[44] = FNISidle45
	FNISidle[45] = FNISidlea1
	FNISidle[46] = FNISidlea2
	FNISidle[47] = FNISidlea3
	FNISidle[48] = FNISidlea4
	FNISidle[49] = FNISidlea5
	FNISidle[50] = FNISidlea6
	FNISidle[51] = FNISidlea7
	FNISidle[52] = FNISidlea8
	FNISidle[53] = FNISidlea9
	FNISidle[54] = FNISidleo1
	FNISidle[55] = FNISidleo2
	FNISidle[56] = FNISidleo3
	FNISidle[57] = FNISidleo4
	FNISidle[58] = FNISidleo5
	FNISidle[59] = FNISidleo6
	FNISidle[60] = FNISidleo7
	FNISidle[61] = FNISidleo8
	FNISidle[62] = FNISidleo9
	FNISidle[63] = FNISidleb1
	FNISidle[64] = FNISidleb2
	FNISidle[65] = FNISidleb3
	FNISidle[66] = FNISidleb4
	FNISidle[67] = FNISidleb5
	FNISidle[68] = FNISidleb6
	FNISidle[69] = FNISidleb7
	FNISidle[70] = FNISidleb8
	FNISidle[71] = FNISidleb9
	FNISidle[72] = FNISidle72
	FNISidle[73] = FNISidle73
	FNISidle[74] = FNISidle74
	FNISidle[75] = FNISidle75
	FNISidle[76] = FNISidle76
	FNISidle[77] = FNISidle77
	FNISidle[78] = FNISidle78
	FNISidle[79] = FNISidle79
	FNISidle[80] = FNISidle80
	FNISidle[81] = FNISidle81
	FNISidle[82] = FNISidle82
	FNISidle[83] = FNISidle83
	FNISidle[84] = FNISidle84
	FNISidle[85] = FNISidle85
	FNISidle[86] = FNISidle86
	FNISidle[87] = FNISidle87
	FNISidle[88] = FNISidle88
	FNISidle[89] = FNISidle89
	FNISidle[90] = FNISidle90
	FNISidle[91] = FNISidle91
	FNISidle[92] = FNISidle92
	FNISidle[93] = FNISidle93
	FNISidle[94] = FNISidle94
	FNISidle[95] = FNISidle95
	FNISidle[96] = FNISidle96
	FNISidle[97] = FNISidle97
	FNISidle[98] = FNISidle98
	FNISidle[99] = FNISidle99
	FNISidle[100] = FNISidle100
EndEvent


Idle property FNISidle1 Auto
Idle property FNISidle2 Auto
Idle property FNISidle3 Auto
Idle property FNISidle4 Auto
Idle property FNISidle5 Auto
Idle property FNISidle6 Auto
Idle property FNISidle7 Auto
Idle property FNISidle8 Auto
Idle property FNISidle9 Auto
Idle property FNISidle10 Auto
Idle property FNISidle11 Auto
Idle property FNISidle12 Auto
Idle property FNISidle13 Auto
Idle property FNISidle14 Auto
Idle property FNISidle15 Auto
Idle property FNISidle16 Auto
Idle property FNISidle17 Auto
Idle property FNISidle18 Auto
Idle property FNISidle19 Auto
Idle property FNISidle20 Auto
Idle property FNISidle21 Auto
Idle property FNISidle22 Auto
Idle property FNISidle23 Auto
Idle property FNISidle24 Auto
Idle property FNISidle25 Auto
Idle property FNISidle26 Auto
Idle property FNISidle27 Auto
Idle property FNISidle28 Auto
Idle property FNISidle29 Auto
Idle property FNISidle30 Auto
Idle property FNISidle31 Auto
Idle property FNISidle32 Auto
Idle property FNISidle33 Auto
Idle property FNISidle34 Auto
Idle property FNISidle35 Auto
Idle property FNISidle36 Auto
Idle property FNISidle37 Auto
Idle property FNISidle38 Auto
Idle property FNISidle39 Auto
Idle property FNISidle40 Auto
Idle property FNISidle41 Auto
Idle property FNISidle42 Auto
Idle property FNISidle43 Auto
Idle property FNISidle44 Auto
Idle property FNISidle45 Auto
Idle property FNISidlea1 Auto
Idle property FNISidlea2 Auto
Idle property FNISidlea3 Auto
Idle property FNISidlea4 Auto
Idle property FNISidlea5 Auto
Idle property FNISidlea6 Auto
Idle property FNISidlea7 Auto
Idle property FNISidlea8 Auto
Idle property FNISidlea9 Auto
Idle property FNISidleo1 Auto
Idle property FNISidleo2 Auto
Idle property FNISidleo3 Auto
Idle property FNISidleo4 Auto
Idle property FNISidleo5 Auto
Idle property FNISidleo6 Auto
Idle property FNISidleo7 Auto
Idle property FNISidleo8 Auto
Idle property FNISidleo9 Auto
Idle property FNISidleb1 Auto
Idle property FNISidleb2 Auto
Idle property FNISidleb3 Auto
Idle property FNISidleb4 Auto
Idle property FNISidleb5 Auto
Idle property FNISidleb6 Auto
Idle property FNISidleb7 Auto
Idle property FNISidleb8 Auto
Idle property FNISidleb9 Auto
Idle property FNISidle72 Auto
Idle property FNISidle73 Auto
Idle property FNISidle74 Auto
Idle property FNISidle75 Auto
Idle property FNISidle76 Auto
Idle property FNISidle77 Auto
Idle property FNISidle78 Auto
Idle property FNISidle79 Auto
Idle property FNISidle80 Auto
Idle property FNISidle81 Auto
Idle property FNISidle82 Auto
Idle property FNISidle83 Auto
Idle property FNISidle84 Auto
Idle property FNISidle85 Auto
Idle property FNISidle86 Auto
Idle property FNISidle87 Auto
Idle property FNISidle88 Auto
Idle property FNISidle89 Auto
Idle property FNISidle90 Auto
Idle property FNISidle91 Auto
Idle property FNISidle92 Auto
Idle property FNISidle93 Auto
Idle property FNISidle94 Auto
Idle property FNISidle95 Auto
Idle property FNISidle96 Auto
Idle property FNISidle97 Auto
Idle property FNISidle98 Auto
Idle property FNISidle99 Auto
Idle property FNISidle100 Auto
