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

Use the key in the door for a specified time

cmcpro

New Member
Joined
May 27, 2009
Messages
55
Reaction score
0
Location
Brazil/SP
I need a script, the player uses the key in the door, and is in the basement for a time, then he is teleported to the temple, someone help me?
tfs 0.4 - tibia 8.60
thanks in advance
 
Please the request board in the future if you have requests.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

   if itemEx.aid == 45001 then
     doTeleportThing(cid, {x = 1000, y = 1000, z = 7})
     addEvent ( function () doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) end, 120000)
   end
  
  return true
end
 
Please the request board in the future if you have requests.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

   if itemEx.aid == 45001 then
     doTeleportThing(cid, {x = 1000, y = 1000, z = 7})
     addEvent ( function () doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) end, 120000)
   end
 
  return true
end



I need this item be removed immediately after use, and the player to stay for a period of 12 hours in the hunt. can you help me ?
thanks in advance
 
I need this item be removed immediately after use, and the player to stay for a period of 12 hours in the hunt. can you help me ?
thanks in advance
Just use exhaustion and kick the player with a globalevent or login creaturescript
 
Back
Top