Hatsune Miku
Intermediate OT User
- Joined
- Jan 22, 2009
- Messages
- 370
- Reaction score
- 139
Credits to Bogart for helping me with some errors and teaching me how to fix them

So this script basicly teleports you to (1000x 1000y and 7z) from (1002x 1000y 7z) you can change thoose to whatever you want

If you want you can change it to anything else

If you want you can use this script in a quest


If you want people to say "!omgnoobwall" to get teleported to other side you can do that too

The Lua file

LUA:
local pos = {x = 1002, y = 1000, z = 7}
local temple = {x = 1000, y = 1000, z = 7}
local k = getCreaturePosition(cid)
function onSay(cid, words, param)
if (k.x == pos.x) and (k.y == pos.y) and (k.z == pos.z) then
doTeleportThing(cid, temple)
doPlayerSendTextMessage(cid, 21, "You have been teleported to the temple!")
doSendMagicEffect(getPlayerPosition(cid), 31)
end
return true
end
In talkactions.xml
XML:
<talkaction words="!omgnoobwall" event="script" value="x.lua"/>
Hope this helps someone


If you get any bugs please write here and I will try to fix it if I can altho I don't think you will get any

I am using TFS 0.3.6 distro, no bugs for me


This is the distro I am using http://otland.net/f18/8-60-forgotten-server-0-3-6-crying-damson-v8-147913/
EDIT: Also if you got any suggestions for something a noob in lua can make please post


Last edited: