• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Help,banshee quest

Nacke

New Member
Joined
Feb 13, 2008
Messages
79
Reaction score
0
Hello,no work in tfs 0.3.4 please resolved problem please.is very complex the scrip

PHP:
function onUse(cid, item, frompos, item2, topos)
	queststatus = getGlobalStorageValue(20014)
	if item.actionid == 20105 then
		if item.itemid == 1945 then
			doTransformItem(item.uid,item.itemid+1)
			setGlobalStorageValue(20014,1)
		elseif item.itemid == 1946 then
			doTransformItem(item.uid,item.itemid-1)
			setGlobalStorageValue(20014,0)
		end
	elseif item.actionid == 20205 then
		if item.itemid == 1945 then
			doTransformItem(item.uid,item.itemid+1)
			if queststatus == 1 then				
				setGlobalStorageValue(20014,2)			
			end
		elseif item.itemid == 1946 then
			doTransformItem(item.uid,item.itemid-1)
			setGlobalStorageValue(20014,0)
		end
	elseif item.actionid == 20305 then
		if item.itemid == 1945 then
			doTransformItem(item.uid,item.itemid+1)
			if queststatus == 2 then				
				setGlobalStorageValue(20014,3)			
			end
		elseif item.itemid == 1946 then
			doTransformItem(item.uid,item.itemid-1)
			setGlobalStorageValue(20005,0)
		end
	elseif item.actionid == 20405 then
		if item.itemid == 1945 then
			doTransformItem(item.uid,item.itemid+1)
			if queststatus == 3 then				
				setGlobalStorageValue(20014,4)			
			end
		elseif item.itemid == 1946 then
			doTransformItem(item.uid,item.itemid-1)
			setGlobalStorageValue(20014,0)
		end
	elseif item.actionid == 20505 then
		if item.itemid == 1945 then
			doTransformItem(item.uid,item.itemid+1)
			if queststatus == 4 then				
				setGlobalStorageValue(20014,5)			
			end
		elseif item.itemid == 1946 then
			doTransformItem(item.uid,item.itemid-1)
			setGlobalStorageValue(20014,0)
		end
	end
end

PHP:
function onStepIn(cid, item, pos)

queststatus = getPlayerStorageValue(cid,item.actionid)

if item.actionid == 20010 then
	ghost1pos = {x=32215, y=31902, z=13}
	ghost2pos = {x=32275, y=31904, z=13}
	dspos = {x=32273, y=31903, z=13}
	if queststatus ~= 1 then
		setPlayerStorageValue(cid,item.actionid,1)
		doCreatureSay(cid,"The Hidden Seal Completed",TALKTYPE_ORANGE_1)
		doSendMagicEffect(topos,12)
		doSummonCreature("Ghost",ghost1pos)
		doSummonCreature("Ghost",ghost2pos)
		doSummonCreature("Demon Skeleton",dspos)
	else
		return 0
	end		
elseif item.actionid == 20011 then
	lever1 = getThingfromPos{x=32310, y=31975, z=13, stackpos=1}
	lever2 = getThingfromPos{x=32310, y=31976, z=13, stackpos=1}
	lever3 = getThingfromPos{x=32312, y=31975, z=13, stackpos=1}
	lever4 = getThingfromPos{x=32312, y=31976, z=13, stackpos=1}
	lever5 = getThingfromPos{x=32314, y=31975, z=13, stackpos=1}
	lever6 = getThingfromPos{x=32314, y=31976, z=13, 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 == 20012 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 == 20013 then
	blood1 = getThingfromPos({x=32242, y=31891, z=14, stackpos=2})
	blood2 = getThingfromPos({x=32242, y=31893, z=14, 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 == 20014 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 == 20015 then
	wpearl = getThingfromPos({x=32173, y=31871, z=15, stackpos=2})
	bpearl = getThingfromPos({x=32180, y=31871, z=15, 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 == 20018 then -- This is for the third seal set this actionid to the tiles that they shouldnt step on.
	startpos = {x=32215, y=31835, z=15}
	if isPlayer(cid) == 1 then
		doTeleportThing(cid,startpos)
	end
elseif item.actionid == 20016 or item.actionid == 20017 then
	warlock1pos = {x=32215, y=31832, z=15}
	warlock2pos = {x=32216, y=31834, z=15}
	if queststatus ~= 1 then
		setPlayerStorageValue(cid,item.actionid,1)
		doSummonCreature("Warlock",warlock1pos)
		doSummonCreature("Warlock",warlock1pos)
	end
end
end

thz
 
Back
Top