[script] spawning npcs off of scrolls

im trying to click scrolls (expendable) to spawn npcs

it doesnt seem to work

all lua editors ive tried indicated my code is good

hair is pulling :frowning:

example item
DAIL/items/summon/dailskillsummon0001.dbr


templateName,database/templates/oneshot_scroll.tpl,
ActorName,,
Class,OneShot_Scroll,
FileDescription,Omega Proof scroll to level up,
actorHeight,0,
actorRadius,0,
allowTransparency,0,
areaBitmap,,
areaOffsetX,0,
areaOffsetY,0,
areaRotate,0,
areaRotation,0.0,
baseTexture,,
bitmap,items/misc/parchment01.tex,
bitmapButtonDown,items/misc/parchment01.tex,
bitmapButtonUp,items/misc/parchment01.tex,
bumpTexture,,
cannotPickUp,0,
cannotPickUpMultiple,1,
castsShadows,1,
collisionShape,,
dexterityRequirement,0,
dropSound,,
dropSound3D,,
dropSoundWater,,
entityHooks,,
glowTexture,,
intelligenceRequirement,0,
itemClassification,Common,
itemCost,,
itemCostScalePercent,,
itemHooks,,
itemLevel,1,
levelRequirement,,
loopingEffect,,
mapNuggetCustom,,
mapNuggetType,,
markerRange,0.0,
maxStackSize,1,
maxTransparency,0.5,
mesh,,
miniMapEntity,,
onAddToWorld,,
onInitialUpdate,,
onRemoveFromWorld,,
outlineThickness,0.035,
physicsFriction,1,
physicsMass,1,
physicsRestitution,0,
pickupEffect,,
preventEasyDrops,0,
quest,0,
questFile1,,
questFile10,,
questFile2,,
questFile3,,
questFile4,,
questFile5,,
questFile6,,
questFile7,,
questFile8,,
questFile9,,
ragdollDecal,,
scale,1,
shader,,
shadowBias,0,
skillName,,
soulbound,0,
specTexture,,
strengthRequirement,0,
taskUID1,0,
taskUID10,0,
taskUID2,0,
taskUID3,0,
taskUID4,0,
taskUID5,0,
taskUID6,0,
taskUID7,0,
taskUID8,0,
taskUID9,0,
trailEffect,,
unloadedBoundingBoxExtents,0,
untradeable,1,
useBoundingBoxesForDynamicObstacles,0,
useDelayTime,,
useSound,,
usesSharedCooldown,1,
description,DAIL_AETHERIAL_ITEM,
onDestroy,dail.summon.dailskillsummon0001, 
itemText,tagDailThentyZShopping0001, 

example item 2 (to show how i did this)
DAIL/items/summon/dailskillsummon0015.dbr


templateName,database/templates/oneshot_scroll.tpl,
ActorName,,
Class,OneShot_Scroll,
FileDescription,Omega Proof scroll to level up,
actorHeight,0,
actorRadius,0,
allowTransparency,0,
areaBitmap,,
areaOffsetX,0,
areaOffsetY,0,
areaRotate,0,
areaRotation,0.0,
baseTexture,,
bitmap,items/misc/parchment01.tex,
bitmapButtonDown,items/misc/parchment01.tex,
bitmapButtonUp,items/misc/parchment01.tex,
bumpTexture,,
cannotPickUp,0,
cannotPickUpMultiple,1,
castsShadows,1,
collisionShape,,
dexterityRequirement,0,
dropSound,,
dropSound3D,,
dropSoundWater,,
entityHooks,,
glowTexture,,
intelligenceRequirement,0,
itemClassification,Common,
itemCost,,
itemCostScalePercent,,
itemHooks,,
itemLevel,1,
levelRequirement,,
loopingEffect,,
mapNuggetCustom,,
mapNuggetType,,
markerRange,0.0,
maxStackSize,1,
maxTransparency,0.5,
mesh,,
miniMapEntity,,
onAddToWorld,,
onInitialUpdate,,
onRemoveFromWorld,,
outlineThickness,0.035,
physicsFriction,1,
physicsMass,1,
physicsRestitution,0,
pickupEffect,,
preventEasyDrops,0,
quest,0,
questFile1,,
questFile10,,
questFile2,,
questFile3,,
questFile4,,
questFile5,,
questFile6,,
questFile7,,
questFile8,,
questFile9,,
ragdollDecal,,
scale,1,
shader,,
shadowBias,0,
skillName,,
soulbound,0,
specTexture,,
strengthRequirement,0,
taskUID1,0,
taskUID10,0,
taskUID2,0,
taskUID3,0,
taskUID4,0,
taskUID5,0,
taskUID6,0,
taskUID7,0,
taskUID8,0,
taskUID9,0,
trailEffect,,
unloadedBoundingBoxExtents,0,
untradeable,1,
useBoundingBoxesForDynamicObstacles,0,
useDelayTime,,
useSound,,
usesSharedCooldown,1,
description,DAIL_AETHERIAL_ITEM,
onDestroy,dail.summon.dailskillsummon0015, 
itemText,tagDailThentyZShopping0015, 


script


--OMEGA MOD scripts
--credit : okami29 at http://www.grimdawn.com/forums/showthread.php?p=387218

omega.scripts = {}

--DAIL START
--dail = {}
dail.scripts = {}
dail.summon = {}
--DAIL END

function omega.scripts.onherodeath()
if Game.GetGameDifficulty() >= Game.Difficulty.Legendary then
local player = Game.GetLocalPlayer();
player:GiveItem('records/omega/items/questitems/Omega_Soul_Heroes.dbr', 1, true);
	if 	player:GetQuestState(0x4B25F880) != QuestState.InProgress then
		player:GrantQuest(0x4B25F880,0x36BE5A40);
	end
omega.scripts.spawnomegaboss();
end
--DAIL START
	math.randomseed(Time.Now());
	local DAILpop = random(1, 20);
	--5% chance
	if DAILpop < 19 then
		UI.Notify("DAIL_AETHERIAL_POP");
		dail.scripts.spawndailitems();
--		dail.scripts.spawndailnpcs();
	end
--DAIL END
end


