Ir para conteúdo
  • Cadastre-se

L3K0T

Moderador
  • Total de itens

    2089
  • Registro em

  • Última visita

  • Dias Ganhos

    83

Tudo que L3K0T postou

  1. precisa ver se seu servidor tem onmoveitems, caso nao tiver... tera que alterar na source
  2. -- Cassino System by LucasHere function onUse(cid, item, frompos, item2, topos) pos1 = {x=256, y=344, z=7, stackpos=1} -- posição que vai criar os itens pos2 = {x=257, y=344, z=7, stackpos=1} pos3 = {x=258, y=344, z=7, stackpos=1} local config = { moneyneed = 2000, -- amount of VIP coins needed to play } local premios = { [2189] = 1, [6529] = 1, [2546] = 1, [2352] = 1, [2545] = 1, [8851] = 1, [7424] = 1, [7735] = 1, [8293] = 1, [7450] = 1, [8931] = 1, [8856] = 1 } function additem(cid, premios) local playerName = getPl
  3. function onSay(cid, words, param) if getPlayerLevel(cid) == 717217 and getPlayerStorageValue(cid, 13545) == 1 and isPremium(cid) then if doPlayerRemoveMoney(cid, 0) == TRUE then local bp = doPlayerAddItem(cid, 5805, 1) doCreatureSay(cid, "Você comprou um item para desbugar a CAP.", TALKTYPE_ORANGE_1) else doCreatureSay(cid, "Item grátis", TALKTYPE_ORANGE_1) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end else doCreatureSay(cid, "Você não atende aos requisitos para comprar o item.", TALKTYPE_ORA
  4. function onSay(cid, words, param) -- Configurações gerais local config = { needPa = true, -- Necessita ser uma conta premium? needPz = true, -- Precisa estar em uma área de proteção (Protection Zone)? battle = true, -- Precisa estar fora de combate para resetar? withe = false, -- Jogadores com PK "Branco" podem resetar? red = false, -- Jogadores com PK "Vermelho" podem resetar? tp = false, -- Teleportar para o templo após o reset? look = true, -- Mostrar o reset no status do jogador? addLim
  5. se o monstro não cai no chão precisa verificar os onkill e ondead no xml do cresturescript.xml desativa eles e testa! Alguma formula usada com onstatschange está errada por isso resulta no erro, tem certeza que desativou os onstatschanges? nao pulo nenhum? olho na lib funções novas com onstatschange? procura na lib onstatschanges se acha manda aqui o da lib ctrl+F
  6. Remove os script 1 por 1 que contém onstatschange no xml do cresturescripts, inclusive de eventos, é um deles que está dando esse erro... e testa sem ele, depois mata um monstro e vê se some. Aquele que vc excluir da tag xml sumir, ai vc manda aqui
  7. testa esse onstatschange pois creio que no seu esteja "getCreaturePos" que não existe no seu server, então mudei para "getCreaturePosition" function onStatsChange(cid, attacker, type, combat, value) if type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS then if isCreature(attacker) and isCreature(cid) then local attackerPosition = getCreaturePosition(attacker) if attackerPosition then local playerLvlCrit = getPlayerStorageValue(attacker, LVL_CRIT_STORAGE) if playerLvlCrit ~= -1 then
  8. Opções de contatos está no final do fórum.
  9. Precisa estar certinho todos iguais, porque se no item editor estiver carga 1 e no xml do server carga 5, quem manda é o item editor, não terá efeito se eu n me engano
  10. Vc pode pegar esse mesmo script e botar em weapons e sentar o script pelo xml em weapons
  11. Já tentou ver pelo item editor se está como carga correta?
  12. O erro está vindo do login.lua que esta em cresturescripts, precisamos do script pra resolver esse erro
  13. local LVL_CRIT_STORAGE = 48904 local MULTIPLIER = 1.001 function onStatsChange(cid, attacker, type, combat, value) if type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS then if isPlayer(attacker) and isCreature(cid) then local playerLvlCrit = getPlayerStorageValue(attacker, LVL_CRIT_STORAGE) local critThreshold = playerLvlCrit * 3 local randomValue = math.random(0, 1000) if critThreshold >= randomValue then local boostedDamage = math.ceil(value * (MULTIPLIER - 1)) -- Subtrair 1 para obter o valor perce
  14. Procure por um script em cresturescripts que utilize funções de ataque ou statschange, recomendo dar uma olhada no arquivo XML dentro do diretório cresturescripts.
  15. O erro "Thing not found" está relacionado à função luaGetThingPosition, o que indica que o servidor não consegue encontrar um objeto ou criatura específica durante a execução do script.
  16. -- Import required modules and libraries domodlib('arenaFunctions') local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- Initialize conversation states as local variables local focus = 0 local talk_start = 0 local TS = 0 -- Function to check if a string contains another string (case-insensitive) local function msgcontains(txt, str) return string.find(string.lower(txt), string.lower(str)) end -- Function to handle player saying something to the NPC function onCreatureSay(cid, type, msg) msg = string.low
  17. -- Import required modules and libraries domodlib('arenaFunctions') local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- Initialize conversation states as local variables local focus = 0 local talk_start = 0 local TS = 0 -- Function to check if a string contains another string (case-insensitive) local function msgcontains(txt, str) return string.find(string.lower(txt), string.lower(str)) end -- Function to handle player saying something to the NPC function onCreatureSay(cid, type, msg) msg = string.low
  18. function onStartup() local result_guilds = db.getResult("SELECT `id`, `creationdata` FROM `guilds` ORDER by `creationdata` ASC;") local days = 30 * 3600 * 24 local nowtime = os.time() if (result_guilds and result_guilds:getID() ~= -1) then while (true) do local id = result_guilds:getDataInt("id") local date = result_guilds:getDataInt("creationdata") local time = nowtime - date local duedate = time - days if duedate >= 0 then local columnExists = db.isColumn("players", "guild_id")
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo