esses erros começarao a parecer depois que eu criei o sit para meu otserver
1º bom e o seguinte quando eu attacko um player e mato fica dando -Rep e da uns erros no PAINEL DO MEU SERVER. e o life do player que eu attackei fica com 0 (zero) de Life (sangue) e ele nao morrer, e o player ainda pode anda com ZERO de life.
Ss:
ai olhei onde estava os erros fui em data\creaturescripts\scripts\rep\repkill e apaguei o arquivo e tambem fui em data\creaturescripts\scripts e apaguei um outro nomeado de repkill igual ao do caminho data\creaturescripts\scripts\rep\repkill tambem apaguei a tag de creaturescripts.xml.
ai desliguei o ot, e liguei dnv deu outro erro.
Ss:
ai ja nao sei o que fazer
2º quando do look em min ou em outro player nao aparece nem a vocaçao, nem o level.
Ss:
aki meus arquivos:
data\creaturescripts\scripts\Rep => repKill
function onKill(cid, target, lastHit)
local SKULL = {[sKULL_WHITE] = 15, [sKULL_RED] = 30, [sKULL_BLACK] = 45, [sKULL_NONE] = -30}
if (isPlayer(cid)) and (isPlayer(target)) and isInArray({0,3,4,5}, getCreatureSkullType(target)) then
if getPlayerLevel(target) > 30 then
doSendAnimatedText(getPlayerPosition(cid), "-REP", TEXTCOLOR_RED)
setPlayerRep(cid, getRepPoints(cid)+SKULL[getPlayerSkullType(target)])
end
end
if (isPlayer(cid)) and (isPlayer(target)) then
if getRepPoints(target) == 0 then
return true
elseif getRepPoints(target) > 0 then
removePlayerRep(target, 5, TEXTCOLOR_RED)
else
addPlayerRep(target, 5, TEXTCOLOR_RED)
end
end
return true
end
data\creaturescripts\scripts\repKill
--Cyber's REPutation System Rev5.0
local t = {
[sKULL_WHITE] = 15,
[sKULL_RED] = 30,
[sKULL_BLACK] = 45,
[sKULL_NONE] = -30,
}
function onKill(cid, target, lastHit)
if isPlayer(cid) and isPlayer(target) then
--THE KILLER
if isInArray({0,3,4,5}, getCreatureSkullType(target)) then
if getPlayerLevel(target) >= rep.pvpLevel and not isInArray(rep.skull, getCreatureSkullType(cid)) then
doSendAnimatedText(getCreaturePosition(cid), getCreatureSkullType(target) == 0 and '-REP' or '+REP', math.random(1,255))
rep.set(cid, rep.getPoints(cid)+t[getCreatureSkullType(target)])
doPlayerSendTextMessage(cid, 20, 'You '.. (getCreatureSkullType(target) == 0 and 'lose' or 'gain') ..' reputation because you killed a player.')
end
end
--THE VICTIM
if rep.getPoints(target) == 0 then
return true
elseif rep.getPoints(target) > 0 then
rep.remove(target, 5, TEXTCOLOR_RED)
doPlayerSendTextMessage(target, 20, 'You lose reputation because you were killed by a player.')
else
rep.add(target, 5, TEXTCOLOR_LIGHTBLUE)
doPlayerSendTextMessage(target, 20, 'You lose reputation because you were killed by a player.')
end
end
return true
end
data\creaturescripts\creaturescripts.xml
<event type="kill" name="repKill" event="script" value="rep/repKill.lua"/>
agora do look
data\creaturescripts\scripts\Rep\ =>repLook
-- >>> THE Players'REP++System CryingDamson Edition by Cybermaster <<< --
-- >>> Credits to darkhaos in this script<<< --
-- >>> Scripted IN and ONLY for TFS 0.3<<< --
function onLook(cid, thing, position, lookDistance)
if(isPlayer(thing.uid) == true) then
if(thing.uid == cid) then
doPlayerSendTextMessage(cid, 20, "You are "..getRepRank(getRepPoints(cid)).."")
else
doPlayerSendTextMessage(cid, 20, ""..getCreatureName(thing.uid).." is "..getRepRank(getRepPoints(thing.uid)).."")
end
return true
end
return true
end
data\creaturescripts\scripts\ => RepLook
--Cyber's REPutation System Rev5.0
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) then
doPlayerSetSpecialDescription(thing.uid,'.\n' .. (thing.uid == cid and 'You are' or rep.getArticle(thing.uid, true) .. ' is') .. ' ' .. rep.getRank(rep.getPoints(thing.uid)))
end
return true
end
data\creaturescripts\creaturescripts.xml
<event type="look" name="repLook" event="script" value="rep/repLook.lua"/>
NGN VAI AJUDA NAO? ME ENSINE COMO AGEITA ESSE ERRO OU ENTAUM DELETA OS ARQUIVOS DELE POR FAVOR ¬¬
PODEM FEICHA ninguem ta entendo o meu erro, ou nao quer ajudar ¬¬ vo fazer outro explicando melhor