--DAIL START
function dail.scripts.spawndailitems()
	local player = Game.GetLocalPlayer();
		local dbrITEM = {
		'DAIL/items/summon/dailskillsummon0001.dbr',
		'DAIL/items/summon/dailskillsummon0002.dbr',
		'DAIL/items/summon/dailskillsummon0003.dbr',
		'DAIL/items/summon/dailskillsummon0004.dbr',
		'DAIL/items/summon/dailskillsummon0005.dbr',
		'DAIL/items/summon/dailskillsummon0006.dbr',
		'DAIL/items/summon/dailskillsummon0007.dbr',
		'DAIL/items/summon/dailskillsummon0008.dbr',
		'DAIL/items/summon/dailskillsummon0009.dbr',
		'DAIL/items/summon/dailskillsummon0010.dbr',
		'DAIL/items/summon/dailskillsummon0011.dbr',
		'DAIL/items/summon/dailskillsummon0012.dbr',
		'DAIL/items/summon/dailskillsummon0013.dbr',
		'DAIL/items/summon/dailskillsummon0016.dbr',
		'DAIL/items/summon/dailskillsummon0017.dbr',
		'DAIL/items/summon/dailskillsummon0018.dbr',
		'DAIL/items/summon/dailskillsummon0019.dbr',
		'DAIL/items/summon/dailskillsummon0020.dbr',
		'DAIL/items/summon/dailskillsummon0021.dbr',
		'DAIL/items/summon/dailskillsummon0022.dbr',
		'DAIL/items/summon/dailskillsummon0023.dbr',
		'DAIL/items/summon/dailskillsummon0024.dbr',
		'DAIL/items/summon/dailskillsummon0026.dbr',
		'DAIL/items/summon/dailskillsummon0027.dbr',
		'DAIL/items/summon/dailskillsummon0028.dbr',
		'DAIL/items/summon/dailskillsummon0029.dbr',
		'DAIL/items/summon/cratebox.dbr',
		'DAIL/items/summon/dailfactionsummon0001.dbr',
		'DAIL/items/summon/dailfactionsummon0002.dbr',
		'DAIL/items/summon/dailfactionsummon0003.dbr'
	};
	math.randomseed(Time.Now());
--	local randNPC = random(1, table.getn(dbrITEM));
	local randITEM = random(1, 31);
--	local newNPC = Entity.Create(dbrNPC[randNPC]);
	player:GiveItem(dbrITEM[randITEM], 1, true);

end

--		'DAIL/creatures/npcs/merchants/DAILclassplusser0014.dbr',
--		'DAIL/creatures/npcs/merchants/DAILclassplusser0015.dbr',
--		'DAIL/creatures/npcs/merchants/DAILclassplusser0025.dbr',
--		'DAIL/creatures/npcs/merchants/DAILclassplusser0030.dbr',

function dail.scripts.spawndailnpcs()
	local Player = Game.GetLocalPlayer();
	local coords = Player:GetCoords();
	local dbrNPC = {
		'DAIL/creatures/npcs/merchants/DAILclassplusser0001.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0002.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0003.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0004.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0005.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0006.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0007.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0008.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0009.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0010.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0011.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0012.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0013.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0016.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0017.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0018.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0019.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0020.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0021.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0022.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0023.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0024.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0026.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0027.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0028.dbr',
		'DAIL/creatures/npcs/merchants/DAILclassplusser0029.dbr',
		'records/creatures/npcs/merchants/transmogsmith.dbr',
		'DAIL/creatures/npcs/npcs/davood.dbr',
		'DAIL/creatures/npcs/npcs/khalanos.dbr',
		'DAIL/creatures/npcs/npcs/hardy.dbr'
	};
	math.randomseed(Time.Now());
--	local randNPC = random(1, table.getn(dbrNPC));
	local randNPC = random(1, 31);
	local newNPC = Entity.Create(dbrNPC[randNPC]);
--	local playerCoords = Game.GetLocalPlayer():GetCoords();
--	newNPC:SetCoords(playerCoords);
				if (newNPC != nil) then
					newNPC:NetworkEnable()
					newNPC:SetCoords(coords)
				end
end

function dail.summon.item_cratebox()
 dail.summon.npc('records/creatures/npcs/merchant/transmogsmith.dbr')
 end
function dail.summon.dailskillsummon0001()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0001.dbr')
 end
function dail.summon.dailskillsummon0002()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0002.dbr')
 end
function dail.summon.dailskillsummon0003()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0003.dbr')
 end
function dail.summon.dailskillsummon0004()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0004.dbr')
 end
function dail.summon.dailskillsummon0005()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0005.dbr')
 end
function dail.summon.dailskillsummon0006()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0006.dbr')
 end
function dail.summon.dailskillsummon0007()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0007.dbr')
 end
function dail.summon.dailskillsummon0008()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0008.dbr')
 end
function dail.summon.dailskillsummon0009()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0009.dbr')
 end
function dail.summon.dailskillsummon0010()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0010.dbr')
 end
function dail.summon.dailskillsummon0011()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0011.dbr')
 end
function dail.summon.dailskillsummon0012()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0012.dbr')
 end
function dail.summon.dailskillsummon0013()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0013.dbr')
 end
function dail.summon.dailskillsummon0014()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0014.dbr')
 end
function dail.summon.dailskillsummon0015()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0015.dbr')
 end
function dail.summon.dailskillsummon0016()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0016.dbr')
 end
function dail.summon.dailskillsummon0017()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0017.dbr')
 end
function dail.summon.dailskillsummon0018()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0018.dbr')
 end
function dail.summon.dailskillsummon0019()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0019.dbr')
 end
function dail.summon.dailskillsummon0020()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0020.dbr')
 end
function dail.summon.dailskillsummon0021()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0021.dbr')
 end
function dail.summon.dailskillsummon0022()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0022.dbr')
 end
function dail.summon.dailskillsummon0023()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0023.dbr')
 end
function dail.summon.dailskillsummon0024()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0024.dbr')
 end
function dail.summon.dailskillsummon0025()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0025.dbr')
 end
function dail.summon.dailskillsummon0026()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0026.dbr')
 end
function dail.summon.dailskillsummon0027()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0027.dbr')
 end
