-
Total de itens
3406 -
Registro em
-
Última visita
-
Dias Ganhos
113
Tudo que Vodkart postou
-
action [Action]Solte Confetes Por Ai.
tópico respondeu ao junior2b de Vodkart em Actions e Talkactions
Velho se você é do tipo de pessoa que se importa com rep e não pelo trabalho que você faz sinto lhe dizer que não vai longe,não espere que você crie um script tão inútil quanto esse e que seu tópico seje tão reputado quando um sistema de pokemon/dimigon seja oque for,a reputação aqui no fórum é falha,sempre foi,não mostra o carácter do usuário tão quanto sua potencialidade de mostrar seu conhecimento seja tanto no scripting quando no mapping,a base de tudo é a paciência,e a paciência é uma virtude de poucos,aguarde pois com o tempo você irá criar relacionamentos e verá que rep é mais uma bobagem que invetaram para forçar você a trabalha por algo e não por alguem,não quer dizer que eu tenha vários reps eu serei melhor que você ou que ele,oque nós destaca são as diferenças para as mesmas que ajudamos. abraços @topic se eu fosse você tirava o for,colocava para soltar o efeito e o item ser removido. -
seilá faz um comando/action que check se tem a storage...
-
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 creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local price = 1000000 local storage = 95745 if msgcontains(msg, 'QUEST') then selfSay('hmm... vejo que sabe sobre nós, aqui esta esse item por 1kk, diga yes se o quiser') talkState[talkUser] = 1 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then if getPlayerStorageValue(cid, storage) <= 0 then if doPlayerRemoveMoney(cid, price) == TRUE then selfSay('aqui esta esse item por 1kk', cid) doPlayerAddItem(cid, 2407, 1) setPlayerStorageValue(cid, storage, 1) talkState[talkUser] = 0 else selfSay('mas oque é isso, estou pedindo uma quantidade tao baixa, nada feito', cid) talkState[talkUser] = 0 end else selfSay('Humano ganancioso, saia daqui', cid) talkState[talkUser] = 0 end elseif msgcontains(msg, 'no') and talkState[talkUser] >= 1 then selfSay('ok até mais', cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
é movements certo? quando ele passar por cima do tile... function onStepIn(cid, item, position, fromPosition) if getPlayerMana(cid) < 4 and item.itemid == 446 then doTeleportThing(cid, fromPosition, true) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return TRUE end doPlayerAddMana(cid,-2) doSendMagicEffect(topos,1) doPlayerAddSkillTry(cid,6,1) return TRUE end
-
Npc Que Libera Storage Em Troca De Um Item
tópico respondeu ao 123henrique123 de Vodkart em Lixeira Pública
até pensei em fazer mais vi que o servidor é escroto e não vale a pena n.n -
function onUse(cid, item, frompos, item2, topos) local pos = {x = 160, y = 54, z = 7} -- pos do temple if (getCreatureSkullType(cid) >= 3) or (getCreatureCondition(cid, CONDITION_INFIGHT) ~= FALSE) then doPlayerSendTextMessage(cid,22,"Você não pode teleportar com Pk ou com Battle.") else doTeleportThing(cid, pos) doRemoveItem(item.uid, 1) end return TRUE end
-
ok Sem battle Sem skull Precisa de PA e o item vai ser removido?
-
ele tem que fazer isso na sua cara seu escroto
-
[Creatureevents] Promotion Ao Atingir Level 20
tópico respondeu ao allan1001 de Vodkart em Globalevents e Spells
retirado. -
local time = 3 local storage = 13000 local function SayText(cid) if isCreature(cid) == TRUE then doSendAnimatedText(getPlayerPosition(cid),"' , ,", 54) addEvent(SayText, time * 1000 / 2, cid) end end function onUse(cid, item, frompos, item2, topos) if isPlayer(cid) == TRUE then if getPlayerStorageValue(cid, storage) <= 0 then doSendAnimatedText(getPlayerPosition(cid),"' , ,", 54) setPlayerStorageValue(cid, storage, 1) addEvent(SayText, time * 1000, cid) end else doPlayerSendCancel(cid,"Sorry, not possible.") end return TRUE end login: function onLogin(cid) local time = 3 local storage = 13000 local function SayText(cid) if isCreature(cid) == TRUE then doSendAnimatedText(getPlayerPosition(cid),"' , ,", 54) addEvent(SayText, time * 1000 / 2, cid) end end if getPlayerStorageValue(cid, storage) >= 1 then doSendAnimatedText(getPlayerPosition(cid),"' , ,", 54) addEvent(SayText, time * 1000, cid) end return TRUE end
-
Dá para fazer uma tabela e deixar o script bem menor em amigo
-
ai você tem que colocar pra checka se ela está com o set no corpo e mandar a mensagem... pore xemplo: local set = { helmet = 2126, legs = 1231, boots = 1212, armor = 3132 } function onCastSpell(cid, var) if (getPlayerSlotItem(cid, 1).itemid == set.helmet) and (getPlayerSlotItem(cid, 7).itemid == set.legs) and (getPlayerSlotItem(cid, 8).itemid == set.boots) and (getPlayerSlotItem(cid, 4).itemid == set.armor) then return doCombat(cid, acombat, var) else doPlayerSendTextMessage(cid, 23, "Você precisa estar equipado com o set vip.") end return false end lista dos slots:
-
facil,só usar storage da gema,ao o OnLogin checa se ele tem storage e manda o jogador brilhar,depois quando ele usa essa magia a storage é setada e o brilho some.
-
ta ai: só alterar o id dos itens function onUse(cid, item, frompos, item2, topos) local a = { [8065] = 6528, -- avenger [8066] = 5803, -- arbalest [8067] = 2453 -- arcane staff } local storage = 93547 if getPlayerStorageValue(cid,storage) <= 0 then doPlayerSendTextMessage(cid,22,"You have found a " .. getItemNameById(a[item.actionid]) .. ".") doPlayerAddItem(cid,a[item.actionid],1) setPlayerStorageValue(cid,storage,1) else doPlayerSendTextMessage(cid,22,"It is empty.") end return TRUE end actions.xml <action actionid="8065;8066;8067" script="nome do seu script.lua"/> Ai só colocar na propriedade de cada bau: ACTIONID = 8065 ACTIONID = 8066 ACTIONID = 8067
-
Então você faz assim,adiciona uma storage para o jogador quando ele executar a action... ai depois você vai em creaturescript e usa a função OnLogout por exmeplo: NOME DO SEU SCRIPT.lua function onLogout(cid) registerCreatureEvent(cid, "checkar") local fly_storage = 63215 if getPlayerStorageValue(cid, fly_storage) >= 1 then doPlayerSendCancel(cid, "Você nao pode deslogar voando.") return FALSE end return TRUE end <event type="logout" name="checkar" event="script" value="NOME DO SEU SCRIPT.lua"/>
-
[Creatureevents] Promotion Ao Atingir Level 20
tópico respondeu ao allan1001 de Vodkart em Globalevents e Spells
MEU DEUS VELHO,VOCÊ ESTA USANDO function onKill ????????? o correto não seria function onAdvance não? sem comentarios. -
karislayer não pode falar nada,não sabia agr ta qrendo dar uma de manjador rairairairai
-
function getPlayerMarriage(player) local rows = db.getResult("SELECT `marriage` FROM `players` WHERE `id` = " .. player .. ";") local marry = rows:getDataInt("marriage") if marry ~= 0 then return marry else return FALSE end end function addMarryStatus(player,partner) db.executeQuery("UPDATE `players` SET `marrystatus` = " .. partner .. " WHERE `id` = " .. player .. ";") return TRUE end function doCancelMarryStatus(player) db.executeQuery("UPDATE `players` SET `marrystatus` = 0 WHERE `id` = " .. player .. ";") return TRUE end function getMarryStatus(player) local stat = db.getResult("SELECT `id` FROM `players` WHERE `marrystatus` = " .. player .. ";") if(stat:getID() == -1) then return FALSE else local info = stat:getDataInt("id") return info end end function getOwnMarryStatus(player) local stat = db.getResult("SELECT `marrystatus` FROM `players` WHERE `id` = " .. player .. ";") if(stat:getID() == -1) then return FALSE else local info = stat:getDataInt("marrystatus") return info end end function isOnline(player) local rows = db.getResult("SELECT `online` FROM `players` WHERE `id` = " .. player .. ";") local on = rows:getDataInt("online") if on ~= 0 then return TRUE else return FALSE end end
-
action [Action] Mudando De Acesso Após Usar Um Item!
tópico respondeu ao nmaster de Vodkart em Actions e Talkactions
ainda acho mais seguro fazer pelo comando,além disso esse item nem é removido se tiver gm vagabundo no ot sai distribuindo esse item e já era -
Pode cre foi móh chato fazer seu npc mais deu um tempo livre e eu fiz,se tiver algo trocado me fala que eu arrumo. NOME DO SEU NPC.XML <?xml version="1.0"?> <npc name="NOME DO SEU NPC" script="data/npc/scripts/forjaitems.lua" walkinterval="5000" floorchange="0"> <health now="100" max="100"/> <look type="134" head="78" body="88" legs="0" feet="88" addons="3"/> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|.Eu posso te trocar alguns {items},acho que ira lhe ajudar..." /> </parameters> </npc> NPC/SCRIPT forjaitems.lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 -- configuracao do script addon items -- function DragonClaw(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,5930) >= 10 and getPlayerItemCount(cid,5948) >= 500 then if doPlayerRemoveItem(cid,5930,10) and doPlayerRemoveItem(cid,5948,500) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,5919,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end function SoulStone(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,12552) >= 40 then if doPlayerRemoveItem(cid,12552,40) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,5809,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end function YellowRose(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,5922) >= 10 then if doPlayerRemoveItem(cid,5922,10) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,2746,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end function Mandrake(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,2746) >= 1 and getPlayerItemCount(cid,10584) >= 100 and getPlayerItemCount(cid,8912) >= 1 then if doPlayerRemoveItem(cid,2746,1) and doPlayerRemoveItem(cid,10584,100) and doPlayerRemoveItem(cid,8912,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,5015,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end function NoseRing(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,5878) >= 500 and getPlayerItemCount(cid,12729) >= 1 then if doPlayerRemoveItem(cid,5878,500) and doPlayerRemoveItem(cid,12729,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,5804,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end -- configuracao do script equipamentos -- function EarthbornTitanArmor(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,7884) >= 1 and getPlayerItemCount(cid,6500) >= 100 and getPlayerItemCount(cid,2472) >= 1 then if doPlayerRemoveItem(cid,7884,1) and doPlayerRemoveItem(cid,6500,100) and doPlayerRemoveItem(cid,2472,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,8882,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end function WindbornColossusArmor(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,7898) >= 1 and getPlayerItemCount(cid,6500) >= 100 and getPlayerItemCount(cid,2472) >= 1 then if doPlayerRemoveItem(cid,7898,1) and doPlayerRemoveItem(cid,6500,100) and doPlayerRemoveItem(cid,2472,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,8883,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end function OceanbornLeviathanArmor(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,7897) >= 1 and getPlayerItemCount(cid,6500) >= 100 and getPlayerItemCount(cid,2472) >= 1 then if doPlayerRemoveItem(cid,7897,1) and doPlayerRemoveItem(cid,6500,100) and doPlayerRemoveItem(cid,2472,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,8884,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end function FirebornGiantArmor(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,7899) >= 1 and getPlayerItemCount(cid,6500) >= 100 and getPlayerItemCount(cid,2472) >= 1 then if doPlayerRemoveItem(cid,7899,1) and doPlayerRemoveItem(cid,6500,100) and doPlayerRemoveItem(cid,2472,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,8881,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end function Witchhunter(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,11237) >= 1 and getPlayerItemCount(cid,12552) >= 12 and getPlayerItemCount(cid,8910) >= 1 then if doPlayerRemoveItem(cid,11237,1) and doPlayerRemoveItem(cid,12552,12) and doPlayerRemoveItem(cid,8910,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,8821,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end function DarkLord(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,8889) >= 1 and getPlayerItemCount(cid,6500) >= 100 and getPlayerItemCount(cid,12552) >= 1 then if doPlayerRemoveItem(cid,8889,1) and doPlayerRemoveItem(cid,6500,100) and doPlayerRemoveItem(cid,12552,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,8865,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end function DivinePlate(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,8891) >= 1 and getPlayerItemCount(cid,6500) >= 100 and getPlayerItemCount(cid,8889) >= 1 then if doPlayerRemoveItem(cid,8891,1) and doPlayerRemoveItem(cid,6500,100) and doPlayerRemoveItem(cid,8889,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,8885,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end function PaladinArmor(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,2476) >= 1 and getPlayerItemCount(cid,10584) >= 30 and getPlayerItemCount(cid,7367) >= 10 then if doPlayerRemoveItem(cid,2476,1) and doPlayerRemoveItem(cid,10584,30) and doPlayerRemoveItem(cid,7367,10) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,8891,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end function RoyalScaleRobe(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,8871) >= 1 and getPlayerItemCount(cid,5904) >= 100 and getPlayerItemCount(cid,2466) >= 1 then if doPlayerRemoveItem(cid,8871,1) and doPlayerRemoveItem(cid,5904,100) and doPlayerRemoveItem(cid,2466,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,12643,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end function MagicPlateArmor(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,2472) >= 1 and getPlayerItemCount(cid,5954) >= 45 and getPlayerItemCount(cid,5904) >= 1 then if doPlayerRemoveItem(cid,2472,1) and doPlayerRemoveItem(cid,5954,45) and doPlayerRemoveItem(cid,5904,1) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,2472,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end function EliteDrakenHelmet(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,2493) >= 1 and getPlayerItemCount(cid,12735) >= 50 and getPlayerItemCount(cid,6529) >= 100 then if doPlayerRemoveItem(cid,2493,1) and doPlayerRemoveItem(cid,12735,50) and doPlayerRemoveItem(cid,6529,100) then npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid,12766,1) end else npcHandler:say('Desculpe mais você não tem os itens!!', cid) end end -- end -- keywordHandler:addKeyword({'items'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Eu ofereço dois tipos de troca,são item para {equipamentos} e items para {addons} .'}) keywordHandler:addKeyword({'addons'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Eu ofereço {Dragon Claw},{Soul Stone},{Yellow Rose},{Mandrake},{Nose Ring}.'}) keywordHandler:addKeyword({'equipamentos'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Eu ofereço {earthborn titan armor},{windborn colossus armor},{oceanborn leviathan armor},{fireborn giant armor},{witchhunter’s coat},{dark lord’s cape},{divine plate},{paladin armor},{royal scale robe},{magic plate armor},{elite draken helmet} '}) local node1 = keywordHandler:addKeyword({'dragon claw'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 10 Behemoth Claw + 500 red dragon leather por um dragon claw ?'}) node1:addChildKeyword({'yes'}, DragonClaw, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node2 = keywordHandler:addKeyword({'soul stone'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 40 necromantic robe por um soul stone ?'}) node2:addChildKeyword({'yes'}, SoulStone, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node3 = keywordHandler:addKeyword({'yellow rose'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 10 Holy Orchid por uma yellow rose ?'}) node3:addChildKeyword({'yes'}, YellowRose, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node4 = keywordHandler:addKeyword({'mandrake'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 1 Yellow Rose + 100 Boggy Dreads + 1 springout rod por um mandrake ?'}) node4:addChildKeyword({'yes'}, Mandrake, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node5 = keywordHandler:addKeyword({'nose ring'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 500 minotaur leather + 1 broken key ring por um nose ring ?'}) node5:addChildKeyword({'yes'}, NoseRing, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node6 = keywordHandler:addKeyword({'earthborn titan armor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 1 Terra Mantle + 100 Demonic Essence + 1 Magic plate Armor por uma Earthborn Titan Armor ?'}) node6:addChildKeyword({'yes'}, EarthbornTitanArmor, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node6:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node7 = keywordHandler:addKeyword({'windborn colossus armor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 1 Lightning Robe + 100 Demonic Essence + Magic plate Armor por uma Windborn Colossus Armor ?'}) node7:addChildKeyword({'yes'}, WindbornColossusArmor, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node7:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node8 = keywordHandler:addKeyword({'oceanborn leviathan armor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 1 Glacier Robe + 100 Demonic Essence + 1 Magic plate Armor por uma Oceanborn Leviathan Armor ?'}) node8:addChildKeyword({'yes'}, OceanbornLeviathanArmor, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node8:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node9 = keywordHandler:addKeyword({'fireborn giant armor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 1 Magma coat + 100 Demonic Essence + 1 Magic plate Armor por uma Fireborn Giant Armor ?'}) node9:addChildKeyword({'yes'}, FirebornGiantArmor, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node9:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node10 = keywordHandler:addKeyword({'witchhunter’s coat'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 1 Book of Necromantic Rituals + 12 Necromantic Robe + 1 Underworld Rod por uma Witchhunter’s Coat ?'}) node10:addChildKeyword({'yes'}, Witchhunter, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node10:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node11 = keywordHandler:addKeyword({'dark Lord’s cape'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 1 Skullcracker Armor + 100 Demonic Essence + 1 Necromantic Robe por uma Dark Lord’s Cape ?'}) node11:addChildKeyword({'yes'}, DarkLord, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node11:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node12 = keywordHandler:addKeyword({'divine plate'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 1 Paladin Armor + 100 Demonic Essence + 1 Skullcracker Armor por uma Divine Plate ?'}) node12:addChildKeyword({'yes'}, DivinePlate, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node12:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node13 = keywordHandler:addKeyword({'paladin armor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 1 Knight Armor + 30 Boggy Dreads + 10 Enchanted Spears por uma Paladin Armor ?'}) node13:addChildKeyword({'yes'}, PaladinArmor, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node13:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node14 = keywordHandler:addKeyword({'royal scale robe'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 1 Focus cape + 100 magic sulphur + 1 Golden Armor por uma Royal Scale Robe ?'}) node14:addChildKeyword({'yes'}, RoyalScaleRobe, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node14:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node15 = keywordHandler:addKeyword({'magic plate armor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 1 Plate Armor + 45 Demon Horn + 1 Magic Sulphur por uma Magic Plate Armor ?'}) node15:addChildKeyword({'yes'}, MagicPlateArmor, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node15:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) local node16 = keywordHandler:addKeyword({'elite draken helmet'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Você quer trocar 1 Demon Helmet + 50 Draken Sulphur + 100 Infernal Bolt por um Elite Draken Helmet ?'}) node16:addChildKeyword({'yes'}, EliteDrakenHelmet, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node16:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Tudo bem,volte quando tiver os itens!.', reset = true}) npcHandler:addModule(FocusModule:new()) flw
-
lol Tem como vc me passa seu msn? preciso do id dos itens T.T abraços
-
vai em creaturescript/script/login.lua antes do ultimo "return true" adicione: if getPlayerStorageValue(cid, 99456) <= 0 then addVipDays(cid, 3) setPlayerStorageValue(cid, 99456, 1) end flw
-
Forja? pra mim isso é um script de TROCA Você quer um npc de troca é isso? depois posta os itens ai que vc quer que troque,se der tempo eu faço.
-
hmm amanha vai pra moitinha to sabendo
-
sou teu fã cara, tu nao da aula de scripts não tu umilha huahuaa..
espero que continue fazendo esse trabalho no xtibia porque pelo que vi ate agora nos posts tu foi o melhor.
parabéns ai pelo trabalho, se puder me adiciona ai no msn pra gente conversar.
tenho umas propostas pra te fazer...
add ai: maarcos.almeida@hotmail.com
abração!
-
-
certamente é porque você está fazendo alguma coisa errada,posta seu script ai
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.