Hi all!
I created new script!
When you use this scroll you will teleport to temple (or anywhere).
P.S: I am newbie at scripting!
Create TPScroll.lua at your actions/scripts folder and copy this;
Just edit temple coords :thumbup: (if you want you can edit level and itemid too )
And finally add this to actions.xml
Comments are welcome! :thumbup:
I created new script!
When you use this scroll you will teleport to temple (or anywhere).
P.S: I am newbie at scripting!
Create TPScroll.lua at your actions/scripts folder and copy this;
Just edit temple coords :thumbup: (if you want you can edit level and itemid too )
PHP:
local scroll = 6119
local temple = {x=xxx, y=xxx, z=x}
local level = 25
function onUse(cid, item, frompos, item2, topos)
if item.itemid == scroll and getPlayerLevel(cid) >= level then
doTeleportThing(cid, temple, TRUE)
doSendMagicEffect(temple,10)
doSendAnimatedText(temple, "You are in temple!", 5)
doRemoveItem(cid, item.uid, 1)
else
doPlayerSendCancel(cid, "Sorry, your level must higher than 25!")
end
return 1
end
Code:
<action itemid="6119" script="TPScroll.lua"/>