function dail.summon.dailskillsummon0028()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0028.dbr')
 end
function dail.summon.dailskillsummon0029()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0029.dbr')
 end
function dail.summon.dailskillsummon0030()
 dail.summon.npc('DAIL/creatures/npc/merchant/DAILclassplusser0030.dbr')
 end
function dail.summon.dailfactionsummon00001()
 dail.summon.npc('DAIL/creatures/npc/npcs/davood.dbr')
 end
function dail.summon.dailfactionsummon00002()
 dail.summon.npc('DAIL/creatures/npc/npcs/khalanos.dbr')
 end
function dail.summon.dailfactionsummon00003()
 dail.summon.npc('DAIL/creatures/npc/npcs/hardy.dbr')
 end

function dail.summon.npc(dailNPC)
	UI.Notify("DAIL_AETHERIAL_POP2");
	local Player = Game.GetLocalPlayer();
	local coords = Player:GetCoords();
	local newNPC = Entity.Create(dailNPC);
				if (newNPC != nil) then
					newNPC:NetworkEnable()
					newNPC:SetCoords(coords)
				end
end

--DAIL END

function omega.scripts.summonatfeet(objectID)
	local Player = Game.GetLocalPlayer();
	local coords = Player:GetCoords();
	--local namedbr ="records/creatures/enemies/hero/"..objectID..".dbr"
	local test = Entity.Create(objectID);
			
				if (test != nil) then
					test:NetworkEnable()
					test:SetCoords(coords)
				end
end

function omega.scripts.spawnomegaboss()
local bonusRandomizer = 0
local spOMbossRandomizer = 0
local spOMbosschance = 0
local player = Game.GetLocalPlayer();
math.randomseed(Time.Now())
spOMbossRandomizer = random(1,10000)

local t={'OMEGA_LEVEL_1','OMEGA_LEVEL_2','OMEGA_LEVEL_3','OMEGA_LEVEL_4','OMEGA_LEVEL_5','OMEGA_LEVEL_6','OMEGA_LEVEL_7','OMEGA_LEVEL_8','OMEGA_LEVEL_9','OMEGA_LEVEL_10','OMEGA_LEVEL_11','OMEGA_LEVEL_12','OMEGA_LEVEL_13','OMEGA_LEVEL_14','OMEGA_LEVEL_15','OMEGA_LEVEL_16','OMEGA_LEVEL_17','OMEGA_LEVEL_18','OMEGA_LEVEL_19','OMEGA_LEVEL_20','OMEGA_LEVEL_21','OMEGA_LEVEL_22','OMEGA_LEVEL_23','OMEGA_LEVEL_24','OMEGA_LEVEL_25','OMEGA_LEVEL_26','OMEGA_LEVEL_27','OMEGA_LEVEL_28','OMEGA_LEVEL_29','OMEGA_LEVEL_30','OMEGA_LEVEL_31','OMEGA_LEVEL_32','OMEGA_LEVEL_33','OMEGA_LEVEL_34','OMEGA_LEVEL_35','OMEGA_LEVEL_36','OMEGA_LEVEL_37','OMEGA_LEVEL_38','OMEGA_LEVEL_39','OMEGA_LEVEL_40','OMEGA_LEVEL_41','OMEGA_LEVEL_42','OMEGA_LEVEL_43','OMEGA_LEVEL_44','OMEGA_LEVEL_45','OMEGA_LEVEL_46','OMEGA_LEVEL_47','OMEGA_LEVEL_48','OMEGA_LEVEL_49','OMEGA_LEVEL_50','OMEGA_LEVEL_51','OMEGA_LEVEL_52','OMEGA_LEVEL_53','OMEGA_LEVEL_54','OMEGA_LEVEL_55','OMEGA_LEVEL_56','OMEGA_LEVEL_57','OMEGA_LEVEL_58','OMEGA_LEVEL_59','OMEGA_LEVEL_60','OMEGA_LEVEL_61','OMEGA_LEVEL_62','OMEGA_LEVEL_63','OMEGA_LEVEL_64','OMEGA_LEVEL_65','OMEGA_LEVEL_66','OMEGA_LEVEL_67','OMEGA_LEVEL_68','OMEGA_LEVEL_69','OMEGA_LEVEL_70','OMEGA_LEVEL_71','OMEGA_LEVEL_72','OMEGA_LEVEL_73','OMEGA_LEVEL_74','OMEGA_LEVEL_75','OMEGA_LEVEL_76','OMEGA_LEVEL_77','OMEGA_LEVEL_78','OMEGA_LEVEL_79','OMEGA_LEVEL_80','OMEGA_LEVEL_81','OMEGA_LEVEL_82','OMEGA_LEVEL_83','OMEGA_LEVEL_84','OMEGA_LEVEL_85','OMEGA_LEVEL_86','OMEGA_LEVEL_87','OMEGA_LEVEL_88','OMEGA_LEVEL_89','OMEGA_LEVEL_90','OMEGA_LEVEL_91','OMEGA_LEVEL_92','OMEGA_LEVEL_93','OMEGA_LEVEL_94','OMEGA_LEVEL_95','OMEGA_LEVEL_96','OMEGA_LEVEL_97','OMEGA_LEVEL_98','OMEGA_LEVEL_99','OMEGA_LEVEL_100'}		
		for i=1,100 do
			if player:HasToken(t[i]) then
			bonusRandomizer=i*2
			break
			end
		end
	spOMbosschance=spOMbossRandomizer+bonusRandomizer
	
	if spOMbosschance > 10000 then
		local spOMpetRandomizer = 0
		spOMpetRandomizer = random(1,6)
		if spOMpetRandomizer < 6 then
			omega.scripts.summonatfeet('records/omega/creatures/om_spawnerpet.dbr');
		else
			omega.scripts.summonatfeet('records/omega/creatures/om_spawnerpet2.dbr');
		end
	end
end



function omega.scripts.beginomegaquest()
	local player = Game.GetLocalPlayer();
	if Game.GetGameDifficulty() >= Game.Difficulty.Legendary and player:GetQuestState(0x4B25F880) != QuestState.InProgress then
	player:GrantQuest(0x4B25F880,0x36BE5A40);
	end
