Olha , ao inves da mensagem ser mandada no default , ira ser mandada em vermelho para todo mundo , ok ?
Pois preferi assim , porque fica mais facil do GOD ver quem mandou ..
Va na pasta do seu OT data/talkactions/scripts , copie e cole um arquivo .lua , apague tudo que tem dentro , renomeie para "chamando" e coloque isso dentro :
function onSay(cid, words, param, channel)if(words == "GOD") then
doBroadcastMessage(GetPlayerName(cid) .. "have called the GOD !)
end
return 1
end
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
Quem eh scripter , poderia comentar como colocar para nao acontecer flood , pois como ainda sou iniciante eu nao sei ..
Depois va talkactions.xml e acresente isso :
<talkaction log="yes" words="/accept invite;/reject invite" access="5" event="script" value="chamando.lua"/>
E mais isso :
<talkaction words="GOD" script="chamando.lua"/>
Se funcionar , REP+?



info
Grupo: Campones
Registrado: 28/01/11
Posts: 1
Reputação: -1
Char no Tibia: Nightmare Skull
Oiie , estou pedido aqui , ou se tiver que me redirecione .
Presiso de um script +/-. assim.
O Player Fla "GOD".
Ae Automaticamente , apareçe uma msg no Default, /accept invite "PLAYER NAME", /Reject Invite "player name".
ae se accept o god é teleportado ao player , se reject naum .
e tabém que tiver um modo de antiflood um tempo mininmo de pedido e tal .
se alguem sober de algum script assim , que ja esteja postado , os se nun tiver fica a dica.
Obrigado
PS: Sei de action so um pouco ;/