Zysen
=)
Features
LUA Script
data/actions/other/wand.lua
actions.xml
NOTE: I only tested it in my console and i didn't get any errors (TFS 0.2.8)
Regards,
Zysen
Use the wand,and a teleport creates
LUA Script
data/actions/other/wand.lua
LUA:
--Credits: Zysen @OtLand--
local ppos = getPlayerPosition(cid)
local temple = {x=1000, y=1000, z=7} ---edit this to your temple position
function onUse(cid, item, frompos, item2, topos)
if item.actionid == 7415 and getPlayerLevel(cid) >= 50 then
doPlayerAddItem(cid, 7410, 1)
doCreateTeleport(itemid, temple, ppos - 1)
doSendMagicEffect(ppos, 34)
doSendAnimatedText(playerpos,"Teleport created.", 172)
else
doPlayerSendCancel(cid,"You don't have the required level to use this.")
end
return TRUE
end
actions.xml
XML:
<action itemid="7415" script="other/wand.lua"/>
NOTE: I only tested it in my console and i didn't get any errors (TFS 0.2.8)
Regards,
Zysen
Last edited: