Ir para conteúdo

Schiavinato

Visconde
  • Total de itens

    345
  • Registro em

  • Última visita

Tudo que Schiavinato postou

  1. Player por Player creio que não dê, mas pra trokar todos os player de um OT basta substituir a database
  2. Eu queria tanto participa do concurso, mas eu n tenho o programinha q cria action, Tpw eu n sei colokas as palavras certas, ex: doPlayerAddMana(n sei se existe isso, mas eh um exemplo) Algm me indica algum programinha pra facilitar a criação de action
  3. Aposto que vc nunka jogo em celesta, qm disse q la eh xeio de br? ta loko? la soh tem pl POLAKOS OTARIOS ,,l,,
  4. Facil de entender, facil aplicação no ot, e de uma funcionalidade perfeita :] Aprovado
  5. A maioria dos Ot 8.4 não vem com esse comando, parra isso vc precisa add ele Para ver como add clika no link abaixo Link
  6. Usa esse 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) function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end if msgcontains(msg, 'help') then selfSay('You can here change some items for "spider silk yarn", "chunk of crude iron", "draconian steel", "warrior sweat", "magic sulpher", "enchanted chicken wing", "royal steel", "hell steel", "engraved crossbow", "fighting spirit", "infernal bolt", "blue, green and red piece of clothes", "obsidian knife" and "lottery ticket".') elseif msgcontains(msg, 'spider silk yarn') then if getPlayerItemCount(cid,5879) >= 10 then selfSay('Did you bring me the 10 Giant Silks ?') talk_state = 1 else selfSay('I need a 10 Giant Spider Silks, to give you the spider silk yarn. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 1 then talk_state = 0 if getPlayerItemCount(cid,5879) >= 10 then if doPlayerRemoveItem(cid,5879, 10) == TRUE then doPlayerAddItem(cid, 5886, 1) selfSay('Here u are.') end else selfSay(havent_item) end elseif msgcontains(msg, 'chunk of crude iron') then if getPlayerItemCount(cid,2393) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then selfSay('Did you bring me the 3 Bast Skirts and Giant Sword ?') talk_state = 2 else selfSay('I need a 3 Bast Skirts and Giant Sword, to give you the chunk of crude iron. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 2 then talk_state = 0 if getPlayerItemCount(cid,2393) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then if doPlayerRemoveItem(cid,2393,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5892,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'ticket') or msgcontains(msg, 'lottery') or msgcontains(msg, 'lottery ticket') or msgcontains(msg, 'lotery ticket') then if getPlayerItemCount(cid,2006) >= 100 then selfSay('Did you bring me 100 empty vials?') talk_state = 9 else selfSay('I need 100 empty vials, to give you a lottery ticket. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 9 then talk_state = 0 if getPlayerItemCount(cid,2006) >= 100 then if doPlayerRemoveItem(cid,2006,100) == 1 then selfSay(addon_give) if(math.random(1,10) == 1) then doPlayerAddItem(cid,5958,1) else doPlayerAddItem(cid,5956,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'yes') and talk_state == 6 then if getPlayerItemCount(cid,2006) >= 100 then if doPlayerTakeItem(cid,2006,100) == 0 then selfSay('Here you are.') if(math.random(1,10) == 1) then doPlayerAddItem(cid,5958,1) else doPlayerAddItem(cid,5956,1) end else selfSay(hasNoMsg) end else selfSay(hasNoMsg) end elseif msgcontains(msg, 'draconian steel') then if getPlayerItemCount(cid,2516) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then selfSay('Did you bring me 3 Bast Skirts and Dragon Shield ?') talk_state = 3 else selfSay('I need 3 Bast Skirts and Dragon Shield, to give you the draconian steel. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 3 then talk_state = 0 if getPlayerItemCount(cid,2516) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then if doPlayerRemoveItem(cid,2516,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 then doPlayerAddItem(cid,5889,1) selfSay('Here u are.') end else selfSay(havent_item) end elseif msgcontains(msg, 'warrior sweat') then if getPlayerItemCount(cid,2475) >= 1 and getPlayerItemCount(cid,2475) >= 1 and getPlayerItemCount(cid,2475) >= 1 and getPlayerItemCount(cid,2475) >= 1 then selfSay('Did you bring me 4 warrior helmets?') talk_state = 4 else selfSay('I need 4 warrior helmets, to give you the warrior sweat. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 4 then talk_state = 0 if getPlayerItemCount(cid,2475) >= 1 and getPlayerItemCount(cid,2475) >= 1 and getPlayerItemCount(cid,2475) >= 1 and getPlayerItemCount(cid,2475) >= 1 then if doPlayerRemoveItem(cid,2475,1) == 1 and doPlayerRemoveItem(cid,2475,1) == 1 and doPlayerRemoveItem(cid,2475,1) == 1 and doPlayerRemoveItem(cid,2475,1) == 1 then doPlayerAddItem(cid,5885,1) selfSay(addon_give) end else selfSay(havent_item) end elseif msgcontains(msg, 'magic sulpher') then if getPlayerItemCount(cid,2392) >= 1 and getPlayerItemCount(cid,2392) >= 1 and getPlayerItemCount(cid,2392) >= 1 then selfSay('Did you bring me 3 fire swords?') talk_state = 5 else selfSay('I need 3 fire swords, to give you the magic sulpher. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 5 then talk_state = 0 if getPlayerItemCount(cid,2392) >= 1 and getPlayerItemCount(cid,2392) >= 1 and getPlayerItemCount(cid,2392) >= 1 then if doPlayerRemoveItem(cid,2392,1) == 1 and doPlayerRemoveItem(cid,2392,1) == 1 and doPlayerRemoveItem(cid,2392,1) == 1 then doPlayerAddItem(cid,5904,1) selfSay(addon_give) end else selfSay(havent_item) end elseif msgcontains(msg, 'enchanted chicken wing') then if getPlayerItemCount(cid,2195) >= 1 then selfSay('Did you bring me boots of haste?') talk_state = 6 else selfSay('I need boots of haste, to give you the enchanted chicken wing. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 6 then talk_state = 0 if getPlayerItemCount(cid,2195) >= 1 then if doPlayerRemoveItem(cid,2195,1) == 1 then doPlayerAddItem(cid,5891,1) selfSay(addon_give) end else selfSay(havent_item) end elseif msgcontains(msg, 'royal steel') then if getPlayerItemCount(cid,2487) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then selfSay('Did you bring me the 3 Bast Skirts and Crown Armor ?') talk_state = 7 else selfSay('I need 3 Bast Skirts and Crown Armor, to give you the royal steel. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 7 then talk_state = 0 if getPlayerItemCount(cid,2487) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then if doPlayerRemoveItem(cid,2487,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5887,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'hell steel') then if getPlayerItemCount(cid,2462) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then selfSay('Did you bring me the 3 Bast Skirts and Devil Helmet ?') talk_state = 8 else selfSay('I need a 3 Bast Skirts and Devil Helmet, to give you the hell steel. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 8 then talk_state = 0 if getPlayerItemCount(cid,2462) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then if doPlayerRemoveItem(cid,2462,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5888,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'engraved crossbow') then if getPlayerItemCount(cid,5954) >= 15 then selfSay('Did you bring me the 15 demon horns?') talk_state = 9 else selfSay('I need a 15 demon horns, to give you the engraved crossbow. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 9 then talk_state = 0 if getPlayerItemCount(cid,5954) >= 15 then if doPlayerRemoveItem(cid,5954,15) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5947,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'fighting spirit') then if getPlayerItemCount(cid,2498) >= 1 and getPlayerItemCount(cid,2498) >= 1 then selfSay('Did you bring me the 2 Royal Helmets?') talk_state = 10 else selfSay('I need a 2 Royal Helmets, to give you the Fighting Spirit. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 10 then talk_state = 0 if getPlayerItemCount(cid,2498) >= 1 and getPlayerItemCount(cid,2498) >= 1 then if doPlayerRemoveItem(cid,2498,1) == 1 and doPlayerRemoveItem(cid,2498,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5884,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'infernal bolt') then if getPlayerItemCount(cid,5944) >= 1 then selfSay('Did you bring me the Soul Orb?') talk_state = 11 else selfSay('I need a Soul Orb, to give you the 2 Infernal Bolts. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 11 then talk_state = 0 if getPlayerItemCount(cid,5944) >= 1 then if doPlayerRemoveItem(cid,5944,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,6529,2) end else selfSay(havent_item) end elseif msgcontains(msg, 'blue piece of cloth') then if getPlayerItemCount(cid,2663) >= 1 then selfSay('Did you bring me the Mystic Turban ?') talk_state = 12 else selfSay('I need a Mystic Turban, to give you the Blue Piece of Cloth. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 12 then talk_state = 0 if getPlayerItemCount(cid,2663) >= 1 then if doPlayerRemoveItem(cid,2663,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5912,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'green piece of cloth') then if getPlayerItemCount(cid,2652) >= 1 then selfSay('Did you bring me the Green Tunic ?') talk_state = 13 else selfSay('I need a Green Tunic, to give you the Green Piece of Cloth. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 13 then talk_state = 0 if getPlayerItemCount(cid,2652) >= 1 then if doPlayerRemoveItem(cid,2652,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5910,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'red piece of cloth') then if getPlayerItemCount(cid,2655) >= 1 then selfSay('Did you bring me the Red Robe ?') talk_state = 14 else selfSay('I need a Red Robe, to give you the Red Piece of Cloth. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 14 then talk_state = 0 if getPlayerItemCount(cid,2655) >= 1 then if doPlayerRemoveItem(cid,2655,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5911,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'obsidian knife') then if getPlayerItemCount(cid,3983) >= 3 and getPlayerItemCount(cid,2516) >= 1 and getPlayerItemCount(cid,2425) >= 1 then selfSay('Did you bring me the 3 bast skirts, a dragon shield and a obsidian lance?') talk_state = 15 else selfSay('I need 3 bast skirts, a dragon shield and a obsidian lance to give you the obsidian knife. Come back when you have them.') talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 15 then talk_state = 0 if getPlayerItemCount(cid,3983) >= 3 and getPlayerItemCount(cid,2516) >= 1 and getPlayerItemCount(cid,2425) >= 1 then if doPlayerRemoveItem(cid,3983,1) == 3 and doPlayerRemoveItem(cid,2516,1) == 1 and doPlayerRemoveItem(cid,2425,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5908,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'no') and (talk_state >= 1 and talk_state <= 5) then selfSay('Ok than.') talk_state = 0 end -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself. return true end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  7. Gostei da cave de Dwarv 8/10
  8. Nossa, xega de concurso aki neh? Pessoal ta fazendo um monte de concurso soh pra ganha post e mais post -.-
  9. Vá em data/creaturescript/script/firstitem Edite os items que começaram,como o seu não é OT do Shynzo não da pra muda pra cada vocação Espero ter ajudado! :*
  10. Acabo de terminar o mapa do meu server,e resolvi fazer uma area pvp(player vs player) Dakela que qndo um mata o otro, n dropa nda, nem perde lvl,skill Eu colokei as coordenadas no arkivo XML/pvpzones.lua Mas eu testei e não funcionou,o player que morre perde aol,lvl,skill Tem como me dar uma ajuda?
  11. xD Meu ot que to acabando
  12. Muito bom, mas acrescente esse npc meu: Rashid <?xml version="1.0" encoding="UTF-8"?> <npc name="Rashid" script="data/npc/scripts/rashid.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="146" head="81" body="120" legs="119" feet="115" addons="3" corpse="2212"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Hello |PLAYERNAME|! I buy all itens rashid, says trade {trade}." /> <parameter key="message_farewell" value="Goodbye. Thanks for trading with me |PLAYERNAME|." /> <parameter key="message_walkaway" value="Goodbye." /> </parameters> </npc> 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:addSellableItem({'dragon slayer'}, 7402, 15000, 'dragon slayer') shopModule:addSellableItem({'war axe'}, 2454, 9000, 'war axe') shopModule:addSellableItem({'amber staff'}, 7426, 8000, 'amber staff') shopModule:addSellableItem({'sapphire hammer'}, 7437, 7000, 'sapphire hammer') shopModule:addSellableItem({'lunar staff'}, 7424, 5000, 'lunar staff') shopModule:addSellableItem({'diamond spectre'}, 7387, 3000, 'diamond spectre') shopModule:addSellableItem({'dragonbone'}, 7430, 3000, 'dragonbone') shopModule:addSellableItem({'brutetamers staff'}, 7379, 1500, 'brutetamers staff') shopModule:addSellableItem({'wyvern fang'}, 7408, 1500, 'wyvern fang') shopModule:addSellableItem({'daramanian waraxe'}, 2440, 1000, 'daramanian waraxe') shopModule:addSellableItem({'furry club'}, 7432, 1000, 'furry club') shopModule:addSellableItem({'crystal sword'}, 7449, 600, 'crystal sword') shopModule:addSellableItem({'taurus mace'}, 7425, 500, 'taurus mace') shopModule:addSellableItem({'mammoth whopper'}, 7381, 300, 'mammoth whopper') shopModule:addSellableItem({'daramanian mace'}, 2439, 110, 'daramanian mace') shopModule:addSellableItem({'heavy machete'}, 2442, 90, 'heavy machete') shopModule:addSellableItem({'dragon scale mail'}, 1019, 40000, 'dragon scale mail') shopModule:addSellableItem({'dwarven armor'}, 2503, 30000, 'dwarven armor') shopModule:addSellableItem({'pirate shirt'}, 6095, 500, 'pirate shirt') shopModule:addSellableItem({'leopard armor'}, 3968, 1000, 'leopard armor') shopModule:addSellableItem({'golden armor'}, 2466, 20000, 'golden armor') shopModule:addSellableItem({'mammoth fur cape'}, 7463, 6000, 'mammoth fur cape') shopModule:addSellableItem({'skull helmet'}, 5741, 40000, 'skull helmet') shopModule:addSellableItem({'beholder helmet'}, 3972, 7500, 'beholder helmet') shopModule:addSellableItem({'devil helmet'}, 2462, 1000, 'devil helmet') shopModule:addSellableItem({'pirate hat'}, 6096, 1000, 'pirate hat') shopModule:addSellableItem({'ragnir helmet'}, 7462, 400, 'ragnir helmet') shopModule:addSellableItem({'krimhorn helmet'}, 7461, 200, 'krimhorn helmet') shopModule:addSellableItem({'steel boots'}, 2645, 30000, 'steel boots') shopModule:addSellableItem({'pirate boots'}, 5462, 3000, 'pirate boots') shopModule:addSellableItem({'fur boots'}, 7457, 2000, 'fur boots') shopModule:addSellableItem({'crocodile boots'}, 3982, 1000, 'crocodile boots') shopModule:addSellableItem({'pirate knee breeches'}, 5918, 200, 'pirate knee creeches') shopModule:addSellableItem({'demon shield'}, 2520, 30000, 'demon shield') shopModule:addSellableItem({'medusa shield'}, 2536, 9000, 'medusa shield') shopModule:addSellableItem({'castle shield'}, 2535, 5000, 'castle shield') shopModule:addSellableItem({'scarab shield'}, 2540, 2000, 'scarab shield') shopModule:addSellableItem({'dark shield'}, 2521, 400, 'dark shield') shopModule:addSellableItem({'tortoise shield'}, 6231, 150, 'tortoise shield') shopModule:addSellableItem({'bone shield'}, 2541, 80, 'bone shield') shopModule:addSellableItem({'ancient amulet'}, 2142, 200, 'ancient amulet') shopModule:addSellableItem({'scarab amulet'}, 2135, 200, 'scarab amulet') shopModule:addSellableItem({'light shovel'}, 5710, 300, 'light shovel') npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  13. Parte de um mapa que to fazendo pra Hoobie
  14. Zafor de ptm N tem nada de mais na sua cave -.-
  15. Desse eu participo Gostei do tema
  16. Great! Very Beautiful! Quando crescer quero ser igual você *-* (momento puxa sako)
  17. Otimo Ip Changer Muito mais bonito do que o Asprate !!! Subiu no meu conceito!
  18. NÃOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO A UNIKA VEZ Q DA INVASÃO DE FERUMBRAS EM LUCERA, OS NOOB DA NEW ERA NÃO MATARAMMMMMMMMMMM BANDO DE INUTEISSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS aHHHHHHHHHHHHHHHHHHHHHHH Q ODIOOOOOOOOOOOOOOOOOOOOOOOOOOOO :@:@@:@:@:@:@: SE EU SOUBESSE EU IA DE SHOTTER
  19. Abra a pasta data/items/items.xml Prokure pela staff e adiciona isso: <attribute key="magicpoints" value="1"/> 1 = Magic level que dará, pode ser alterado
  20. Um cemiterio q fará parte de uma quest do meu ot PS: Akeles 2 telescopio tbm é parte da quest
  21. Schiavinato

    Desisto-

    XAU CAMBADA DE MAU AGRADECIDOS! TIREI O TOPICO TBM!
  22. Eu simplesmente queri um script que paro de funcionar nas versões de Ot Server 8.2+, que é aquele script que quando o player pisa no tile de depot, aparece quantos itens ele tem no depot. Se alguem pudesse postar os scripts ficarei muito grato! A versão de OT que eu uso é o Shynzo OTs V7!
  23. Kevoniks Ficou bem detalhada, mas você misturou muitos walls diferentes, dai ficou feio ;/
  24. RedZL Ahh... =[ Pow, deixa eu ser feliz ueh =] Sala de traing
  25. Caspita Boa pergunta! Eu eskeci de comenta isso na foto, akele solar axe vai fazer parte de uma quest RedZL Sei la..enfeite? Em kazz, pq jorra lava dos poste?
  • Quem Está Navegando   0 membros estão online

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