Apologies in advance, this will be long~
I'm using TFS 8.6 and Ramere's Map Editor.
So after messing around and looking through the files I've found out that actionid = 2000 is the chest quest.
What I can't figure out is how to make the chest quest give a unique item. For example, like in real tibia there are trees with keys inside of them, how does each tree give a unique key?
As far as I've gotten is:
At this point I can't quite seem to figure out how to give the player the key to the door.
The more advanced side of the quest is there will be a stone with "items hidden underneath it." When you right click the stone a bag with boots, a rope, and a note saying "quest" text.
Is it possible to have a bag with items and a scroll with saved text on it?
Thanks very much if you read this, I look forward to your help!
I'm using TFS 8.6 and Ramere's Map Editor.
So after messing around and looking through the files I've found out that actionid = 2000 is the chest quest.
What I can't figure out is how to make the chest quest give a unique item. For example, like in real tibia there are trees with keys inside of them, how does each tree give a unique key?
As far as I've gotten is:
- Double click the tree and set the actionid to 2000 and the uniqueid to 1000 (for tree #2 I set the uniqueid to 1001).
- Logged into the game and right clicked on the tree and this message popped up, "You have found a reward weighing 0oz. It is too heavy or you do not have enough space."
if(doPlayerAddItemEx(cid, reward.uid, false) ~= RETURNVALUE_NOERROR) then
result = "You have found a reward weighing " .. getItemWeight(reward.uid) .. " oz. It is too heavy or you do not have enough space."
else
result = "You have found " .. result .. "."
setPlayerStorageValue(cid, storage, 1)
if(questsExperience[storage] ~= nil) then
doPlayerAddExp(cid, questsExperience[storage])
doSendAnimatedText(getCreaturePosition(cid), questsExperience[storage], TEXTCOLOR_WHITE)
end
end
result = "You have found a reward weighing " .. getItemWeight(reward.uid) .. " oz. It is too heavy or you do not have enough space."
else
result = "You have found " .. result .. "."
setPlayerStorageValue(cid, storage, 1)
if(questsExperience[storage] ~= nil) then
doPlayerAddExp(cid, questsExperience[storage])
doSendAnimatedText(getCreaturePosition(cid), questsExperience[storage], TEXTCOLOR_WHITE)
end
end
At this point I can't quite seem to figure out how to give the player the key to the door.
The more advanced side of the quest is there will be a stone with "items hidden underneath it." When you right click the stone a bag with boots, a rope, and a note saying "quest" text.
Is it possible to have a bag with items and a scroll with saved text on it?
Thanks very much if you read this, I look forward to your help!