end


function omega.scripts.reset()
		local player = Game.GetLocalPlayer()
		--if Game.GetGameDifficulty() >= Game.Difficulty.Legendary then
			local t={'OMEGA_LEVEL_1','OMEGA_LEVEL_2','OMEGA_LEVEL_3','OMEGA_LEVEL_4','OMEGA_LEVEL_5','OMEGA_LEVEL_6','OMEGA_LEVEL_7','OMEGA_LEVEL_8','OMEGA_LEVEL_9','OMEGA_LEVEL_10','OMEGA_LEVEL_11','OMEGA_LEVEL_12','OMEGA_LEVEL_13','OMEGA_LEVEL_14','OMEGA_LEVEL_15','OMEGA_LEVEL_16','OMEGA_LEVEL_17','OMEGA_LEVEL_18','OMEGA_LEVEL_19','OMEGA_LEVEL_20','OMEGA_LEVEL_21','OMEGA_LEVEL_22','OMEGA_LEVEL_23','OMEGA_LEVEL_24','OMEGA_LEVEL_25','OMEGA_LEVEL_26','OMEGA_LEVEL_27','OMEGA_LEVEL_28','OMEGA_LEVEL_29','OMEGA_LEVEL_30','OMEGA_LEVEL_31','OMEGA_LEVEL_32','OMEGA_LEVEL_33','OMEGA_LEVEL_34','OMEGA_LEVEL_35','OMEGA_LEVEL_36','OMEGA_LEVEL_37','OMEGA_LEVEL_38','OMEGA_LEVEL_39','OMEGA_LEVEL_40','OMEGA_LEVEL_41','OMEGA_LEVEL_42','OMEGA_LEVEL_43','OMEGA_LEVEL_44','OMEGA_LEVEL_45','OMEGA_LEVEL_46','OMEGA_LEVEL_47','OMEGA_LEVEL_48','OMEGA_LEVEL_49','OMEGA_LEVEL_50','OMEGA_LEVEL_51','OMEGA_LEVEL_52','OMEGA_LEVEL_53','OMEGA_LEVEL_54','OMEGA_LEVEL_55','OMEGA_LEVEL_56','OMEGA_LEVEL_57','OMEGA_LEVEL_58','OMEGA_LEVEL_59','OMEGA_LEVEL_60','OMEGA_LEVEL_61','OMEGA_LEVEL_62','OMEGA_LEVEL_63','OMEGA_LEVEL_64','OMEGA_LEVEL_65','OMEGA_LEVEL_66','OMEGA_LEVEL_67','OMEGA_LEVEL_68','OMEGA_LEVEL_69','OMEGA_LEVEL_70','OMEGA_LEVEL_71','OMEGA_LEVEL_72','OMEGA_LEVEL_73','OMEGA_LEVEL_74','OMEGA_LEVEL_75','OMEGA_LEVEL_76','OMEGA_LEVEL_77','OMEGA_LEVEL_78','OMEGA_LEVEL_79','OMEGA_LEVEL_80','OMEGA_LEVEL_81','OMEGA_LEVEL_82','OMEGA_LEVEL_83','OMEGA_LEVEL_84','OMEGA_LEVEL_85','OMEGA_LEVEL_86','OMEGA_LEVEL_87','OMEGA_LEVEL_88','OMEGA_LEVEL_89','OMEGA_LEVEL_90','OMEGA_LEVEL_91','OMEGA_LEVEL_92','OMEGA_LEVEL_93','OMEGA_LEVEL_94','OMEGA_LEVEL_95','OMEGA_LEVEL_96','OMEGA_LEVEL_97','OMEGA_LEVEL_98','OMEGA_LEVEL_99','OMEGA_LEVEL_100'}
			local t2={'OMEGA_TOTALSPEED_1','OMEGA_TOTALSPEED_2','OMEGA_TOTALSPEED_3','OMEGA_TOTALSPEED_4','OMEGA_TOTALSPEED_5','OMEGA_TOTALSPEED_6','OMEGA_TOTALSPEED_7','OMEGA_TOTALSPEED_8','OMEGA_TOTALSPEED_9','OMEGA_TOTALSPEED_10','OMEGA_TOTALSPEED_11','OMEGA_TOTALSPEED_12','OMEGA_TOTALSPEED_13','OMEGA_TOTALSPEED_14','OMEGA_TOTALSPEED_15','OMEGA_TOTALSPEED_16','OMEGA_TOTALSPEED_17','OMEGA_TOTALSPEED_18','OMEGA_TOTALSPEED_19','OMEGA_TOTALSPEED_20','OMEGA_TOTALSPEED_21','OMEGA_TOTALSPEED_22','OMEGA_TOTALSPEED_23','OMEGA_TOTALSPEED_24','OMEGA_TOTALSPEED_25','OMEGA_TOTALSPEED_26','OMEGA_TOTALSPEED_27','OMEGA_TOTALSPEED_28','OMEGA_TOTALSPEED_29','OMEGA_TOTALSPEED_30','OMEGA_SHIELD_1','OMEGA_SHIELD_2','OMEGA_SHIELD_3','OMEGA_SHIELD_4','OMEGA_SHIELD_5','OMEGA_PROJSPEED_1','OMEGA_PROJSPEED_2','OMEGA_PROJSPEED_3','OMEGA_PROJSPEED_4','OMEGA_PROJSPEED_5','OMEGA_COOLDOWN_1','OMEGA_ABSREDUCTION_1','OMEGA_ENERGYREDUC_1','OMEGA_PETDAMAGE_1','OMEGA_PETDAMAGE_2','OMEGA_MAXRESIST_1','OMEGA_ALLDAMAGE_1','OMEGA_ALLDAMAGE_2','OMEGA_ALLDAMAGE_3','OMEGA_ALLDAMAGE_4','OMEGA_ALLDAMAGE_5','OMEGA_ALLDAMAGE_6','OMEGA_ALLDAMAGE_7','OMEGA_LLEECH_1','OMEGA_HEALTH_1','OMEGA_DEFENSE_1','OMEGA_REFLECTION_1','OMEGA_REFLECTION_2'}

			for i=1,58 do
				player:RemoveToken(t2[i])
			end

			for i=1,100 do
				if player:HasToken(t[i]) then
				player:GiveItem('records/omega/items/questitems/omega_orb.dbr',i,true);	
				break
				end
			end
			UI.Notify("tagOM_onReset");


