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

Quest in floor with special ActionID

kret

K R E T O W N A G E
Joined
Apr 4, 2008
Messages
947
Reaction score
6
Location
PяOLAND
Hello

This is part of my Blue legs quest.

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

if item.actionid == 53561 and getPlayerStorageValue(cid, 53565) ~= 1 then
setPlayerStorageValue(cid, 43565, 1)
doPlayerSendTextMessage(cid, 22, 'You have found a first part of Koshei\'s Ancient Amulet')
return TRUE
end
if item.actionid == 53564 and getPlayerStorageValue(cid, 53564) ~= 1 then
setPlayerStorageValue(cid, 43564, 1)
doPlayerSendTextMessage(cid, 22, 'You have found a second part of Koshei\'s Ancient Amulet')
return TRUE
end
if item.actionid == 53563 and getPlayerStorageValue(cid, 53563) ~= 1 then
setPlayerStorageValue(cid, 43563, 1)
doPlayerSendTextMessage(cid, 22, 'You have found a third part of Koshei\'s Ancient Amulet')
return TRUE
end
if item.actionid == 53562 and getPlayerStorageValue(cid, 53562) ~= 1 then
setPlayerStorageValue(cid, 43562, 1)
doPlayerSendTextMessage(cid, 22, 'You have found a fourth part of Koshei\'s Ancient Amulet')
return TRUE
end
end

I put on map in places like rl action id 53561,53562,53563 and 53564. When my server was 8.21 all works. I replace .exe from newest TFS (8.4 now) and quest does not work. Now is working only second and fourth part. When i click on floor where is script with first and third part of amulet nothing happen. Can any1 help me ? i dont have any ideas what is wrong :(
 
Code:
local config = {
	[53561] = { "first", 43565 }, [53562] = { "second", 43562 },
	[53563] = { "third", 43563 }, [53564] = { "fourth", 43564 }
}

function onUse(cid, item, frompos, item2, topos)
	for action, variable in pairs(config) do
		if getPlayerStorageValue(cid, 53565) ~= 1 then
			if getPlayerStorageValue(cid, variable[2]) ~= 1 then
				doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found "..variable[1].." part of Koshei's Ancient Amulet.")
				setPlayerStorageValue(cid, variable[2], TRUE)
			end
		end
	end
	return TRUE
end
 
Im using tfs 0.2 on TFS 0.2 for tibia 8.2x all works but on newest tfs for 8.4 doesnt work getting quest from floor. Doublet quest at rook doesnt work too.


edit

btw Marcinek~ thanx for try to help me but ur scripts doesn't works too... i think its fucked up something with engine ; s but i make in this place a Flower and quest in it :D and now it works with my old script :)
 
Last edited:
Back
Top