Ir para conteúdo

Featured Replies

Postado

Queria essas talks abaixo funcionando para senior tutor, porém eu ja fiz o que sabia, mais player normal pode usar elas e 2 não funciona, /templo e /kikar não funciona, e /banip funciona mais player comum esta usando também:

/templo


function onSay(cid, words, param, channel)

local tid = cid

if(param ~= '') then

tid = getPlayerByNameWildcard(param)

if(not tid or (isPlayerGhost(tid) and getPlayerGhostAccess(tid) > getPlayerGhostAccess(cid))) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")

return true

end

end

local pos = getPlayerTown(tid)

local tmp = getTownName(pos)

if(not tmp) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Home town does not exists.")

return true

end

pos = getTownTemplePosition(pos)

if(not pos or isInArray({pos.x, pos.y}, 0)) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong temple position for town " .. tmp .. ".")

return true

end

pos = getClosestFreeTile(tid, pos)

if(not pos or isInArray({pos.x, pos.y}, 0)) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Destination not reachable.")

return true

end

tmp = getCreaturePosition(tid)

if(doTeleportThing(tid, pos, true) and not isPlayerGhost(tid)) then

doSendMagicEffect(tmp, CONST_ME_POFF)

doSendMagicEffect(pos, CONST_ME_TELEPORT)

end

return true

end


<talkaction log="yes" words="/templo" access="2" event="script" value="tutortemple.lua"/>

/kikar

function onSay(cid, words, param, channel)

local pid = 0

if(param == '') then

pid = getCreatureTarget(cid)

if(pid == 0) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")

return true

end

else

pid = getPlayerByNameWildcard(param)

end

if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")

return true

end

if(isPlayer(pid) and getPlayerAccess(pid) >= getPlayerAccess(cid)) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cannot kick this player.")

return true

end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(pid) .. " has been kicked.")

doRemoveCreature(pid)

return true

end


<talkaction log="yes" words="/kikar" access="2" event="script" value="kicktutor.lua"/>

/banip

function onSay(cid, words, param, channel)

local pid = getPlayerByNameWildcard(param)

if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")

return true

end

doAddIpBanishment(getPlayerIp(pid))

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(pid) .. " has been permanently banished.")

return true

end


<talkaction log="yes" words="/banip" acess="2" event="script" value="banip.lua"/>

Editado por jNo (veja o histórico de edições)

(1º) | [8.60] - Galaxy Server - Download

(2º) | [8.60] - Glorious Server - Download

(3º) | [8.60] - Epic Server - Download

  • Respostas 22
  • Visualizações 919
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Tente esse: function onSay(cid, words, param, channel) local group = 3 if not(getPlayerGroupId(cid) >= group) then return false end local tid = cid if(param ~= '') then tid = getPlaye

  • function onSay(cid, words, param, channel) local group = 3 if not(getPlayerGroupId(cid) >= group) then return false end if (param == '') then return doPlayerSendTextMessage(cid,

Postado
  • Autor


<talkaction log="/banip" words="/banip" access="2" event="script" value="banip.lua"/>

Ja estava assim a talk amigo e não funcionou :X

(1º) | [8.60] - Galaxy Server - Download

(2º) | [8.60] - Glorious Server - Download

(3º) | [8.60] - Epic Server - Download

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo