Ir para conteúdo

leozincorsair

Membro
  • Registro em

  • Última visita

Tudo que leozincorsair postou

  1. manoo , muito obrigado a tempos estou atras dela , salvou d+ edit# tentei colocar no 0.4 , porem da error no protocolgame.cpp exatamente aqui: if (creature->getType() != CREATURETYPE_PLAYER)
  2. O meu nao apresentou error algum, porém nao funciona as tags no items.xml fica aparecendo no look mais nao faz efeito os atributos
  3. mesmo mudando a voc, nao da pra fazer.
  4. A parte que importa: if talkState[talkUser] == 2 and msgcontains(msg, 'coraçao') then if getPlayerItemCount(cid, 5943) >= 6 then local voc = config[getPlayerVocation(cid)] doPlayerSetVocation(cid, voc[1]) local outfit = {lookType = voc[2]} doCreatureChangeOutfit(cid, outfit) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+bonushp) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+bonusmp) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doPlayerRemoveItem(cid, 5943, 6) doCreatureAddMana(cid, getCreatureMaxMana(cid)) setPlayerStorageValue(cid,89745,6) doPlayerSetExperienceRate(cid, experience) selfSay('Parabéns agora você faz parte da Akatsuki.', cid) talkState[talkUser] = 0 else selfSay('Não adianta me enganar, você não tem '..quantidade..' corações, vai atrás, e só volte com eles.', cid) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ah já sei, pq no caso dessa quest o player ganha uma nova vocação pois quando tento faze-la novamente fala que ja sou.
  5. infelizmente nao deu error, as linhas foram apagadas .. o porem que quando eu vou tentar fazer a quest novamente .. fala que eu ja fiz.
  6. sim ela existe, so gostaria mesmo de apagar ela , para que os players possam fazer essa quest novamente. kkk, sem problema
  7. como voce fez man? eu coloquei tudo certinho e mesmo assim quando hito algum mob ou player com a tag lifeleech ou qualquer outra, nao surte efeito algum
  8. sim instalei tudo certo, e coloque a tag no items.xml e nao surtiu efeito algum.
  9. Galera estou tentando executar essa Query para excluir essa storage: 89745 com value 6. tentei isso mais não foi. DELETE FROM player_storage WHERE key = '89745' AND value = '6';
  10. eu testei as funcoes no 0.4 porem nao funcionam.. mais tbm nao da erro
  11. qual obj esta usando, tentei abrir aqui e nao foi.
  12. Me ajudou muito man, obrigado !!! o meu so tinha exausted na onbuy.
  13. isso seria otimo, porem nao consigo fazer pois n manjo de script bem..
  14. tipo o npc vende 100 por 100, so que o player fica clicando em 'ok' na janela de trader vendendo varios por segundos dai vem o lag.
  15. Galera como posso colocar exausted ou limite de venda de itens nesse npc? ex: apenas vender 50 itens por segundos por aii.. Motivo ( quando um player tem varios itens e vai vender pro npc, gera um lag enorme no server ) Script: 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 shopModule = ShopModule:new() npcHandler:addModule(shopModule) shopModule:addBuyableItem({'jashin amulet'}, 2138, 20000, 1, 'jashin amulet') shopModule:addSellableItem({'orochimaru tunic'}, 2534, 30000, 'orochimaru tunic') shopModule:addSellableItem({'anbu mask'}, 2518, 30000, 'anbu mask') shopModule:addSellableItem({'anbu armor'}, 2393, 30000, 'anbu armor') shopModule:addSellableItem({'icy legs'}, 2428, 30000, 'icy legs') shopModule:addSellableItem({'elite anbu mask'}, 2451, 30000, 'elite anbu mask') shopModule:addSellableItem({'chouji armor'}, 8852, 30000, 'chouji armor') shopModule:addSellableItem({'dual slayer eletrik'}, 7868, 30000, 'dual slayer eletrik') shopModule:addSellableItem({'haku armor'}, 2422, 30000, 'haku armor') shopModule:addSellableItem({'orochimaru boots'}, 8869, 30000, 'orochimaru boots') shopModule:addSellableItem({'anbu mask'}, 2518, 30000, 'anbu mask') shopModule:addSellableItem({'dark legs'}, 7386, 30000, 'dark legs') shopModule:addSellableItem({'bandana'}, 2381, 30000, 'bandana') shopModule:addSellableItem({'akatsuki tunic'}, 2395, 30000, 'akatsuki tunic') shopModule:addSellableItem({'taijutsu legs'}, 8868, 30000, 'taijutsu legs') shopModule:addSellableItem({'dual slayer'}, 7875, 30000, 'dual slayer') shopModule:addSellableItem({'gaara legs'}, 7457, 30000, 'gaara legs') shopModule:addSellableItem({'sasuke legrobe'}, 7389, 30000, 'sasuke legrobe') shopModule:addSellableItem({'war coat'}, 2141, 30000, 'war coat') shopModule:addSellableItem({'leaft jounin protector'}, 7427, 30000, 'leaft jounin protector') shopModule:addSellableItem({'dual slayer'}, 7867, 30000, 'dual slayer') shopModule:addSellableItem({'dual katana imperium'}, 7379, 30000, 'dual katana imperium') shopModule:addSellableItem({'hyuuga glove'}, 2383, 30000, 'hyuuga glove') shopModule:addSellableItem({'akatsuki boots'}, 2529, 30000, 'akatsuki boots') npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  16. obrigado, funcionou ! function onKill(cid, target) if(isPlayer(target) == TRUE and getPlayerStorageValue(cid,9103) ~= 1) then setPlayerStorageValue(cid, 9103, 1) end if isMonster(target) == true and getCreatureName(target) == "Renegade" then local amount = getPlayerStorageValue(cid,19100) <= 0 and 0 or getPlayerStorageValue(cid, 19100) if amount < 75 then setPlayerStorageValue(cid, 19100, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19100).."/75 Renegades.") end if isMonster(target) == true and getCreatureName(target) == "Nukenin" then local amount = getPlayerStorageValue(cid,19101) <= 0 and 0 or getPlayerStorageValue(cid, 19101) if amount < 100 then setPlayerStorageValue(cid, 19101, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19101).."/100 Nukenins.") end if isMonster(target) == true and getCreatureName(target) == "Anbu" then local amount = getPlayerStorageValue(cid,19102) <= 0 and 0 or getPlayerStorageValue(cid, 19102) if amount < 100 then setPlayerStorageValue(cid, 19102, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19102).."/100 Anbus.") end if isMonster(target) == true and getCreatureName(target) == "Konan" then local amount = getPlayerStorageValue(cid,19104) <= 0 and 0 or getPlayerStorageValue(cid, 19104) if amount < 100 then setPlayerStorageValue(cid, 19104, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19104).."/100 Konans.") end if isMonster(target) == true and getCreatureName(target) == "Larva" then local amount = getPlayerStorageValue(cid,19105) <= 0 and 0 or getPlayerStorageValue(cid, 19105) if amount < 200 then setPlayerStorageValue(cid, 19105, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19105).."/200 Larvas.") end if isMonster(target) == true and getCreatureName(target) == "Aranha" then local amount = getPlayerStorageValue(cid,19106) <= 0 and 0 or getPlayerStorageValue(cid, 19106) if amount < 100 then setPlayerStorageValue(cid, 19106, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19106).."/100 Aranhas.") end if isMonster(target) == true and getCreatureName(target) == "Black Dragon" then local amount = getPlayerStorageValue(cid,19107) <= 0 and 0 or getPlayerStorageValue(cid, 19107) if amount < 10 then setPlayerStorageValue(cid, 19107, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19107).."/10 Black Dragons.") end if isMonster(target) == true and getCreatureName(target) == "Black Machine" then local amount = getPlayerStorageValue(cid,19108) <= 0 and 0 or getPlayerStorageValue(cid, 19108) if amount < 10 then setPlayerStorageValue(cid, 19108, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19108).."/10 Black Machines.") end if isMonster(target) == true and getCreatureName(target) == "Evill Ghost" then local amount = getPlayerStorageValue(cid,19109) <= 0 and 0 or getPlayerStorageValue(cid, 19109) if amount < 10 then setPlayerStorageValue(cid, 19109, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19109).."/10 Evill Ghosts.") end if isMonster(target) == true and getCreatureName(target) == "Evill Snake" then local amount = getPlayerStorageValue(cid,19110) <= 0 and 0 or getPlayerStorageValue(cid, 19110) if amount < 300 then setPlayerStorageValue(cid, 19110, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19110).."/300 Evill Snakes.") end if(getPlayerStorageValue(cid,19100) >= 75) then setPlayerStorageValue(cid, 9100, 1) end if(getPlayerStorageValue(cid,19101) >= 100) then setPlayerStorageValue(cid, 9101, 1) end if(getPlayerStorageValue(cid,19102) >= 100) then setPlayerStorageValue(cid, 9102, 1) end if(getPlayerStorageValue(cid,19104) >= 100) then setPlayerStorageValue(cid, 9104, 1) end if(getPlayerStorageValue(cid,19105) >= 200) then setPlayerStorageValue(cid, 9105, 1) end if(getPlayerStorageValue(cid,19106) >= 100) then setPlayerStorageValue(cid, 9106, 1) end if(getPlayerStorageValue(cid,19107) >= 10) then setPlayerStorageValue(cid, 9107, 1) end if(getPlayerStorageValue(cid,19108) >= 10) then setPlayerStorageValue(cid, 9108, 1) end if(getPlayerStorageValue(cid,19109) >= 10) then setPlayerStorageValue(cid, 9109, 1) end if(getPlayerStorageValue(cid,19110) >= 300) then setPlayerStorageValue(cid, 9110, 1) end end return TRUE end deu esse erro ao fazer em todas
  17. Obrigado , me ajudou mttt Só tem um probleminha, quando termina de matar os 75 a contagem continua mesmo eu entregando a missão pro npc.
  18. Olá a todos, Gostaria de colocar uma contagem nessa parte do script ou seja, aparecer no default em laranja a cada mob que for morto. Script: (Creaturescript) if(isMonster(target) == TRUE) then if getCreatureName(target) == "Renegade" then if(getPlayerStorageValue(cid,19100) <= 0) then setPlayerStorageValue(cid, 19100, 1) else setPlayerStorageValue(cid, 19100, getPlayerStorageValue(cid,19100)+1) end end Essa parte fica no final do script: if(getPlayerStorageValue(cid,19100) >= 75) then setPlayerStorageValue(cid, 9100, 1) Essa aqui e onde fica no npc: elseif (isFocused(cid) and msg == "c rank") and getPlayerStorageValue(cid,9001) == 2 then selfSay("Mission {C-2}: Kill 75 Renegades then back and say {mission}.", cid) elseif (isFocused(cid) and msg == "mission") and getPlayerStorageValue(cid,9001) == 2 and getPlayerStorageValue(cid,9100) == 1 then doPlayerAddExp(cid,75000) doPlayerAddItem(cid,2160,3) setPlayerStorageValue(cid,9001,3) selfSay("Well, ".. getCreatureName(cid) ..". mission C-2 Success!", cid)
  19. men , poderia distribuir o script que usou nas armas por favor?
  20. Alguem pode criar um script pra implementar na armas? se nao puder, me ensinem a fazer.

Informação Importante

Confirmação de Termo