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

Commands !t 1 / !town

Joined
Apr 10, 2012
Messages
74
Reaction score
0
hi any one have script !t 1 or !town like when u write this commands you tp to the other temple , and you can only use in pz area. <_< .
 
Last edited:
i have it in my war project but i won't give it to anyone sorry

You had to post that? To do what? Brag?
This is probably the easiest script to make.

Unfortunately, Czapla_, I'm too lazy to make it.

Ello, don't expect any future help from me.
 
Lua:
function onSay(cid, words, param, channel)
	if(not getTileInfo(getCreaturePosition(cid)).protection) then
		doPlayerSendCancel(cid, "Sorry, not possible.")
		return true
	end
	
	doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
	doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	return true
end
 
iam noob but i might help xD

try this

Code:
function onSay(cid, words, param, channel)
ppos = getPlayerPosition(cid)
topos = {x = 908, y = 1241, z = 7}

if isPlayer(cid) == true then
doTeleportThing(cid, topos, TRUE)
doSendMagicEffect(ppos,10)
doSendMagicEffect(topos,10)

end
return 1
end

edit
to that wanted position
 
Did you add it in talkactions.xml correctly?

Also, maybe you need the parameters part in the script as well.

Lua:
function onSay(cid, words, param, channel)
	if(not getTileInfo(getCreaturePosition(cid)).protection) then
		doPlayerSendCancel(cid, "Sorry, not possible.")
		return true
	end
 
	doTeleportThing(cid, getTownTemplePosition(param))
	doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	return true
end

Not sure if that works, it's a guess right out of the blue.
 
The script looks perfectly fine (the one I posted).
You say you put it in talkactions.xml correctly.
You put the towns by ID in the mapeditor.
You're in PZ.
No errors in console.

And not working?
I don't know what to tell you, everything looks fine.

Sorry
 
Back
Top