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

Problem with /goto monsters

inmate91

New Member
Joined
Feb 16, 2010
Messages
8
Reaction score
0
When im online on my Gm i can do /goto players and most most monsters. But for some wierd reason i cannot do /goto ferumbras/orshabaal/morgaroth/ghazbaran. What is the problem?
 
i know they are spawned becouse i spawned them myself + did the raid for them and checked that they are there. Okey ill check that out
 
In ferumbras.xml -> <monster name="Ferumbras" nameDescription="Ferumbras" race="VENOM" experience="12000" speed="320" manacost="0">
and in monsters.xml -> <monster name="Ferumbras" file="bosses/ferumbras.xml"/>
 
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")
return true
end

local creature = getCreatureByName(param)
local player = getPlayerByNameWildcard(param)
local waypoint = getWaypointPosition(param)
local tile = string.explode(param, ",")
local pos = {x = 0, y = 0, z = 0}

if(player ~= nil and (not isPlayerGhost(player) or getPlayerGhostAccess(player) <= getPlayerGhostAccess(cid))) then
pos = getCreaturePosition(player)
elseif(creature ~= nil and (not isPlayer(creature) or (not isPlayerGhost(creature) or getPlayerGhostAccess(creature) <= getPlayerGhostAccess(cid)))) then
pos = getCreaturePosition(creature)
elseif(type(waypoint) == 'table' and waypoint.x ~= 0 and waypoint.y ~= 0) then
pos = waypoint
elseif(tile[2] and tile[3]) then
pos = {x = tile[1], y = tile[2], z = tile[3]}
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.")
return true
end

if(not pos or isInArray({pos.x, pos.y}, 0)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Destination not reachable.")
return true
end

pos = getClosestFreeTile(cid, pos, true, false)
if(not pos or isInArray({pos.x, pos.y}, 0)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cannot perform action.")
return true
end

local tmp = getCreaturePosition(cid)
if(doTeleportThing(cid, pos, true) and not isPlayerGhost(cid)) then
doSendMagicEffect(tmp, CONST_ME_POFF)
doSendMagicEffect(pos, CONST_ME_TELEPORT)
end

return true
end


Do not know how to make code box so plz tell me that to so it looks pretier in post :P

Also worht mentioning is that when i try to /goto ferumbras i get Invalid param specified.
 
try to go outside of pz and then ./m ferumbras and then /goto ferumbras see if it works.
and search in your server if there are players with that names
 
I havent opened the server for the public yet so i know there are no players with that name.
And ofcourse i am outside of pz when i do it since u cant summon monsters in pz :)
 
then its strange cous nothing is wrong with your talkaction and your monster thats why i asked to try it outside of pz.
try to make a custom boss and /m the boss and try to teleport to that see if that works.

btw what server are you using?
 
Okok. I have got a custom monster, Angry Benjamin, and he works fine to teleport to. Thats why i asked here since its so strange :/
hmm i dont really know, its a friend of mine who is hosting and provided me with basic stuffs. Is there any way ti check it?
 
Back
Top