helanio 2 Postado Fevereiro 16, 2011 Share Postado Fevereiro 16, 2011 (editado) 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 Editado Fevereiro 16, 2011 por helanio Link para o comentário https://xtibia.com/forum/topic/151749-encerrado-ajuda-por-favor/ Compartilhar em outros sites More sharing options...
Fagnerboff 0 Postado Fevereiro 24, 2011 Share Postado Fevereiro 24, 2011 Tente excluir todos os arquivos equivalentes ao rep system, pois o mesmo deve estar bugado. abrçs Link para o comentário https://xtibia.com/forum/topic/151749-encerrado-ajuda-por-favor/#findComment-1005299 Compartilhar em outros sites More sharing options...
1877799 56 Postado Fevereiro 24, 2011 Share Postado Fevereiro 24, 2011 Crie um arquivo rep.sql e coloque isto dentro: ALTER TABLE `players` ADD COLUMN `rep` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'Cyber''s REPSystem © OTLand.net' Vá no seu Database e clique em "Importar" , selecione o arquivo que você criou que é o rep.sql e clica em Executar (: Link para o comentário https://xtibia.com/forum/topic/151749-encerrado-ajuda-por-favor/#findComment-1005303 Compartilhar em outros sites More sharing options...
Stigal 585 Postado Abril 19, 2018 Share Postado Abril 19, 2018 A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta. + Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda. * Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado. Link para o comentário https://xtibia.com/forum/topic/151749-encerrado-ajuda-por-favor/#findComment-1729531 Compartilhar em outros sites More sharing options...
Posts Recomendados