Ir para conteúdo

nto cosmic

Membro
  • Registro em

  • Última visita

Tudo que nto cosmic postou

  1. .Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? preciso de ajudar pra modifica script, atualmente players tao ganhando vida e mana extra, queria muda pra 10ml e 10 fist Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: -- Do not remove the credits -- -- [NPC] Akatsuki System -- -- developed by Rigby -- -- Especially for the Xtibia.com -- local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end local level = 400 -- Level preciso pra entra para akatsuki local itemid = 5943 -- id do coração local quantidade = 10 -- quantos hearts e preciso local bonushp = 25000 -- quanto de bonus de life vai ganha local bonusmp = 25000 -- quanto de bonus de mana vai ganha function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'akatsuki') then if getPlayerVocation(cid) ~= config then if getPlayerStorageValue(cid, 2345678) == -1 and getPlayerStorageValue(cid, 2345679) == -1 then if getPlayerLevel(cid) >= level then selfSay('Voce deseja entrar para Akatsuki?.', cid) talkState[talkUser] = 1 else selfSay('Voce nao possui level suficiente '..level..'.', cid) end else selfSay('Voce ja faz parte de uma alianca!', cid) end else selfSay('Nao preciso de voce agora!', cid) end end if talkState[talkUser] == 1 and msgcontains(msg, 'yes') then selfSay('Para provar sua lealdade, você deve trazer '..quantidade..' {hearts}.', cid) talkState[talkUser] = 2 end if talkState[talkUser] == 2 and msgcontains(msg, 'hearts') then if getPlayerItemCount(cid, 5943) >= 10 then setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+bonushp) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+bonusmp) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doPlayerRemoveItem(cid, 5943, 10) doCreatureAddMana(cid, getCreatureMaxMana(cid)) setPlayerStorageValue(cid,2345678,1) setPlayerStorageValue(cid,89745,5) selfSay('Bem vindo a Alianca Akatsuki.', cid) talkState[talkUser] = 0 else selfSay('Nao adianta me enganar, você nao tem '..quantidade..' hearts, volte quando tiver.', cid) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.

Informação Importante

Confirmação de Termo