Tudo que Equipe Icerox postou
-
[PEDIDO] SCRIPT
Galera, venho aqui pedir a vocês um SCRIPT que vai funcionar dessa seguinte maneira:: Quando eu pisar em xxx tile (piso), ira nascer um Versperoth em xxx position! Dai quando esse monstro nascer, depois de 7 segundos irá nascer mais 16 monstros em volta do Versperoth, mais tem o seguinte!! Depois que os 16 monstros nascer, preciso que eles sumam todos de uma vez só depois de 10 segundos, e assim constantemente até o Vesperoth morrer!! Alguem tenta me ajudar aí por favor, VALENDO REP+
-
[AJUDA] MONSTRO!
Edit@@ tenta me ajudar ae
-
[AJUDA] MONSTRO!
Galera, preciso de uma Script que tipo assim.. Quando você pisa em xxx SQM, nasce um bixo em xxx SQM! valeu
-
Foods
Alguem pode me ajudar ?? Eu queria uma script que quando eu começe um food ele enchece minha vida toda e mana toda, igual o blessed steak.. se alguem souber me ajuda ai plz
-
[PEDIDO] HALLOWED AXE (DEMON OAK)
Galera, venho aqui pedir a voces um script pro meu Hallowed axe. Quando eu uso o meu Hallowed axe pra entrar na demon oak, ele nao esta funcionando, alguem poderia me ajudar ai??
-
[Resolvido] [PEDIDO] NPC QUE VENDE TODAS BLESS
Crie um arquivo chamado Quetinn.xml na pasta data/npc e cole isso <?xml version="1.0" encoding="UTF-8"?> <npc name="Quetinn" script="Quetinn.lua" walkinterval="2000" floorchange="0"> <health now="150" max="150" /> <look type="134" head="57" body="59" legs="40" feet="76" corpse="2212" /> </npc> Não testado. Att. Giovani Rodrigo Valeu brother, me ajudou muito, REP+ pra voce!! valeu mesmo
-
[PEDIDO]DEMON OAK
Bom galera, venho aqui pedir a voces aonde que eu edito as posiçoes e quais bixos irao nascer na DemonOak Quest, alguem poderia me dizer ai?? Obrigado. e meu hallowed axe nao esta cortando a arvore pra poder entrar na DemonOak Quest, peço essas 2 coisas ae pra voces galera, valeu!!
- [Resolvido] [PEDIDO] NPC QUE VENDE TODAS BLESS
-
[AJUDA] TREINERS OFFLINE E TREINERS OFFLINE NA CAMA!
E como eu mudo a exp do treiner offline? no C++ ?
-
[AJUDA] TREINERS OFFLINE E TREINERS OFFLINE NA CAMA!
Bom galera, eu queria saber como que eu faço pra alterar a exp dos treiners offline e dos treiners nas camas. e como seria essa alteraçao, se eh igual a exp do ot, ou se eh diferente. se alguem souber, me ajuda ae (: outra coisa, eu tenho um sistema de task aqui no meu ot, eu queria saber como que eu ponho para quando terminar x task, ganhar um item! eu so sei colocar pra ganhar dinheiro e exp :/ --- [1] = {questStarted = 1516, questStorage = 65006, killsRequired = 150, raceName = "Carniphilas", rewards = {{enable = true, type = "exp", values = 10500}, {enable = true, type = "money", values = 10000}}} nessa task ai eu ganho: 10k, e 10500 de experience, quero saber como eu ponho pra ganhar um item!
-
[Resolvido] Ajuda com Yalahar Quest
AE FUNCIONOU, MUITO OBRIGADO CARA REP+ PRA VOCE!! MUITO OBRIGADO MESMO.
-
[Resolvido] Ajuda com Yalahar Quest
Cara, nao funcionou, mesma coisa, ele diz que nao eh possivel! mais valeu por tentar ajudar cara, valeu mesmo!! vou tentar arrumar aqui ;}
-
[Resolvido] Ajuda com Yalahar Quest
Bom cara, desculpa a demoraa. mais o script nao funcionou, coloquei a action ID tudo certinho. quando eu clico no crystal ele diz: 23:53 Sorry, not possible. eu uso o 18458 - green crystal stalagmite.
-
[Resolvido] Ajuda com Yalahar Quest
Ok, vou testar e ja te mando a resposta.
-
[Resolvido] Ajuda com Yalahar Quest
- [Resolvido] Ajuda com Yalahar Quest
vou testar aqui amigo, ja digo a resposta! EDIT@@ Amigo, esta como tava antes.. ainda esta dando pra clicar varias vezes :/- [Resolvido] Ajuda com Yalahar Quest
1969- [Resolvido] Ajuda com Yalahar Quest
o crystal nao tem tag, eh apenas um item normal, eu so coloquei o uniqueID nele aqui ta a posiçao dele: {x = 33101, y = 31908, z = 10}- [Resolvido] Ajuda com Yalahar Quest
Bom.. eu ja arrumei meu script, valeu por tentar ajudar.. Mais seguinte.. o meu script ele ta funcionando 100%, a unica coisa que falta eh que ta dando pra clicar no globo toda hora! como faço pra ele poder clicar apenas 1 vez de 10 em 10 minutos mais ou menos?? ajuda ai pls, eu fiz isso na warzone tambem!! vou posta o script aqui: function onUse(cid, item, frompos, item2, topos) --Config--> local statue_pos = {x = 33101, y = 31908, z = 10} local new_portal_pos = {x = 33104, y = 31908, z = 10, stackpos = 1} local new_pos = {x = 33095, y = 31954, z = 10} --End Config--> function Potwoory1() doCreateMonster('Hideous Fungus', {x = statue_pos.x+1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x-1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x+1, y = statue_pos.y, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('stone devourer', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('armadile', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) addEvent(Potwoory2, 7 * 700) end function Potwoory2() doCreateMonster('Hideous Fungus', {x = statue_pos.x+1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x-1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x+1, y = statue_pos.y, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('stone devourer', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('armadile', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) addEvent(Potwoory3, 8 * 1000) end function Potwoory3() doCreateMonster('Hideous Fungus', {x = statue_pos.x+1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x-1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x+1, y = statue_pos.y, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('stone devourer', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('armadile', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) addEvent(Potwoory4, 9 * 1000) end function Potwoory4() doCreateMonster('Hideous Fungus', {x = statue_pos.x+1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x-1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x+1, y = statue_pos.y, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('stone devourer', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('armadile', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) addEvent(Potwoory5, 6 * 1000) end function Potwoory5() doCreateMonster('Hideous Fungus', {x = statue_pos.x+1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x-1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253}) doCreateMonster('hideous fungus', {x = statue_pos.x+1, y = statue_pos.y, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('humongous fungus', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('stone devourer', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) doCreateMonster('armadile', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253}) addEvent(NewPortal, 12 * 1100) end function NewPortal() doCreateTeleport(1387, new_pos, new_portal_pos) addEvent(RemoveAll, 30 * 1000) end function RemoveAll() doRemoveItem(getThingfromPos(new_portal_pos).uid,1) end if item.uid == 1969 and getThingfromPos(new_portal_pos).itemid ~= 17668 then doCreateItem(17668,1,new_portal_pos) addEvent(Potwoory1, 0) else doPlayerSendTextMessage(cid,18,"Sorry, not possible.") end return TRUE end- [Resolvido] Ajuda com Yalahar Quest
Bom, eu preciso que alguem me passe algum script da yalahar quest, todos que procurei nao funcionou :/ oque acontece eh que quando eu clico no globo, nao nasce o azerus nem os outros monstros :/ alguem tenta me ajudar ai, estou no aguarde, valendo REP+- AJUDA RAPIDO POR FAVOR
Ok, vou verificar melhor aqui, obrigado por tudo ae cara. Me diz uma coisa, voce pode me arrumar alguma script pra arena de svargrond? nao conssigo por nada ;/- AJUDA RAPIDO POR FAVOR
Bom, ja adiconei no login.lua e nao da erro no NPC nem no Distro. ja o quest.lua nao da pra mim te passar porque ele eh muito grande, grande demais mesmo!! mais tenta me ajudar ai ;/- AJUDA RAPIDO POR FAVOR
<event type="kill" name="KillingInTheNameOf" event="script" value="killinginthenameof.lua"/> -- Script Npc: local tasks = { [28] = {questStarted = 1510, questStorage = 65000, killsRequired = 100, raceName = "Trolls", rewards = {first = {enable = true, type = "exp", values = 200}, second = {enable = true, type = "money", values = 200}, third = {enable = false, type = nil, values = {nil, nil}}}}, [30] = {questStarted = 1511, questStorage = 65001, killsRequired = 150, raceName = "Goblins", rewards = {first = {enable = true, type = "exp", values = 300}, second = {enable = true, type = "money", values = 250}, third = {enable = false, type = nil, values = {nil, nil}}}}, [22] = {questStarted = 1512, questStorage = 65002, killsRequired = 300, raceName = "Rotworms", rewards = {first = {enable = true, type = "exp", values = 1000}, second = {enable = true, type = "money", values = 400}, third = {enable = false, type = nil, values = {nil, nil}}}}, [20] = {questStarted = 1513, questStorage = 65003, killsRequired = 500, raceName = "Cyclops", rewards = {first = {enable = true, type = "exp", values = 3000}, second = {enable = true, type = "money", values = 800}, third = {enable = false, type = nil, values = {nil, nil}}}}, [12] = {questStarted = 1514, questStorage = 65004, killsRequired = 300, raceName = "Crocodiles", rewards = {first = {enable = true, type = "exp", values = 800}, second = {enable = true, type = "boss", values = THESNAPPER_POSITION}, third = {enable = false, type = nil, values = {nil, nil}}}}, [3] = {questStarted = 1515, questStorage = 65005, killsRequired = 300, raceName = "Tarantulas", rewards = {first = {enable = true, type = "exp", values = 1500}, second = {enable = true, type = "boss", values = HIDE_POSITION}, third = {enable = false, type = nil, values = {nil, nil}}}}, [7] = {questStarted = 1516, questStorage = 65006, killsRequired = 150, raceName = "Carniphilas", rewards = {first = {enable = true, type = "exp", values = 1500}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}, [8] = {questStarted = 1517, questStorage = 65007, killsRequired = 200, raceName = "Stone Golems", rewards = {first = {enable = true, type = "exp", values = 2000}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}, [9] = {questStarted = 1518, questStorage = 65008, killsRequired = 300, raceName = "Mammoths", rewards = {first = {enable = true, type = "exp", values = 4000}, second = {enable = true, type = "boss", values = THEBLOODTUSK_POSITION}, third = {enable = false, type = nil, values = {nil, nil}}}}, [10] = {questStarted = 1519, questStorage = 65009, killsRequired = 300, raceName = "Ice Golems", rewards = {first = {enable = true, type = "exp", values = 15000}, second = {enable = true, type = "boss", values = SHARDHEAD_POSITION}, third = {enable = false, type = nil, values = {nil, nil}}}}, [11] = {questStarted = 1520, questStorage = 65010, killsRequired = 300, raceName = "Quaras Scout", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}, [27] = {questStarted = 1521, questStorage = 65011, killsRequired = 300, raceName = "Quaras", rewards = {first = {enable = true, type = "exp", values = 12000}, second = {enable = true, type = "boss", values = THUL_POSITION}, third = {enable = false, type = nil, values = {nil, nil}}}}, [13] = {questStarted = 1522, questStorage = 65012, killsRequired = 70, raceName = "Water Elementals", rewards = {first = {enable = true, type = "exp", values = 7000}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}, [14] = {questStarted = 1523, questStorage = 65013, killsRequired = 70, raceName = "Earth Elementals", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}, [15] = {questStarted = 1524, questStorage = 65014, killsRequired = 70, raceName = "Energy Elementals", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}, [16] = {questStarted = 1525, questStorage = 65015, killsRequired = 70, raceName = "Fire Elementals", rewards = {first = {enable = true, type = "exp", values = 7000}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}, [17] = {questStarted = 1526, questStorage = 65016, killsRequired = 200, raceName = "Mutated Rats", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = true, type = "boss", values = ESMERALDA_POSITION}, third = {enable = false, type = nil, values = {nil, nil}}}}, [18] = {questStarted = 1527, questStorage = 65017, killsRequired = 500, raceName = "Giant Spiders", rewards = {first = {enable = true, type = "exp", values = 5000}, second = {enable = true, type = "boss", values = THEOLDWIDOW_POSITION}, third = {enable = false, type = nil, values = {nil, nil}}}}, [3] = {questStarted = 1528, questStorage = 65018, killsRequired = 2000, raceName = "Hydras", rewards = {first = {enable = true, type = "boss", values = THEMANY_POSITION}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}, [4] = {questStarted = 1529, questStorage = 65019, killsRequired = 2000, raceName = "Sea Serpents", rewards = {first = {enable = true, type = "boss", values = LEVIATHAN_POSITION}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}, [21] = {questStarted = 1530, questStorage = 65020, killsRequired = 2000, raceName = "Behemoths", rewards = {first = {enable = true, type = "boss", values = STONECRACKER_POSITION}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}, [5] = {questStarted = 1531, questStorage = 65021, killsRequired = 1500, raceName = "Serpents Spawn", rewards = {first = {enable = true, type = "teleport", values = THENOXIUSSPAWN_POSITION}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}, [23] = {questStarted = 1532, questStorage = 65022, killsRequired = 500, raceName = "Green Djinns", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = true, type = "money", values = 5000}, third = {enable = true, type = "boss", values = MERIKHTHESLAUGHTERER_POSITION}}}, [24] = {questStarted = 1533, questStorage = 65023, killsRequired = 500, raceName = "Blue Djinns", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = true, type = "money", values = 5000}, third = {enable = true, type = "boss", values = FAHIMTHEWISE_POSITION}}}, [25] = {questStarted = 1534, questStorage = 65024, killsRequired = 3000, raceName = "Pirates", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = true, type = "money", values = 5000}, third = {enable = true, type = "boss", values = RANDOMPIRATEBOSS_POSITION}}}, [26]= {questStarted = 1535, questStorage = 65025, killsRequired = 3000, raceName = "Pirates", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = true, type = "money", values = 5000}, third = {enable = false, type = nil, values = {nil, nil}}}}, [1] = {questStarted = 1536, questStorage = 65026, killsRequired = 5000, raceName = "Minotaurs", rewards = {first = {enable = true, type = "boss", values = {x = 32441, y = 31993, z = 9}}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}, [2] = {questStarted = 1537, questStorage = 65027, killsRequired = 4000, raceName = "Magicians", rewards = {first = {enable = true, type = "boss", values = {x = 32613, y = 32791, z = 8}}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}, [29] = {questStarted = 1538, questStorage = 65028, killsRequired = 1000, raceName = "Magicians", rewards = {first = {enable = true, type = "exp", values = 40000}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}, [6] = {questStarted = 1539, questStorage = 65029, killsRequired = 6666, raceName = "Demons", rewards = {first = {enable = true, type = "storage", values = {65535, 1}}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}} } local storage = 64521 local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local voc = {} 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) local s = getPlayerStorageValue(cid, storage) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_PRIVATE and 0 or cid if msgcontains(msg, 'task') then if(s < 1) then doPlayerSetStorageValue(cid, storage, 1) end if tasks then if(getPlayerStorageValue(cid, tasks.questStarted) < 1) then if(getPlayerStorageValue(cid, tasks.creatureStorage) < 0) then doPlayerSetStorageValue(cid, tasks.creatureStorage, 0) end if(getPlayerStorageValue(cid, tasks.questStorage) < 0) then doPlayerSetStorageValue(cid, tasks.questStorage, 0) end doPlayerSetStorageValue(cid, tasks.questStarted, 1) selfSay('You have started the task number ' .. getPlayerStorageValue(cid, storage) .. ', in this task you need to kill ' .. tasks.killsRequired .. ' ' .. tasks.raceName .. '.', cid) else selfSay('You are currently making task about ' .. tasks.raceName .. '.', cid) end else print("[Warning - Error::Killing in the name of::Tasks config] Something is wrong.") end elseif msgcontains(msg, 'report') then if tasks and tasks.questStarted > 0 then if(getPlayerStorageValue(cid, tasks.creatureStorage) < 0) then doPlayerSetStorageValue(cid, tasks.creatureStorage, 0) end if(getPlayerStorageValue(cid, tasks.questStorage) < 0) then doPlayerSetStorageValue(cid, tasks.questStorage, 0) end if(getPlayerStorageValue(cid, tasks.questStorage) >= tasks.killsRequired) then selfSay('Great!... you have finished the task number ' .. s .. '. Good job.', cid) doPlayerSetStorageValue(cid, storage, s + 1) if(tasks.rewards.first.enable) then if(tasks.rewards.first.type == "boss") then doTeleportThing(cid, tasks.rewards.first.values) elseif(tasks.rewards.first.type == "exp") then doPlayerAddExperience(cid, tasks.rewards.first.values) elseif(tasks.rewards.first.type == "item") then doPlayerAddItem(cid, tasks.rewards.first.values[1], tasks.rewards.first.values[2]) elseif(tasks.rewards.first.type == "money") then doPlayerAddMoney(cid, tasks.rewards.first.values) elseif(tasks.rewards.first.type == "storage") then doPlayerSetStorageValue(cid, tasks.rewards.first.values[1], tasks.rewards.first.values[2]) end end if(tasks.rewards.second.enable) then if(tasks.rewards.second.type == "boss") then doTeleportThing(cid, tasks.rewards.second.values) elseif(tasks.rewards.second.type == "exp") then doPlayerAddExperience(cid, tasks.rewards.second.values) elseif(tasks.rewards.second.type == "item") then doPlayerAddItem(cid, tasks.rewards.second.values[1], tasks.rewards.second.values[2]) elseif(tasks.rewards.second.type == "money") then doPlayerAddMoney(cid, tasks.rewards.second.values) elseif(tasks.rewards.second.type == "storage") then doPlayerSetStorageValue(cid, tasks.rewards.second.values[1], tasks.rewards.second.values[2]) end end if(tasks.rewards.third.enable) then if(tasks.rewards.third.type == "boss") then doTeleportThing(cid, tasks.rewards.third.values) elseif(tasks.rewards.third.type == "exp") then doPlayerAddExperience(cid, tasks.rewards.third.values) elseif(tasks.rewards.third.type == "item") then doPlayerAddItem(cid, tasks.rewards.third.values[1], tasks.rewards.third.values[2]) elseif(tasks.rewards.third.type == "money") then doPlayerAddMoney(cid, tasks.rewards.third.values) elseif(tasks.rewards.third.type == "storage") then doPlayerSetStorageValue(cid, tasks.rewards.third.values[1], tasks.rewards.third.values[2]) end end else selfSay('Current ' .. getPlayerStorageValue(cid, tasks.questStorage) .. ' ' .. tasks.raceName .. ' killed, you need to kill ' .. tasks.killsRequired .. '.', cid) end else selfSay('You do not have started any task.', cid) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) -- O QuestLog nao sei aonde fica :/- AJUDA RAPIDO POR FAVOR
Mais ate sem as tag ele nao conta :/- AJUDA RAPIDO POR FAVOR
Sim, NPC: Grizzly Adams eu falo: hi tasks, ai aparece as task pra mim escolher, dai eu escolho qualquer uma. e eu ganho quest log updated. ate ai ta normal, mais quando eu vou matar os monstros, ele nao conta os monstro que estou matando ;/ eu ja adicionei a tag no monstro mais mesmo assim ele nao ta contando :/ - [Resolvido] Ajuda com Yalahar Quest
Informação Importante
Confirmação de Termo