• 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!

Problem with annih (DoSummonCreature)

chenejj

New Member
Joined
Nov 18, 2007
Messages
8
Reaction score
0
I ahd a Umbyot xml for 8.0
I moved to tfs 0.2.6 I got 4 diff kinds of annih quests, all worked perfectly untill I moved them to tfs, when 4 players trying to pull the lever it says error...blablabla onuse dosummoncreature demon
something like that
and I think the command DoTeleport~ isnt working either
can any1 tell me what to do/gimme a working script/how to add those commands?
plus, commands GetCreatureName for npcs and if pay commands arnt working! that fked my npcs

thanks
 
HTML:
-- annihilator lever creds to WarMaker from Tibiafans

function onUse(cid, item, frompos, item2, topos)

   	if item.uid == 7000 and item.itemid == 1945 then
		local player1pos = {x=384, y=759, z=11, stackpos=253} -- position of player 1
		local player1 = getThingfromPos(player1pos)

		local player2pos = {x=383, y=759, z=11, stackpos=253} -- position of player 2
		local player2 = getThingfromPos(player2pos)

		local player3pos = {x=382, y=759, z=11, stackpos=253} -- position of player 3
		local player3 = getThingfromPos(player3pos)

		local player4pos = {x=381, y=759, z=11, stackpos=253} -- position of player 4
		local player4 = getThingfromPos(player4pos)
		dzwignia = os.clock()


		if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then
			local queststatus1 = getPlayerStorageValue(player1.uid,7000)
			local queststatus2 = getPlayerStorageValue(player2.uid,7000)
			local queststatus3 = getPlayerStorageValue(player3.uid,7000)
			local queststatus4 = getPlayerStorageValue(player4.uid,7000)

			if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 and queststatus4 == -1 then
			
				local nplayer1pos = {x=384, y=761, z=12, stackpos=253} --- where player 1 will be teleported
				local nplayer2pos = {x=383, y=761, z=12, stackpos=253} --- where player 2 will be teleported
				local nplayer3pos = {x=382, y=761, z=12, stackpos=253} --- where player 3 will be teleported
				local nplayer4pos = {x=381, y=761, z=12, stackpos=253} --- where player 4 will be teleported
				
				local demon1pos = {x=383, y=759, z=12, stackpos=253} -- position for demon 1
				local demon2pos = {x=381, y=759, z=12, stackpos=253} -- position for demon 2
				local demon3pos = {x=382, y=763, z=12, stackpos=253} -- position for demon 3
				local demon4pos = {x=384, y=763, z=12, stackpos=253} -- position for demon 4
				local demon5pos = {x=386, y=761, z=12, stackpos=253} -- position for demon 5
				local demon6pos = {x=385, y=761, z=12, stackpos=253} -- position for demon 6

				doSendMagicEffect(player1pos,2)
				doSendMagicEffect(player2pos,2)
				doSendMagicEffect(player3pos,2)
				doSendMagicEffect(player4pos,2)
				
				doSummonCreature("demon", demon1pos)
				doSummonCreature("demon", demon2pos)
				doSummonCreature("demon", demon3pos)
				doSummonCreature("demon", demon4pos)
				doSummonCreature("demon", demon5pos)
				doSummonCreature("demon", demon6pos)

				doTeleportThing(player1.uid,nplayer1pos)
				doTeleportThing(player2.uid,nplayer2pos)
				doTeleportThing(player3.uid,nplayer3pos)
				doTeleportThing(player4.uid,nplayer4pos)

				doSendMagicEffect(nplayer1pos,10)
				doSendMagicEffect(nplayer2pos,10)
				doSendMagicEffect(nplayer3pos,10)
				doSendMagicEffect(nplayer4pos,10)

				doTransformItem(item.uid,item.itemid+1)
		end

		else
			doPlayerSendCancel(cid,"You need 4 players in your team.")
		end

	elseif item.uid ==7000 and item.itemid == 1946 then
		if getPlayerAccess(cid) > 0 then
			doTransformItem(item.uid,item.itemid-1)
			end
		end
	return 1
end

this is my current script
 
Back
Top