• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

test hall tp script help

Blackcody

RiseOfTibia Owner
Joined
Aug 31, 2008
Messages
136
Reaction score
1
Code:
function onSay(cid, words, param, channel)
     if getPlayerAccess(cid)= 5 then 
		doTeleportThing(cid, x 1018, y 912, z 7)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Test Hall.")
		return true
	end
 
Last edited:
LUA:
function onSay(cid,words,param)
	if getPlayerAcces(cid) >= 5 then
		doTeleportThing(cid,{x=1018,y=912,z=7})
		doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"Test Hall.")
		doSendMagicEffect(getThingPos(cid),CONT_ME_TELEPORT)
	else
		doPlayerSendCancel(cid,'You are not authorized to use this talkaction.')
		doSendMagicEffect(getThingPos(cid),CONT_ME_POFF)
	end
	return true
end
 
Code:
function onSay(cid,words,param)
	doTeleportThing(cid,{x=1018,y=912,z=7})
	doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"Test Hall.")
	doSendMagicEffect(getThingPos(cid),CONT_ME_TELEPORT)
return true
end

Code:
<talkaction log="yes" access="5" words="/testhall" event="script" value="Testhall.lua"/>
 
Code:
function onSay(cid,words,param)
	doTeleportThing(cid,{x=1018,y=912,z=7})
	doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"Test Hall.")
	doSendMagicEffect(getThingPos(cid),CONT_ME_TELEPORT)
return true
end

Code:
<talkaction log="yes" access="5" words="/testhall" event="script" value="Testhall.lua"/>

Exactly the same, no need to copy and paste the work of others.
 
Exactly the same, no need to copy and paste the work of others.
I'm not an annoying retard
Yours wouldn't work because of - getPlayerAcces(cid) and most people here doens't understand what the problem is even if it is one letter missing, that's why I posted the "exact" same script.

Now I just saw another typo, CONT_ME_TELEPORT

So here is the exact same script again:
Code:
function onSay(cid,words,param)
	doTeleportThing(cid,{x=1018,y=912,z=7})
	doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"Test Hall.")
	doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT)
return true
end
 
Last edited:
Back
Top