end
function omega.scripts.reward()
		local player = Game.GetLocalPlayer()
		--if Game.GetGameDifficulty() >= Game.Difficulty.Legendary then
			local t={'OMEGA_LEVEL_1','OMEGA_LEVEL_2','OMEGA_LEVEL_3','OMEGA_LEVEL_4','OMEGA_LEVEL_5','OMEGA_LEVEL_6','OMEGA_LEVEL_7','OMEGA_LEVEL_8','OMEGA_LEVEL_9','OMEGA_LEVEL_10','OMEGA_LEVEL_11','OMEGA_LEVEL_12','OMEGA_LEVEL_13','OMEGA_LEVEL_14','OMEGA_LEVEL_15','OMEGA_LEVEL_16','OMEGA_LEVEL_17','OMEGA_LEVEL_18','OMEGA_LEVEL_19','OMEGA_LEVEL_20','OMEGA_LEVEL_21','OMEGA_LEVEL_22','OMEGA_LEVEL_23','OMEGA_LEVEL_24','OMEGA_LEVEL_25','OMEGA_LEVEL_26','OMEGA_LEVEL_27','OMEGA_LEVEL_28','OMEGA_LEVEL_29','OMEGA_LEVEL_30','OMEGA_LEVEL_31','OMEGA_LEVEL_32','OMEGA_LEVEL_33','OMEGA_LEVEL_34','OMEGA_LEVEL_35','OMEGA_LEVEL_36','OMEGA_LEVEL_37','OMEGA_LEVEL_38','OMEGA_LEVEL_39','OMEGA_LEVEL_40','OMEGA_LEVEL_41','OMEGA_LEVEL_42','OMEGA_LEVEL_43','OMEGA_LEVEL_44','OMEGA_LEVEL_45','OMEGA_LEVEL_46','OMEGA_LEVEL_47','OMEGA_LEVEL_48','OMEGA_LEVEL_49','OMEGA_LEVEL_50','OMEGA_LEVEL_51','OMEGA_LEVEL_52','OMEGA_LEVEL_53','OMEGA_LEVEL_54','OMEGA_LEVEL_55','OMEGA_LEVEL_56','OMEGA_LEVEL_57','OMEGA_LEVEL_58','OMEGA_LEVEL_59','OMEGA_LEVEL_60','OMEGA_LEVEL_61','OMEGA_LEVEL_62','OMEGA_LEVEL_63','OMEGA_LEVEL_64','OMEGA_LEVEL_65','OMEGA_LEVEL_66','OMEGA_LEVEL_67','OMEGA_LEVEL_68','OMEGA_LEVEL_69','OMEGA_LEVEL_70','OMEGA_LEVEL_71','OMEGA_LEVEL_72','OMEGA_LEVEL_73','OMEGA_LEVEL_74','OMEGA_LEVEL_75','OMEGA_LEVEL_76','OMEGA_LEVEL_77','OMEGA_LEVEL_78','OMEGA_LEVEL_79','OMEGA_LEVEL_80','OMEGA_LEVEL_81','OMEGA_LEVEL_82','OMEGA_LEVEL_83','OMEGA_LEVEL_84','OMEGA_LEVEL_85','OMEGA_LEVEL_86','OMEGA_LEVEL_87','OMEGA_LEVEL_88','OMEGA_LEVEL_89','OMEGA_LEVEL_90','OMEGA_LEVEL_91','OMEGA_LEVEL_92','OMEGA_LEVEL_93','OMEGA_LEVEL_94','OMEGA_LEVEL_95','OMEGA_LEVEL_96','OMEGA_LEVEL_97','OMEGA_LEVEL_98','OMEGA_LEVEL_99','OMEGA_LEVEL_100'}	

				for i=1,99 do
					if player:HasToken(t[i]) then
						player:GiveToken(t[i+1])
						player:RemoveToken(t[i])
						--player:GiveItem('records/omega/items/questitems/omega_orb.dbr',1,true);
						local dbrrecipe='records/omega/items/crafting/blueprints/other/omega_craft_proof_'..(i+1)..'.dbr'
						player:GiveItem(dbrrecipe,1,true);
						break
					end
				end
			--UI.Notify("tagOM_onReset");


end
function omega.scripts.notifylevel()
local t={'OMEGA_LEVEL_1','OMEGA_LEVEL_2','OMEGA_LEVEL_3','OMEGA_LEVEL_4','OMEGA_LEVEL_5','OMEGA_LEVEL_6','OMEGA_LEVEL_7','OMEGA_LEVEL_8','OMEGA_LEVEL_9','OMEGA_LEVEL_10','OMEGA_LEVEL_11','OMEGA_LEVEL_12','OMEGA_LEVEL_13','OMEGA_LEVEL_14','OMEGA_LEVEL_15','OMEGA_LEVEL_16','OMEGA_LEVEL_17','OMEGA_LEVEL_18','OMEGA_LEVEL_19','OMEGA_LEVEL_20','OMEGA_LEVEL_21','OMEGA_LEVEL_22','OMEGA_LEVEL_23','OMEGA_LEVEL_24','OMEGA_LEVEL_25','OMEGA_LEVEL_26','OMEGA_LEVEL_27','OMEGA_LEVEL_28','OMEGA_LEVEL_29','OMEGA_LEVEL_30','OMEGA_LEVEL_31','OMEGA_LEVEL_32','OMEGA_LEVEL_33','OMEGA_LEVEL_34','OMEGA_LEVEL_35','OMEGA_LEVEL_36','OMEGA_LEVEL_37','OMEGA_LEVEL_38','OMEGA_LEVEL_39','OMEGA_LEVEL_40','OMEGA_LEVEL_41','OMEGA_LEVEL_42','OMEGA_LEVEL_43','OMEGA_LEVEL_44','OMEGA_LEVEL_45','OMEGA_LEVEL_46','OMEGA_LEVEL_47','OMEGA_LEVEL_48','OMEGA_LEVEL_49','OMEGA_LEVEL_50','OMEGA_LEVEL_51','OMEGA_LEVEL_52','OMEGA_LEVEL_53','OMEGA_LEVEL_54','OMEGA_LEVEL_55','OMEGA_LEVEL_56','OMEGA_LEVEL_57','OMEGA_LEVEL_58','OMEGA_LEVEL_59','OMEGA_LEVEL_60','OMEGA_LEVEL_61','OMEGA_LEVEL_62','OMEGA_LEVEL_63','OMEGA_LEVEL_64','OMEGA_LEVEL_65','OMEGA_LEVEL_66','OMEGA_LEVEL_67','OMEGA_LEVEL_68','OMEGA_LEVEL_69','OMEGA_LEVEL_70','OMEGA_LEVEL_71','OMEGA_LEVEL_72','OMEGA_LEVEL_73','OMEGA_LEVEL_74','OMEGA_LEVEL_75','OMEGA_LEVEL_76','OMEGA_LEVEL_77','OMEGA_LEVEL_78','OMEGA_LEVEL_79','OMEGA_LEVEL_80','OMEGA_LEVEL_81','OMEGA_LEVEL_82','OMEGA_LEVEL_83','OMEGA_LEVEL_84','OMEGA_LEVEL_85','OMEGA_LEVEL_86','OMEGA_LEVEL_87','OMEGA_LEVEL_88','OMEGA_LEVEL_89','OMEGA_LEVEL_90','OMEGA_LEVEL_91','OMEGA_LEVEL_92','OMEGA_LEVEL_93','OMEGA_LEVEL_94','OMEGA_LEVEL_95','OMEGA_LEVEL_96','OMEGA_LEVEL_97','OMEGA_LEVEL_98','OMEGA_LEVEL_99','OMEGA_LEVEL_100'}

local player = Game.GetLocalPlayer();
	if player:HasToken('OMEGA_START_QUEST') then
		for i=1,100 do
			if player:HasToken(t[i]) then
				local tagnotify ='tagOM_notifylevel'..i
				UI.Notify(tagnotify);				
				break
			end
		end
	else	
	UI.Notify('tagOM_notifylevel0');
	end
end

function omega.scripts.bossMIonAddToWorld(objectId)
	UI.Notify('tagOM_bossMIdrop');
		local itemCoords = Entity.Get(objectId):GetCoords()
	    local test = Entity.Create('records/omega/fx/skills/om_fxpak_attackradius_sparkeffect.dbr');
			
				if (test != nil) then
					test:NetworkEnable()
					test:SetCoords(itemCoords)
				end
end

for reference.

without all of the dail.summon. nonsense… thes cript basically works. it summons various little shitty scrolls into inventory

and i took this per warebare suggestion to learn how to make scrolls summon npcs:

item


templateName,database/templates/oneshot_scroll.tpl,
ActorName,,
Class,OneShot_Scroll,
FileDescription,Omega Proof scroll to level up,
actorHeight,0,
actorRadius,0,
allowTransparency,0,
areaBitmap,,
areaOffsetX,0,
areaOffsetY,0,
areaRotate,0,
areaRotation,0.0,
baseTexture,,
bitmap,items/misc/parchment01.tex,
bitmapButtonDown,items/misc/parchment01.tex,
bitmapButtonUp,items/misc/parchment01.tex,
bumpTexture,,
cannotPickUp,0,
cannotPickUpMultiple,1,
castsShadows,1,
collisionShape,,
description,tagOMtransfer1,
dexterityRequirement,0,
dropSound,,
dropSound3D,,
dropSoundWater,,
entityHooks,,
glowTexture,,
intelligenceRequirement,0,
itemClassification,Common,
itemCost,,
itemCostScalePercent,,
itemHooks,,
itemLevel,1,
itemText,tagOMtransfer1Desc,
levelRequirement,,
loopingEffect,,
mapNuggetCustom,,
mapNuggetType,,
markerRange,0.0,
maxStackSize,1,
maxTransparency,0.5,
mesh,,
miniMapEntity,,
onAddToWorld,,
onDestroy,omega.complete.quest1,
onInitialUpdate,,
onRemoveFromWorld,,
outlineThickness,0.035,
physicsFriction,1,
physicsMass,1,
physicsRestitution,0,
pickupEffect,,
preventEasyDrops,0,
quest,0,
questFile1,,
questFile10,,
questFile2,,
questFile3,,
questFile4,,
questFile5,,
questFile6,,
questFile7,,
questFile8,,
questFile9,,
ragdollDecal,,
scale,1,
shader,,
shadowBias,0,
skillName,,
soulbound,0,
specTexture,,
strengthRequirement,0,
taskUID1,0,
taskUID10,0,
taskUID2,0,
taskUID3,0,
taskUID4,0,
taskUID5,0,
taskUID6,0,
taskUID7,0,
taskUID8,0,
taskUID9,0,
trailEffect,,
unloadedBoundingBoxExtents,0,
untradeable,1,
useBoundingBoxesForDynamicObstacles,0,
useDelayTime,,
useSound,,
usesSharedCooldown,1,
fileNameHistoryEntry,mods/omega/records/omega/items/crafting/consumables/transfer/omega_proof_1.dbr,


script


--Omega Script to Complete Quest Tasks
omega.complete = {}
--function omega.scripts.omegalevel1

--end
function omega.complete.quest1()
omega.complete.quest(1)
end
function omega.complete.quest2()
omega.complete.quest(2)
end
function omega.complete.quest3()
omega.complete.quest(3)
end
function omega.complete.quest4()
omega.complete.quest(4)
end
function omega.complete.quest5()
omega.complete.quest(5)
end
function omega.complete.quest6()
omega.complete.quest(6)
end
function omega.complete.quest7()
omega.complete.quest(7)
end
function omega.complete.quest8()
omega.complete.quest(8)
end
function omega.complete.quest9()
omega.complete.quest(9)
end
function omega.complete.quest10()
omega.complete.quest(10)
end
function omega.complete.quest11()
omega.complete.quest(11)
end
function omega.complete.quest12()
omega.complete.quest(12)
end
function omega.complete.quest13()
omega.complete.quest(13)
end
function omega.complete.quest14()
omega.complete.quest(14)
end
function omega.complete.quest15()
omega.complete.quest(15)
end
function omega.complete.quest16()
omega.complete.quest(16)
end
function omega.complete.quest17()
omega.complete.quest(17)
end
function omega.complete.quest18()
omega.complete.quest(18)
end
function omega.complete.quest19()
omega.complete.quest(19)
end
function omega.complete.quest19()
omega.complete.quest(20)
end
function omega.complete.quest21()
omega.complete.quest(21)
end
function omega.complete.quest22()
omega.complete.quest(22)
end
function omega.complete.quest23()
omega.complete.quest(23)
end
function omega.complete.quest24()
omega.complete.quest(24)
end
function omega.complete.quest25()
omega.complete.quest(25)
end
function omega.complete.quest26()
omega.complete.quest(26)
end
function omega.complete.quest27()
omega.complete.quest(27)
end
function omega.complete.quest28()
omega.complete.quest(28)
end
function omega.complete.quest29()
omega.complete.quest(29)
end
function omega.complete.quest30()
omega.complete.quest(30)
end
function omega.complete.quest31()
omega.complete.quest(31)
end
function omega.complete.quest32()
omega.complete.quest(32)
end
function omega.complete.quest33()
omega.complete.quest(33)
end
function omega.complete.quest34()
omega.complete.quest(34)
end
function omega.complete.quest35()
omega.complete.quest(35)
end
function omega.complete.quest36()
omega.complete.quest(36)
end
function omega.complete.quest37()
omega.complete.quest(37)
end
function omega.complete.quest38()
omega.complete.quest(38)
end
function omega.complete.quest39()
omega.complete.quest(39)
end
function omega.complete.quest40()
omega.complete.quest(40)
end
function omega.complete.quest41()
omega.complete.quest(41)
end
function omega.complete.quest42()
omega.complete.quest(42)
end
function omega.complete.quest43()
omega.complete.quest(43)
end
function omega.complete.quest44()
omega.complete.quest(44)
end
function omega.complete.quest45()
omega.complete.quest(45)
end
function omega.complete.quest46()
omega.complete.quest(46)
end
function omega.complete.quest47()
omega.complete.quest(47)
end
function omega.complete.quest48()
omega.complete.quest(48)
end
function omega.complete.quest49()
omega.complete.quest(49)
end
function omega.complete.quest50()
omega.complete.quest(50)
end
function omega.complete.quest51()
omega.complete.quest(51)
end
function omega.complete.quest52()
omega.complete.quest(52)
end
function omega.complete.quest53()
omega.complete.quest(53)
end
function omega.complete.quest54()
omega.complete.quest(54)
end
function omega.complete.quest55()
omega.complete.quest(55)
end
function omega.complete.quest56()
omega.complete.quest(56)
end
function omega.complete.quest57()
omega.complete.quest(57)
end
function omega.complete.quest58()
omega.complete.quest(58)
end
function omega.complete.quest59()
omega.complete.quest(59)
end
function omega.complete.quest60()
omega.complete.quest(60)
end
function omega.complete.quest61()
omega.complete.quest(61)
end
function omega.complete.quest62()
omega.complete.quest(62)
end
function omega.complete.quest63()
omega.complete.quest(63)
end
function omega.complete.quest64()
omega.complete.quest(64)
end
function omega.complete.quest65()
omega.complete.quest(65)
end
function omega.complete.quest66()
omega.complete.quest(66)
end
function omega.complete.quest67()
omega.complete.quest(67)
end
function omega.complete.quest68()
omega.complete.quest(68)
end
function omega.complete.quest69()
omega.complete.quest(69)
end
function omega.complete.quest70()
omega.complete.quest(70)
end
function omega.complete.quest71()
omega.complete.quest(71)
end
function omega.complete.quest72()
omega.complete.quest(72)
end
function omega.complete.quest73()
omega.complete.quest(73)
end
function omega.complete.quest74()
omega.complete.quest(74)
end
function omega.complete.quest75()
omega.complete.quest(75)
end
function omega.complete.quest76()
omega.complete.quest(76)
end
function omega.complete.quest77()
omega.complete.quest(77)
end
function omega.complete.quest78()
omega.complete.quest(78)
end
function omega.complete.quest79()
omega.complete.quest(79)
end
function omega.complete.quest80()
omega.complete.quest(80)
end
function omega.complete.quest81()
omega.complete.quest(81)
end
function omega.complete.quest82()
omega.complete.quest(82)
end
function omega.complete.quest83()
omega.complete.quest(83)
end
function omega.complete.quest84()
omega.complete.quest(84)
end
function omega.complete.quest85()
omega.complete.quest(85)
end
function omega.complete.quest86()
omega.complete.quest(86)
end
function omega.complete.quest87()
omega.complete.quest(87)
end
function omega.complete.quest88()
omega.complete.quest(88)
end
function omega.complete.quest89()
omega.complete.quest(89)
end
function omega.complete.quest90()
omega.complete.quest(90)
end
function omega.complete.quest91()
omega.complete.quest(91)
end
function omega.complete.quest92()
omega.complete.quest(92)
end
function omega.complete.quest93()
omega.complete.quest(93)
end
function omega.complete.quest94()
omega.complete.quest(94)
end
function omega.complete.quest95()
omega.complete.quest(95)
end
function omega.complete.quest96()
omega.complete.quest(96)
end
function omega.complete.quest97()
omega.complete.quest(97)
end
function omega.complete.quest98()
omega.complete.quest(98)
end
function omega.complete.quest99()
omega.complete.quest(99)
end
function omega.complete.quest100()
omega.complete.quest(100)
end

