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

Need Help!

grogan

New Member
Joined
Dec 6, 2007
Messages
133
Reaction score
0
Hello. Im having trouble making a item that teleports you to somewhere else so when you click on the item you get teleported can anyone please help.
im using itemid: 7824
and using Aries 0.4.5 XML
can anyone help thanks.
 
Here you go:
PHP:
-- A script made by Clary 100%
local newpos = {x=1000, y=1000, z=7}
function onUse(cid, item, fromPos, item2, toPos)
if item.actionid == 20009 then
doTeleportThing(cid, newpos)
doSendMagicEffect(newpos, 55)
end
 
Last edited:
just change the pos and add a line to actions.xml :/
with the actionid 20009
and while mapping make any item with actionid 20009
then use it in-game :/
 
got a error:
cannot open data/actions/scripts/tpitem.lua: no such file or dictionary
Warning: Event::loadscript can not load script. data/actions/scripts/tpitem.lua
data/actions/scripts/tpitem/lua:7: 'end' expected <to close 'function' at line 2>
near '<eof>'

thats what it said :eek:
 
here u go and don't triple post :/
PHP:
-- A script made by Clary 100%
local newpos = {x=1000, y=1000, z=7}
function onUse(cid, item, fromPos, item2, toPos)
if item.actionid == 20009 then
doTeleportThing(cid, newpos)
doSendMagicEffect(newpos, 55)
end  
end
 
Back
Top