Oi Pessoal,Ultimamente eu tive recebendo Reps negativos - Agora quero melhorar pra vcs ai então!
E o seguinte o systema funciona quando o player Utiliza o Comando !bugreport Simples né ai então marca o Local do bug e é enviado automaticamente ao 1 god ou gm.
\data\talkactions\scripts
Crie Um arquivo com nome bugreport.lua adicione isso:
function onSay(cid, words, param, channel)local storage = 6707
local delaytime = 600
local a = "data/txt/bugs.txt"
local f = io.open(a, "a+")
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Param comando necessário.")
return true
end
local exhaust = exhaustion.get(cid, storage)
if(not exhaust) then
exhaustion.set(cid, storage, delaytime)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Seu relatório foi recebido com sucesso!Manelkscouto Xtibia")
f:write("\n"..getPlayerName(cid).." reported a bug at " .. os.date("%d %B %Y - %X ", os.time()) .."\n"..param.." [x=..getPlayerPosition(cid).x..", y="..getPlayerPosition(cid).y..", z="..getPlayerPosition(cid).z..].\n")
f:close()
else
doPlayerSendCancel(cid, "You are exhausted.")
end
return true
end
E agora adicione a segunda linha no arquivo talkactions:
<talkaction words="!bugreport;!reportbug;/bugreport;/reportbug" event="script" value="bugreport.lua"/>
É Isso pessoal gostariam que todos vocês avaliam meu post.Tambem foi dedicado ao amigo que estava querendo essa action.
Creditos ~ManelksCouto~ Por editar e botar em português. Corrigido Bug na Player Position