function omega.complete.quest(questnumber)
local t={'OMEGA_LEVEL_1','OMEGA_LEVEL_2','OMEGA_LEVEL_3','OMEGA_LEVEL_4','OMEGA_LEVEL_5','OMEGA_LEVEL_6','OMEGA_LEVEL_7','OMEGA_LEVEL_8','OMEGA_LEVEL_9','OMEGA_LEVEL_10','OMEGA_LEVEL_11','OMEGA_LEVEL_12','OMEGA_LEVEL_13','OMEGA_LEVEL_14','OMEGA_LEVEL_15','OMEGA_LEVEL_16','OMEGA_LEVEL_17','OMEGA_LEVEL_18','OMEGA_LEVEL_19','OMEGA_LEVEL_20','OMEGA_LEVEL_21','OMEGA_LEVEL_22','OMEGA_LEVEL_23','OMEGA_LEVEL_24','OMEGA_LEVEL_25','OMEGA_LEVEL_26','OMEGA_LEVEL_27','OMEGA_LEVEL_28','OMEGA_LEVEL_29','OMEGA_LEVEL_30','OMEGA_LEVEL_31','OMEGA_LEVEL_32','OMEGA_LEVEL_33','OMEGA_LEVEL_34','OMEGA_LEVEL_35','OMEGA_LEVEL_36','OMEGA_LEVEL_37','OMEGA_LEVEL_38','OMEGA_LEVEL_39','OMEGA_LEVEL_40','OMEGA_LEVEL_41','OMEGA_LEVEL_42','OMEGA_LEVEL_43','OMEGA_LEVEL_44','OMEGA_LEVEL_45','OMEGA_LEVEL_46','OMEGA_LEVEL_47','OMEGA_LEVEL_48','OMEGA_LEVEL_49','OMEGA_LEVEL_50','OMEGA_LEVEL_51','OMEGA_LEVEL_52','OMEGA_LEVEL_53','OMEGA_LEVEL_54','OMEGA_LEVEL_55','OMEGA_LEVEL_56','OMEGA_LEVEL_57','OMEGA_LEVEL_58','OMEGA_LEVEL_59','OMEGA_LEVEL_60','OMEGA_LEVEL_61','OMEGA_LEVEL_62','OMEGA_LEVEL_63','OMEGA_LEVEL_64','OMEGA_LEVEL_65','OMEGA_LEVEL_66','OMEGA_LEVEL_67','OMEGA_LEVEL_68','OMEGA_LEVEL_69','OMEGA_LEVEL_70','OMEGA_LEVEL_71','OMEGA_LEVEL_72','OMEGA_LEVEL_73','OMEGA_LEVEL_74','OMEGA_LEVEL_75','OMEGA_LEVEL_76','OMEGA_LEVEL_77','OMEGA_LEVEL_78','OMEGA_LEVEL_79','OMEGA_LEVEL_80','OMEGA_LEVEL_81','OMEGA_LEVEL_82','OMEGA_LEVEL_83','OMEGA_LEVEL_84','OMEGA_LEVEL_85','OMEGA_LEVEL_86','OMEGA_LEVEL_87','OMEGA_LEVEL_88','OMEGA_LEVEL_89','OMEGA_LEVEL_90','OMEGA_LEVEL_91','OMEGA_LEVEL_92','OMEGA_LEVEL_93','OMEGA_LEVEL_94','OMEGA_LEVEL_95','OMEGA_LEVEL_96','OMEGA_LEVEL_97','OMEGA_LEVEL_98','OMEGA_LEVEL_99','OMEGA_LEVEL_100'}
local player = Game.GetLocalPlayer();
local verify = false
	for i=1,100 do
		if player:HasToken(t[i]) then
			verify = true
				if questnumber>i then
					player:GiveToken(t[questnumber]);
					player:RemoveToken(t[i]);
					local tagnotify ='tagOM_onTransferComplete'..questnumber
					UI.Notify(tagnotify);
				---else
					--UI.Notify("tagOM_onTransferINcomplete");
				end
			break
		end
	end
	if verify == false then
		player:GiveToken(t[questnumber]);
		player:GiveToken('OMEGA_START_QUEST');
		local tagnotify ='tagOM_onTransferComplete'..questnumber
		UI.Notify(tagnotify);
	end
--omega.scripts.reset();
end


if (newNPC != nil) then
newNPC:NetworkEnable()
newNPC:SetCoords(coords)
end

the whole if is not really required, wont break it either but since nothing else is coming after that it doesnt matter, only thing to make it count is if you move the UI.Notify in there, so unless the NPC exists and spawned, the msg wont show.
anyways, I think just removing

newNPC:NetworkEnable()

should be enough

is that breaking it?

ill comment out those lines thanks
what does network enable do?

thanks again

I have no idea, but I just saw you had it in before with the inst spawn, so it must work with that, too.

btw you have dail = {} in another file? because its commented out :smiley:

I think I got it, check the path…
…/npc[s]/merchant[s]/…
:smiley:

since I couldnt find anything wrong with the code itself I just thought its the newNPC:NetworkEnable(), no idea what it does, I never use it, but it may be fine and I assumed the paths are correct, but unless you changed them they are different from the ones in
dail.scripts.spawndailnpcs()

ok fixed the paths (whoops) and still nothing. its breaking teh .lua file entirely… something in it is not right

I tried commenting otu the network enable code but it was fine before when i was just spawning npcs.

ill re add dail = {}

yeah you need that otherwise the dail table (array) doesnt exist, doesnt matter where it is but it has to be somewhere you could even write:

dail = {["scripts"]={},["summon"]={}}

or

dail={};dail.scripts={};dail.summon={};

it can be inside main.lua
You could also move all the dail functions into a new file in case of an OMEGA update :slight_smile:

sigh

dail={} was what was missing. i had it before and assumed based on one file that i didnt need it because omega didnt declare it there

PEBCAK :frowning:

thanks alot bro

anyways now i can have infinite spawning items and npcs and all sorts fo trickery

borg drones are jumping on it now

OMEGA has it in Omega_Mod.lua :slight_smile:

Hi,
I just was this thread.
Just to tell in Omega update I removed the NetworkEnable() thing and changed some script functions.
Also as WareBare says, I think the easiest is to make your own DAIL_scripts.lua add it to main.lua.
This way it will be compatible with other Omega updates, you will just have to add a line in the main.lua.
If you want to trigger an event onherodeath just adds a line to call for the function inside my script but write the functions in your own file as this will allow to have an easier time updating and finding what’s wrong.