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

/gmisland talkaction for staffs.

Eternal Life

New Member
Joined
May 15, 2011
Messages
148
Reaction score
1
Location
Aguadilla,Puerto Rico
Just like the tittle says am requesting a command for tutors+ so they can use it if not lock pz and get teleported to gm island for meetings and stuff...it should be something like /t but like i said it tps you to gm island.

Ill rep!! :D
 
Lua:
local cpos = getCreaturePosition(cid)
local pos = {x = 1234, y = 1234, z = 5} -- teleport place x,y,z coords.

function onSay(cid, words, param, channel)
if getPlayerAccess(cid) >= 3 then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You succesfully teleported to GM Island.")
doTeleportThing(cid, pos,true)
doSendMagicEffect(pos, 26)
doSendMagicEffect(cpos, 26)
end

return true
end
 
I have this

local cpos = getCreaturePosition(cid)
local pos = {x = 239, y = 1002, z = 7} -- teleport place x,y,z coords.

function onSay(cid, words, param, channel)
if getPlayerAccess(cid) >= 3 then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You succesfully teleported to GM Island.")
doTeleportThing(cid, pos,true)
doSendMagicEffect(pos, 47)
doSendMagicEffect(cpos, 47)
end

return true
end

It doesnt work i get error that says

creature not found on creatureposition...

It says You succesfully teleported to GM Island but it doesnt show effect and it doesn't teleport
 
Try
Lua:
config = 
{
	pos = {x = 0, y = 0, z = 0},
	effectId = CONST_ME_PURPLEENERGY,
	accessId = {3, 4, 5}
}

function onSay(cid, words, param, channel)
	if (isInArray(config.accessId, getPlayerAccess(cid))) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You succesfully teleported to GM Island.")
		doTeleportThing(cid, config.pos, true)
		for _, pos in ipairs({[0] = getCreaturePosition(cid), [1] = config.pos}) do
			doSendMagicEffect(pos, config.effectId)
		end
	else
		doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
	end
	return true
end
 
Last edited:
Code:
local cpos = getCreaturePosition(cid)
local pos = {x = 1234, y = 1234, z = 5} -- teleport place x,y,z coords.
 
function onSay(cid, words, param, channel)
if getPlayerAccess(cid) >= 3 then
if getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE
then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You succesfully teleported to GM Island.")
doTeleportThing(cid, pos)
doSendMagicEffect(pos, 26)
doSendMagicEffect(cpos, 26)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_SMALL , "Sorry, not possible.")
end
end
return true
end

check does it work
im not sure about end
but u should add one more if u will get error in console
 
Last edited:
Lua:
local config = {
	minacces = 3, -- groupid needed
	position = {x=1,y=1,z=1} -- where to be teleported to.
	}
	
function onSay(cid,words,param)
	if getPlayerAcces(cid) >= config.minacces then
		if not(getCreatureCondition(cid,CONDITION_INFIGHT))then
			doTeleportThing(cid,config.position)
			doSendMagicEffect(config.position,CONST_ME_TELEPORT)
			doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_RED,'You have been teleported to GM Island.')
		else
			doPlayerSendCancel(cid,'You can\'t use this command while in combat.')
			doSendMagicEffect(getThingPos(cid),CONST_ME_POFF)
		end
	else
		doPlayerSendCancel(cid,'You can\'t use this command if you are lower than groupid '..config.minacces..'!')
		doSendMagicEffect(getThingPos(cid),CONST_ME_POFF)
	end
	return true
end
 
Back
Top