Scriptname nDataStoreScript extends ObjectReference  

Int[] Property iMax Auto

int function GetPIndex()
	int index
	int pl=Game.GetPlayer().GetLevel()
If IsLE.GetValueInt() == 0
	If pl <= 10
		Index = 2
	Elseif pl > 10 && pl <= 25
		Index =  6
	Elseif pl > 25 && pl <= 40
		Index =  9
	Elseif pl > 40 && pl <= 60
		Index =  21
	Elseif pl > 60
		Index = 29
	Endif
Else
	If pl <= 10
		Index = 1
	Elseif pl > 10 && pl <= 25
		Index =  4
	Elseif pl > 25 && pl <= 40
		Index = 6
	Elseif pl > 40 && pl <= 60
		Index =  9
	Elseif pl > 60
		Index =  11
	Endif
Endif
return index
endfunction

function ClearDummy(Actor Dummy)
	utility.wait(30.0)
	Dummy.disable()
	Dummy.delete()
Endfunction

bool function IsFlying(Actor WhoIsFlying)
	bool isinair=false
	If WhoIsFlying.GetFlyingState() == 2 || WhoIsFlying.GetFlyingState() == 3
		IsInAir = true
	Endif
	return isinair
endfunction

bool function IsTranslated(objectreference arObj)
	bool done=false
	If arObj.IsDisabled()
		debug.notification("Object is disabled, translation completed")
		done = true
	Endif
	return done
endfunction
GlobalVariable Property IsLE  Auto  
