function onStepIn(cid, item, pos)
queststatus = getPlayerStorageValue(cid,item.actionid)
if item.actionid == 20001 then
ghost1pos = {x=frompos.x, y=frompos.y, z=frompos.z}
ghost2pos = {x=frompos.x, y=frompos.y, z=frompos.z}
dspos = {x=frompos.x, y=frompos.y, z=frompos.z}
if queststatus ~= 1 then
setPlayerStorageValue(cid,item.actionid,1)
doPlayerSendCancel(cid,"Seal Completed.")
doSendMagicEffect(topos,12)
doSummonCreature("Ghost",ghost1pos)
doSummonCreature("Ghost",ghost2pos)
doSummonCreature("Demon Skeleton",dspos)
else
return 0
end
elseif item.actionid == 20002 then
lever1 = getThingfromPos{x=frompos.x, y=frompos.y, z=frompos.z, stackpos=1}
lever2 = getThingfromPos{x=frompos.x, y=frompos.y, z=frompos.z, stackpos=1}
lever3 = getThingfromPos{x=frompos.x, y=frompos.y, z=frompos.z, stackpos=1}
lever4 = getThingfromPos{x=frompos.x, y=frompos.y, z=frompos.z, stackpos=1}
lever5 = getThingfromPos{x=frompos.x, y=frompos.y, z=frompos.z, stackpos=1}
lever6 = getThingfromPos{x=frompos.x, y=frompos.y, z=frompos.z, stackpos=1}
if lever1.itemid == 1945 and lever2.itemid == 1945 and lever3.itemid == 1945 and lever4.itemid == 1945 and lever5.itemid == 1946 and lever6.itemid == 1946 then -- Last 2 switches need to be pulled edit this for your liking
if queststatus ~= 1 then
setPlayerStorageValue(cid,item.actionid,1)
doPlayerSendCancel(cid,"Seal Completed.")
doSendMagicEffect(topos,12)
else
return 0
end
end
elseif item.actionid == 20003 then -- this is linked to a script furtherdown.
if queststatus ~=1 then
setPlayerStorageValue(cid,item.actionid,1)
doPlayerSendCancel(cid,"Seal Completed.")
doSendMagicEffect(topos,12)
end
elseif item.actionid == 20004 then
blood1 = getThingfromPos({x=pos.x, y=pos.y, z=pos.z, stackpos=2})
blood2 = getThingfromPos({x=pos.x, y=pos.y, z=pos.z, stackpos=2})
if blood1.itemid == 2006 and blood1.type == 2 and blood2.itemid == 2006 and blood2.type == 2 then
if queststatus ~= 1 then
setPlayerStorageValue(cid,item.actionid,1)
doPlayerSendCancel(cid,"Seal Completed.")
doSendMagicEffect(topos,12)
end
end
elseif item.actionid == 20005 then -- this script is linked to an external script
if getGlobalStorageValue(20005) == 5 then
if queststatus ~=1 then
setPlayerStorageValue(cid,item.actionid,1)
doPlayerSendCancel(cid,"Seal Completed.")
doSendMagicEffect(topos,12)
end
end
elseif item.actionid == 20006 then
wpearl = getThingfromPos({x=pos.x, y=pos.y, z=pos.z, stackpos=2})
bpearl = getThingfromPos({x=pos.x, y=pos.y, z=pos.z, stackpos=2})
if wpearl.itemid == 2143 and bpearl.itemid == 2144 then
if queststatus ~= 1 then
setPlayerStorageValue(cid,item.actionid,1)
doPlayerSendCancel(cid,"Seal Completed.")
doSendMagicEffect(topos,12)
doRemoveItem(wpearl.uid,1)
doRemoveItem(bpearl.uid,1)
end
end
--End of Seals--
elseif item.actionid == 20000 then -- This is for the third seal set this actionid to the tiles that they shouldnt step on.
startpos = {x=pos.x, y=pos.y, z=pos.z}
if isPlayer(cid) == 1 then
doTeleportThing(cid,startpos)
end
elseif item.actionid == 20007 or item.actionid == 20008 then
warlock1pos = {x=frompos.x, y=frompos.y, z=frompos.z}
warlock2pos = {x=frompos.x, y=frompos.y, z=frompos.z}
if queststatus ~= 1 then
setPlayerStorageValue(cid,item.actionid,1)
doSummonCreature("Warlock",warlock1pos)
doSummonCreature("Warlock",warlock1pos)
end
end
end