Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    113

Tudo que Vodkart postou

  1. acho que tava errado nessa linha: setItemName(objeto2.uid, 'A remains of '..getItemNameById(objeto2.itemid)) tenta: setItemName(objeto2.uid, 'A remains of '..getItemNameById(objeto2.itemid)..'.')
  2. Vodkart

    Removedor De Frag

    se configura aqui: local percent = 50 -- porcentagem de ganha o premio quanto mais baixo,mais dificil... exemploe: local percent = 20
  3. Vodkart

    Boh+Soft Infinita

    lol isso é só em items.xml da ctrl+f e procura por pair of soft boots dps troca por esse: <item id="2640" article="a" name="pair of soft boots"> <attribute key="weight" value="800" /> <attribute key="slotType" value="feet" /> <attribute key="transformDeEquipTo" value="6132" /> <attribute key="healthGain" value="1" /> <attribute key="healthTicks" value="2000" /> <attribute key="manaGain" value="2" /> <attribute key="manaTicks" value="1000" /> <attribute key="speed" value="40" /> <attribute key="showattributes" value="1" /> </item>
  4. é em movements.xml exemplo: <movevent type="Equip" itemid="8865" slot="armor" level="65" event="function" value="onEquipItem"> <vocation id="1"/> <vocation id="5" showInDescription="0"/> </movevent> <movevent type="DeEquip" itemid="8865" slot="armor" event="function" value="onDeEquipItem"/> aqui vc vai colocando as voc que vao usar o item: ... flw
  5. <outfit id="33" access="5" premium="yes" quest="XXXX"/> <list gender="0-3" lookType="264" name="Brutetamer"/> </outfit> XXXX = VALOR DA STORAGE ou se não de vez de quest quest="XXXX" pode ser quests quests="XXXX"
  6. Vodkart

    Removedor De Frag

    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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local percent = 50 -- porcentagem de ganha o premio local t = math.random(1, 100) -- n mecha if(msgcontains(msg, 'mission') or msgcontains(msg, 'MISSION')) then selfSay('olá você trouxe os items que eu pedi? {yes} ', cid) talkState[talkUser] = 1 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then if doPlayerRemoveItem(cid,7634,5) or doPlayerRemoveItem(cid,7635,5) or doPlayerRemoveItem(cid,7636,5) == TRUE then if t >= 1 and t <= percent then doPlayerAddItem(cid,5958,1) selfSay('obrigado receba seu item !', cid) else selfSay('Você não teve sorte,não ganhou o premio', cid) talkState[talkUser] = 0 end else selfSay('Você nao tem os items', cid) talkState[talkUser] = 0 end elseif msg == "no" and talkState[talkUser] == 1 then selfSay("Then not", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  7. Vodkart

    [Plx] Nova Vip Account

    acho que você não leu todo o tópico nele consta o oque você pediu function onLogin(cid) if getVipTime(cid) > 0 and isVip(cid) == FALSE then local townid = 1 doPlayerSetTown(cid, townid) local templePos = getTownTemplePosition(getPlayerTown(cid)) doTeleportThing(cid, templePos, false) setVipTime(cid, 0) doTeleportPlayers(cid, templePos) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua Vip acabou!") else local duration = getVipDate(cid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você possui "..getVipDays(cid).." dia(s) de vip."..(duration and (" Ela irá durar até "..duration..".") or "")) end return TRUE end
  8. Hum para o seu primeiro script não está nada mal, eu mesmo não sei meche muito em npc rs o seu NPC é super util para quest,eu ja tive a mesma ideia sua enfim Parabens e quero ver novos trabalhos seus por aqui! REP + abraços
  9. Vodkart

    Removedor De Frag

    fiz um usando for 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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local percent = 1 -- porcentagem de ganha o premio local t = math.random(1, 100) -- n mecha local items = {7634, 7635, 7636} if(msgcontains(msg, 'mission') or msgcontains(msg, 'MISSION')) then selfSay('olá você trouxe os items que eu pedi? {yes} ', cid) talkState[talkUser] = 1 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then for n = 1, #items do if (doPlayerRemoveItem(cid,items[n],5) == TRUE) then if t >= 1 and t <= percent then doPlayerAddItem(cid,5958,1) selfSay('obrigado receba seu item !', cid) else selfSay('Você não teve sorte,não ganhou o premio', cid) talkState[talkUser] = 0 end else selfSay('Você nao tem os items', cid) talkState[talkUser] = 0 end end elseif msg == "no" and talkState[talkUser] == 1 then selfSay("Then not", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  10. você basicamente disse que o script é só editar? rsrs primeiro procure saber mais sobre o codigo LUA e depois você me fala oque achou. abraços
  11. Vodkart

    Removedor De Frag

    não testei 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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local percent = 50 -- porcentagem de ganha o premio local t = math.random(1, 100) -- n mecha if(msgcontains(msg, 'mission') or msgcontains(msg, 'MISSION')) then selfSay('olá você trouxe os items que eu pedi? {yes} ', cid) talkState[talkUser] = 1 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then if(getPlayerItemCount(cid, 7634) >= 5) then if(getPlayerItemCount(cid, 7635) >= 5) then if(getPlayerItemCount(cid, 7636) >= 5) then doPlayerRemoveItem(cid, 7634, 5) doPlayerRemoveItem(cid, 7635, 5) doPlayerRemoveItem(cid, 7636, 5) if t >= 1 and t <= percent then doPlayerAddItem(cid,5958,1) selfSay('obrigado receba seu item !', cid) talkState[talkUser] = 0 else selfSay('Você não teve sorte,não ganhou o premio', cid) talkState[talkUser] = 0 end else selfSay('Você não tem o item ' .. getItemNameById(7636) .. ' para trocar', cid) talkState[talkUser] = 0 end else selfSay('Você não tem o item ' .. getItemNameById(7635) .. ' para trocar', cid) talkState[talkUser] = 0 end else selfSay('Você não tem o item ' .. getItemNameById(7634) .. ' para trocar', cid) talkState[talkUser] = 0 end elseif msg == "no" and talkState[talkUser] == 1 then selfSay("Then not", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  12. Vodkart

    Removedor De Frag

    é do npc eu prefiro assim: if(getPlayerItemCount(cid, 2160) >= 1) then if(getPlayerItemCount(cid, 2121) >= 5) then doPlayerAddItem(cid,ID DO ITEM,QUANTIDADE) doPlayerRemoveItem(cid, 2160, 1) doPlayerRemoveItem(cid, 2121, 5) else doPlayerSendCancel(cid, 'Você não tem o item ' .. getItemNameById(2121) .. ' para trocar.') end else doPlayerSendCancel(cid, 'Você não tem ' .. getItemNameById(2160) .. ' para trocar.') end
  13. aconselho a usar o do kydrai. não sei colocar em mysql e nao sei mecher no account manager tbm(mais nao deve ser dificil)
  14. acho que alem de ser pela pasta spells tbm iria ser utilizado movements e items.xml jaja falo ctg no msn
  15. Vodkart

    Npc Vendedor De Vip ~

    poderia postar o script do seu sistema vip para que o pedido possa ser atendido?!
  16. lindo e gostoso <3 rsrs
  17. pode add ai brother ;D
  18. é em movements/script depois em movements.xml adicione a tag:
  19. 3° http://www.xtibia.com/forum/topic/137641-adicionando-quest-log/ o 2° eu faço amanha cabei de chega abraços ~~ edited ~~ QUAL SEU SISTEMA VIP?
  20. tenta assim:
  21. é assim no SSA <item id="2197" article="a" name="stone skin amulet"> <attribute key="weight" value="760" /> <attribute key="slotType" value="necklace" /> <attribute key="charges" value="5" /> <attribute key="showcharges" value="1" /> <attribute key="absorbPercentPhysical" value="80" /> <attribute key="absorbPercentDeath" value="80" /> <attribute key="showattributes" value="1" /> </item> charges = carga que vai ter o colar porcentagem da proteção vc muda aqui no vermelho: já para os aneis acho que voce pode colocar verde: Tempo que o anel vai durar,no caso está 8 minutos ali.
  22. Vodkart

    The Gods Effect

    ringeffect.lua local time = 20 local function SayText(cid) if isCreature(cid) == TRUE then doSendAnimatedText(getCreaturePosition(cid), "[MENSAGEM]", math.random(01,255)) doSendMagicEffect(getCreaturePosition(cid), math.random(28, 30)) addEvent(SayText, time * 1000 / 2, cid) end end function onEquip(cid, item, position, fromPosition) if(item.itemid == 2123 ) then addEvent(SayText, time * 1000, cid) end return TRUE end 2123 == id do anel (mude) movements.xml adicione <movevent type="Equip" itemid="2123" slot="ring" event="script" value="ringeffect.lua"/> <movevent type="DeEquip" itemid="2123" slot="ring" event="function" value="onDeEquipItem"/> não esqueça de mudar o id do anel (2123)
  23. Vodkart

    Piso Q Precisa De Iten

    eu não conheço me explica ai você precisa de um item para passar pelo tile,caso não passe dá alguma mensagem? e se no caso o jogador tiver o item e passar o item será removido?
  24. tp.lua local tpId = 1387 local tps = { ["Pythius The Rotten"] = {pos = {x=319, y=841, z=15}, toPos = {x=160, y=54, z=7}, time = 30}, } function removeTp(tp) local t = getTileItemById(tp.pos, tpId) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(tp.pos, CONST_ME_POFF) end end function onDeath(cid) local tp = tps[getCreatureName(cid)] if tp then doCreateTeleport(tpId, tp.toPos, tp.pos) doCreatureSay(cid, "O teleport irá sumir em "..tp.time.." segundos.", TALKTYPE_ORANGE_1) addEvent(removeTp, tp.time*1000, tp) end return TRUE end explicação: {pos = {x=319, y=841, z=15} = ----------- onde o Teleport irá abrir toPos = {x=160, y=54, z=7} ------- onde o teleport vai leva eles time = 30 -- tempo em segundos que o teleport ficará aberto em creaturescript adicione: <event type="death" name="tp" event="script" value="tp.lua"/> no arquivo.xml do seu monstro adicione: <script> <event name="tp"/> </script>
  25. em parte concordo com o DevilMoon será muito desnecessario ficar adicionando spell por spell já que existe um comando que mostra todas de uma vez sem precisar ficar adicionando...
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...