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

Solved Doublet quest

Diemorko

New Member
Joined
Jan 31, 2011
Messages
64
Reaction score
0
Code:
local config = {
  storage = 5100
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
  if(getPlayerStorageValue(cid, config.storage) < 1) then
  doPlayerAddItem(cid, 2485, 1)
  doPlayerSendTextMessage(cid,25,"You have found a doublet.")
  setPlayerStorageValue(cid, 5100, 1)
  else
  doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "The loose board is empty.")
  end
  return true
end

Why when I try to get this (press use on the floor) I get debug? and tibia crashed? Any idea?
I using TFS 1.0
 
Last edited by a moderator:
That doesn't matter, you can use an uniqueid since it will be only used once.
Add it in actions, with the uniqueid in actions.xml.
 
Back
Top