Tudo que jNo postou
-
(Resolvido)Correção em um script action
obrigado bro, agr ficou funcional, ajudando bastante :3, duvida sanada.
-
Correção Script remove skull
Obrigado aos 2, ambos reputado
-
(Resolvido)Correção em um script action
<action itemid="8300" event="script" value="vipaddons.lua" /> local s = 19000 local i = 8300 function onUse(cid, item, itemEx, toPosition, fromPosition) if getPlayerStorageValue(cid, s) <= 0 then setPlayerStorageValue(cid, s, 1) doPlayerSendTextMessage(cid, 22, "Parabéns! Você ganhou um novo outfit.") doSendMagicEffect(getCreaturePosition(cid), 30) doPlayerRemoveItem(cid, i, 1) doPlayerAddOutfit(cid, coloca o id da outfit, n o type aqui, 1) else doPlayerSendCancel(cid, "Você já tem esse outfit.") end return true end <?xml version="1.0"?> <outfits> <outfit id="1"> <list gender="0" lookType="136" name="Citizen"/> <list gender="1" lookType="128" name="Citizen"/> </outfit> <outfit id="2"> <list gender="0" lookType="137" name="Hunter"/> <list gender="1" lookType="129" name="Hunter"/> </outfit> <outfit id="3"> <list gender="0" lookType="138" name="Mage"/> <list gender="1" lookType="130" name="Mage"/> </outfit> <outfit id="4"> <list gender="0" lookType="139" name="Knight"/> <list gender="1" lookType="131" name="Knight"/> </outfit> <outfit id="5" premium="yes"> <list gender="0" lookType="140" name="Noblewoman"/> <list gender="1" lookType="132" name="Nobleman"/> </outfit> <outfit id="6" premium="yes"> <list gender="0" lookType="141" name="Summoner"/> <list gender="1" lookType="133" name="Summoner"/> </outfit> <outfit id="7" premium="yes"> <list gender="0" lookType="142" name="Warrior"/> <list gender="1" lookType="134" name="Warrior"/> </outfit> <outfit id="8" premium="yes"> <list gender="0" lookType="147" name="Barbarian"/> <list gender="1" lookType="143" name="Barbarian"/> </outfit> <outfit id="9" premium="yes"> <list gender="0" lookType="148" name="Druid"/> <list gender="1" lookType="144" name="Druid"/> </outfit> <outfit id="10" premium="yes"> <list gender="0" lookType="149" name="Wizard"/> <list gender="1" lookType="145" name="Wizard"/> </outfit> <outfit id="11" premium="yes"> <list gender="0" lookType="150" name="Oriental"/> <list gender="1" lookType="146" name="Oriental"/> </outfit> <outfit id="12" premium="yes" default="0"> <list gender="0" lookType="155" name="Pirate"/> <list gender="1" lookType="151" name="Pirate"/> </outfit> <outfit id="13" premium="yes" default="0"> <list gender="0" lookType="156" name="Assassin"/> <list gender="1" lookType="152" name="Assassin"/> </outfit> <outfit id="14" premium="yes" default="0"> <list gender="0" lookType="157" name="Beggar"/> <list gender="1" lookType="153" name="Beggar"/> </outfit> <outfit id="15" premium="yes" default="0"> <list gender="0" lookType="158" name="Shaman"/> <list gender="1" lookType="154" name="Shaman"/> </outfit> <outfit id="16" premium="yes" default="0"> <list gender="0" lookType="252" name="Norsewoman"/> <list gender="1" lookType="251" name="Norseman"/> </outfit> <outfit id="17" premium="yes" default="0"> <list gender="0" lookType="269" name="Nightmare"/> <list gender="1" lookType="268" name="Nightmare"/> </outfit> <outfit id="18" premium="yes" default="0"> <list gender="0" lookType="270" name="Jester"/> <list gender="1" lookType="273" name="Jester"/> </outfit> <outfit id="19" premium="yes" default="0"> <list gender="0" lookType="279" name="Brotherhood"/> <list gender="1" lookType="278" name="Brotherhood"/> </outfit> <outfit id="20" premium="yes" default="0"> <list gender="0" lookType="288" name="Demonhunter"/> <list gender="1" lookType="289" name="Demonhunter"/> </outfit> <outfit id="21" premium="yes" default="0"> <list gender="0" lookType="324" name="Yalaharian"/> <list gender="1" lookType="325" name="Yalaharian"/> </outfit> <outfit id="22" default="0"> <list gender="0" lookType="336" name="Warmaster"/> <list gender="1" lookType="335" name="Warmaster"/> </outfit> <outfit id="23" premium="yes" default="0"> <list gender="0" lookType="366" name="Wayfarer"/> <list gender="1" lookType="367" name="Wayfarer"/> </outfit> <outfit id="24" premium="yes" default="0"> <list gender="0" lookType="329" name="Wedding"/> <list gender="1" lookType="328" name="Wedding"/> </outfit> <outfit id="25" access="5" premium="yes"> <list gender="0-3" lookType="12" name="Archdemon"/> </outfit> <outfit id="26" access="5" premium="yes"> <list gender="0-3" lookType="159" name="Elf"/> </outfit> <outfit id="27" access="5" premium="yes"> <list gender="0-3" lookType="160" name="Dwarf"/> </outfit> <outfit id="28" access="5" premium="yes"> <list gender="0-3" lookType="226" name="Frog"/> </outfit> <outfit id="29" access="5" premium="yes"> <list gender="0-3" lookType="194" name="Cult"/> </outfit> <outfit id="30" access="5" premium="yes"> <list gender="0-3" lookType="253" name="Headsplitter"/> </outfit> <outfit id="31" access="5" premium="yes"> <list gender="0-3" lookType="254" name="Skullhunter"/> </outfit> <outfit id="32" access="5" premium="yes"> <list gender="0-3" lookType="255" name="Bloodwalker"/> </outfit> <outfit id="33" access="5" premium="yes"> <list gender="0-3" lookType="264" name="Brutetamer"/> </outfit> <outfit id="34" access="3" premium="yes"> <list gender="0-3" lookType="75" name="Gamemaster"/> </outfit> <outfit id="35" access="4" premium="yes"> <list gender="0-3" lookType="266" name="Community Manager"/> </outfit> <outfit id="36" access="5" premium="yes"> <list gender="0-3" lookType="302" name="God"/> </outfit> </outfits>
-
(Resolvido)Correção em um script action
Esta igual o que você orientou, ainda sim não funciona
-
Correção Script remove skull
Olá, alguém poderia corrigir esse script? Para que quando não tiver nem red skull ou black skull, apareca a mensagem "Você precisa estar red skull ou black skull." Pois quando utilizado o comando sem a skull, ainda sim, sai a mensagem de que a "skull foi removida", de fora so isso, porque ele é funcional. --- skull remover by kakilo - quinto script function onSay(cid, words, param, channel) if (getCreatureSkullType(cid) == SKULL_BLACK) then if doPlayerRemoveMoney(cid, 5000000) then doCreatureSetSkullType(cid, SKULL_NONE) doPlayerSendTextMessage(cid, 22, "Black Skull Retirada.") else doPlayerSendTextMessage(cid, 22, "Voce precisa de 5kk para remover a sua black skull") end end if (getCreatureSkullType(cid) == SKULL_RED) then if doPlayerRemoveMoney(cid, 3000000) then doCreatureSetSkullType(cid, SKULL_NONE) doPlayerSendTextMessage(cid, 22, "Red Skull Retirada.") else doPlayerSendTextMessage(cid, 22, "Voce precisa de 3kk para remover a sua red skull") end end if (getCreatureSkullType(cid) == SKULL_NONE) then doPlayerSendTextMessage(cid, 22, "Sua skull foi retirada com sucesso!") end return TRUE end
-
(Resolvido)Correção em um script action
Broo, não da erro no distro, mas quando usa o item, ele não some, e o addon não adiciona
-
(Resolvido)Correção em um script action
up
-
Action que adciona todos os addons e outifits
up
- (2º) | [8.60] - Glorious Server
-
(Resolvido)Correção em um script action
Mas esse é o erro completo '-'
-
(Resolvido)Correção em um script action
https://scontent.fbsb7-1.fna.fbcdn.net/v/t34.0-12/17238017_1274173419328866_2117435853_n.png?oh=e2a46ff03a40f8233e44649999118442&oe=58C3360E
-
(Resolvido)Correção em um script action
Sim, também não sou patético assim, só não sei programar, mas, essas noções de alterações eu tenho UISHuiahsiuaHsu
-
(Resolvido)Correção em um script action
Deu esse erro agr: https://scontent.fbsb7-1.fna.fbcdn.net/v/t34.0-12/17161004_1273767566036118_296444511_n.png?oh=53f02142a3b1c750043048d40a24be2f&oe=58C20C84
-
Action que adciona todos os addons e outifits
up
-
Scripts de criaturas xml
Fala pessoal, blz? Alguém gentilmente teria o xml dessas criaturas? Spawn of Devovorga Anmothra Teneshpar
-
(Resolvido)Correção em um script action
Deu esse erro bro, https://scontent.fbsb7-1.fna.fbcdn.net/v/t34.0-12/17141821_1272242049522003_1357627974_n.png?oh=eb6098ddedf202f1cc04cf862bf6400a&oe=58C05993
-
Action que adciona todos os addons e outifits
deu esse erro bro, https://scontent.fbsb7-1.fna.fbcdn.net/v/t34.0-12/17160433_1272242052855336_659232332_n.png?oh=c5651725c63f794eb3dd900329fd5a97&oe=58C04682
-
(Resolvido)Correção em um script action
Não adciona os addons, e também, e necessário clicar no item, e depois usar no char, precisava que sumisse só de clicar no item e adicionasse e o addon
-
(Resolvido)Correção em um script action
Alguém pode corrigir esse script pra mim? não funciona no tfs 4.0, no 3.6 funciona, vai entender... function onUse(cid, item, itemEx, toPosition, fromPosition) if getPlayerStorageValue(cid, 19000) <= 0 then setPlayerStorageValue(cid, 19000, 1) doPlayerSendTextMessage(cid, 22, "Parabéns! Você ganhou um novo outfit.") doSendMagicEffect(getPlayerPosition(cid), 30) doRemoveItem(item.uid) if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 264, 1) else doPlayerAddOutfit(cid, 255, 1) end else doPlayerSendCancel(cid, "Você já tem esse outfit.") return true end return true end
-
Action que adciona todos os addons e outifits
Olá, preciso de uma action que eu use um item X, e ao clicar nele, eu ganho todos os addons e o item desaparece. (também se possivel, inserir uma mensagem "Parabéns, você agora possui todos os addons."
-
(Resolvido)Password incorret nas conta
Então, o problema é assim, se eu criar a conta e um char, etc... loga normal, porém se eu tentar criar outro char na mesma conta ou logar no account manager dentro da conta ja criada, consta "password incorret", alguém sabe resolver?
-
mod first item com erro
Valeu meu querido, +rep
-
Npc City Guard com Problema
-
mod first item com erro
Então, não estou conseguindo por pra nascer com o aol equipado, e também de forma alguma aparece os knight weapons na bp <?xml version="1.0" encoding="UTF-8"?> <mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes"> <config name="firstitems_config"><![CDATA[ config = { storage = 30001, items = {2050, 2382, 2173} } ]]></config> <event type="login" name="FirstItems" event="script"> <![CDATA[ domodlib('firstitems_config') function onLogin(cid) local config = { voc_items = { { -- SORC {2190}, -- wand of vortex {2175}, -- spellbook {8820}, -- mage hat {8819} -- mage robe }, { -- DRUID {2182}, -- snakebite rod {2175}, -- spellbook {8820}, -- mage hat {8819} -- mage robe }, { -- PALADIN {2399}, -- throwing star {2525}, -- dwarven shield {2457}, -- steel helmet {2463} -- plate armor }, { -- KNIGHT {2409}, -- serpent sword {2525}, -- dwarven shield {2457}, -- steel helmet {2463} -- plate armor } }, all_items = { {2647}, -- plate legs {2643} -- leather boots }, extra_items = { {2789, 100}, {2120}, {5710}, {2173, 2}, {2394} }, knight_weapons = { {2423}, -- clerical mace {2429} -- barbarian axe } } if getPlayerGroupId(cid) < 3 then if getPlayerStorageValue(cid, storage) == -1 then local common = config.voc_items[getPlayerVocation(cid)] if common ~= nil then for _, v in ipairs(common) do doPlayerAddItem(cid, v[1], v[2] or 1) end end local all = config.all_items if all ~= nil then for _, v in ipairs(all) do doPlayerAddItem(cid, v[1], v[2] or 1) end end local extra = config.extra_items local bp = doPlayerAddItem(cid, 1988, 1) if extra ~= nil then for _, v in ipairs(extra) do doAddContainerItem(bp, v[1], v[2] or 1) end end local weapons = config.knight_weapons if weapons ~= nil then for _, w in ipairs(weapons) do if isKnight(cid) then doAddContainerItem(bp, w[1], w[2] or 1) end end end setPlayerStorageValue(cid, storage, 1) end end return true end ]]></event> </mod>
-
Database nova
Obrigado, funcionou perfeitamente.