Tudo que Artur Henrique postou
-
[AJUDA] como colocar pra cada classe ter uma raça?
Faz assim: Creaturescripts.xml: creaturescripts/scripts/FirstOutfit.lua XML/Outfit.xml: Não testei mas acho que dá, e tipo, se quiser por mais, vai olhando como eu fiz as outras, porque eu não curto explicar, até porque eu faço sem nem eu mesmo entender
- Segunda Promotion
-
Segunda Promotion
</vocation> <!-- <vocation id="9" name="Zika Master Sorcerer Apaga esse <!-- </vocation> --> </vocations> esse --> também E te recomendo baixar o Notepad++ pra tu mexer com edição, foi olhando scripts com ele que eu aprendi xD e por curiosidade, onde eu boto esse "spoil" que eu nunca consegui por? ='[
- Segunda Promotion
-
Servidor War em PVP !
Se eu entendi direito, só você ir no Config.lua e procurar a linha "worldType" e botar lá "pvp"
-
Segunda Promotion
Eu não sei fazer nada em NPCs, mas fiz esse aqui por item: Actions\Scripts\Promotion.lua function onUse(cid, item) if getPlayerVocation(cid) > 8 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You already was promoted!") else if getPlayerVocation(cid) > 4 and getPlayerVocation(cid) < 9 then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have been promoted!") doRemoveItem(item.uid, 1) end if getPlayerVocation(cid) <= 4 then doPlayerSetVocation(cid, getPlayerVocation(cid)+8) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have been promoted!") doRemoveItem(item.uid, 1) end end end Actions.xml <action itemid="XXXX" script="Promotion.lua"/> Só mudar XXXX pelo ID do item.
-
[Ajuda] Quest Simples, não funciona HELK
function onUse(cid, item, frompos, item2, topos) local queststatus = getPlayerStorageValue(cid,9000) if item.uid == 10000 and queststatus == -1 then if getPlayerLevel(cid) >= 20 then doPlayerSendTextMessage(cid,22,"Você recebeu sua box 1!") doPlayerAddItem(cid,2149,10) setPlayerStorageValue(cid,11638,1) end else doPlayerSendTextMessage(cid,22,"Você já pegou a sua box 1.") end end Tenta assim, se não der avise
-
(Resolvido)[HELP] Pet System
Adicione isso no Weapons/Weapons.xml <melee id="ID" level="150" unproperly="1" event="function" value="default"> <vocation id="4"/> <!-- Knights --> <vocation id="8" showInDescription="0"/> <!-- Elite Knight --> </melee> Só isso, movements é pra Equips, não pra armas. Obs: Primeiro procure o ID da arma no Weapons.xml, porque se repetir vai dar erro.
-
Pedido comando que troca itens!
function onSay (cid, words, param) local config = { itemneed1 = {1111}, --- Item ID do item necessário pra troca, e quantidade. itemneed2 = {2222}, --- Item ID do item necessário pra troca, e quantidade. itemneed3 = {3333}, --- Item ID do item necessário pra troca, e quantidade. itemgain = 0000, --- Item ID do item que será ganho. itemgained = getItemNameById(config.itemgain), getname1 = getItemNameById(config.itemneed1), getname2 = getItemNameById(config.itemneed2), getname3 = getItemNameById(config.itemneed3) } if getPlayerItemCount(cid, config.itemneed1) < config.itemneed1 and getPlayerItemCount(cid, config.itemneed2) < config.itemneed2 and getPlayerItemCount(cid, config.itemneed3) < config.itemneed3 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'Você precisa de um '.. config.getname1 .. ', '.. config.getname2 .. ' e um '.. config.getname3 .. ' pra receber o '.. config.itemgained ..'.') else doPlayerAddItem(cid, config.itemgain) doPlayerRemoveItem(cid, config.itemneed1) doPlayerRemoveItem(cid, config.itemneed2) doPlayerRemoveItem(cid, config.itemneed3) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Você recebeu o '.. config.itemgained ..', um '.. config.getname1 .. ', '.. config.getname2 .. ' e um '.. config.getname3 .. ' foram removidos.') end return true end Isso deve dar.. se não der, avise
-
Script Player Ganhar Vip por 2 dias
function onLogin(cid) local storage,days = (getPlayerAccountId(cid)+550),2 if getGlobalStorageValue(storage) <= 0 then setGlobalStorageValue(storage, 13500) doPlayerAddPremiumDays(cid, days) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você recebeu "..days.." dias de VIP, bom jogo!") end return true end Tenta assim, se não der avise
- [Sistema] Castle Guild War - Dominio De Castelo/Acabar em 60min
-
[Resolvido] Amuleto Vip
Notei que o tópico está fechado, mas de qualquer forma, vou contribuir aqui, deixando o script.. items.xml: <item id="8266" name="koshei's ancient amulet"> <attribute key="description" value="The effects of this amulet are unknown." /> <attribute key="weight" value="800" /> <attribute key="slotType" value="necklace" /> <attribute key="charges" value="5000000" /> <attribute key="decayTo" value="8266" /> </item> creaturescripts.xml: <event type="death" name="NewAol" event="script" value="aad.lua"/> creaturescripts/login.lua: registerCreatureEvent(cid, "aad") creaturescripts/aad.lua: local config = { ammyID = 8266, lossExp = true, lossItems = false } function onDeath (cid, lastHitKiller, mostDamageKiller) if (getPlayerSlotItem(cid, 2).itemid == config.ammyID) then doCreatureSetDropLoot(cid, config.lossItems) end return true end Se não tiver funcionando, acredite, nada vai funcionar
-
[Resolvido] Colocando arrow e potion para usar ao mesmo tempo
kkk Comedinhasss, da uma olhadinha nesse tópico: http://www.tibiaking.com/forum/topic/24637-paladins-atacando-e-usando-potions/ e esse God Myth vem falar que foi ele q "fez" sendo que até o exemplo é o msm q eu usei falo nada só observo
-
Boots VIP
Esta certo, dando 50 de speed, e regenerando 50hp 80mp/sec.. Se não tiver regenerando, você tem que ir em data/movements/movements.xml e botar essa tag: <movevent type="Equip" itemid="11113" slot="feet" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="11113" slot="feet" event="function" value="onDeEquipItem"/>
- como fazer quest pra ganha um outfit e um item Urgente!
-
Pedido - Light quando premium
Bem gente.. Eu estava lendo uma lista de funções e tals, e vi uma que me chamou a atenção: doSetCreaturelight(cid, lightLevel, lightColor, time) Então me deu a pensar, imagina que louco, os players premium acc(no meu caso vip), terem uma "luz avermelhada" ao redor?? Ai eu tive o problema, como que configura sá porra?? eu ja fiz aqui, só falta eu saber como configura, alguem ajuda? u_u
- Simple Task 3.0
- Montano Equip Para Servidor de Pokemon Dedicado
-
Error!
ññ os player fala isso sozinho.. ai o theforgothen trava ;/
-
Error!
Bem gente, meu server ainda não está pronto, eu estou arrumando coisas nele, mas abro aqui em casa para testes e tals..e estou tendo o seguinte problema.. depois de 1 hora mais ou menos, aberto, todos os players falam algo do tipo: ÿÿÿ?`q{ e o ot cai.. oque q é isso? alguem pode me falar oque pode estar causando esse erro?
-
Paladins atacando e usando potions!
Se não estiver na area correta, peço para que algum moderador mude. Bem gente, eu estava com um problema que era tipo, os paladins não atacavam ao usar potions e runes.. Após uma longa busca de como concertar isso, eu encontrei em outro forum e decidi trazer aqui afinal sei que muita gente tem problemas com isso, é algo bem simples olha: Abra Weapons.xml, e adicione essa tag em todas as Ammunitions de RP swing="true" Vai ficar tipo: Antes: <distance id="7367" level="42" event="function" value="default"/> Depois: <distance id="7367" level="42" swing="true" event="function" value="default"/> Bem gente é isso, espero ter ajudado.. vlws ai
-
[DUVIDA] TFS 0.4
Bem gente, emu problema é o seguinte.. Eu usava um Real Map, só que pra eu colocar War System me falaram que eu precisava botar o TFS 0.4, ai pronto, foi oque eu fiz, só que quando eu mudei, TODOS os eventos que ja haviam no server bugaram, pararam de funcionar. Pois bem, conversei com um amigo meu sobre isso e ele me disse que tinha algo sobre db.executeQuery. Mas ele não soube me explicar exatamente oque era, então, sera que alguem pode me ajudar? Se é isso mesmo, como eu posso concertar?
-
[Resolvido] [ACTION] Transformar item dando use!
valeu deu certo '-'
-
[Resolvido] [ACTION] Transformar item dando use!
Num deu certo ;3
-
[Resolvido] [ACTION] Transformar item dando use!
Bom gente, primeiro quero dizer a vocês que eu nem se quer procurei isso, afinal não pensei um nome digamos, mais correto pra pesquisar, ia ser algo tipo, impossível eu encontrar.. Mas bem se alguém puder me ajudar eu agradeço desde ja! Oque a Action vai ter que fazer: Quando o player der use no item ID: 9020, vai acontecer o seguinte: 40% de chance de dar "broke"(item sumir). 60% de chance de virar algum desses items: { 8306, 6099, 6100, 6101, 6102, 5015, 5903, 5809, 5919, 5805 } Fazendo isso ja está bom, mas se vocês quiserem botar pra tipo: Se o item falhar aparecer daquelas mensagens laranja escrito "broke" e se pegar falar tipo "Você conseguil um ..item..!" Desde já agradeço! Mapa: RealServer 8.6