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

I need this script

Listo

New Member
Joined
Aug 17, 2008
Messages
222
Reaction score
0
HEllo otland!!

I need a script.:wub: If u push 1 demon horn on coal basin then will the mystic flame transformed into a teleport. Its exactly the same as the scarab coin in rl tibia but now its with a demon horn.
Hope someone can help me!:thumbup:

Cya /Listo
 
U mean that if you put a demon horn on coal basin, you can walk on the flame to get to the other side, else you cant?
 
Code:
function onUse(cid, item, frompos, item2, topos) 

local scarabpos = {x=32849,y=32342,z=8,stackpos=255} 
local scarab = getThingfromPos(scarabpos) 

local telepos = {x=32755,y=32320,z=11,stackpos=1} 

local beforepos = getPlayerPosition(cid) 

local effect1pos = {x=32849,y=32343,z=8,stackpos=1} 

if scarab.itemid == 5954 and beforepos.x == 32849 and beforepos.y == 32343 and beforepos.z == 8 then 
doTeleportThing(cid,telepos) 
doSendMagicEffect(effect1pos,12) 
doSendMagicEffect(telepos,10) 
doSendMagicEffect(scarabpos,2) 
doRemoveItem(scarab.uid,1) 

else 

doPlayerSendCancel(cid,"You need to stay in the fire.") 

end 
if item.itemid == 1485 then 
doPlayerSendCancel(cid,"Put Demon Horn on coal basin.") 

end 
return 1 
end
 
PHP:
function onUse(cid, item, frompos, item2, topos) 

local scarabpos = {x=32849,y=32342,z=8,stackpos=255} 
local scarab = getThingfromPos(scarabpos) 

local telepos = {x=32755,y=32320,z=11,stackpos=1} 

local beforepos = getPlayerPosition(cid) 

local effect1pos = {x=32849,y=32343,z=8,stackpos=1} 

if scarab.itemid == 5954 and beforepos.x == 32849 and beforepos.y == 32343 and beforepos.z == 8 then 
doTeleportThing(cid,telepos) 
doSendMagicEffect(effect1pos,12) 
doSendMagicEffect(telepos,10) 
doSendMagicEffect(scarabpos,2) 
doRemoveItem(scarab.uid,1) 

else 

doPlayerSendCancel(cid,"You need to stay in the fire.") 

end 
if item.itemid == 1485 then 
doPlayerSendCancel(cid,"Put Demon Horn on coal basin.") 

end 
return 1 
end
 

Similar threads

Back
Top