Ir para conteúdo

Tchubaka

Visconde
  • Total de itens

    395
  • Registro em

  • Última visita

  • Dias Ganhos

    4

Tudo que Tchubaka postou

  1. Duvida Sanada. REP+?
  2. tente isso. function onUse(cid, item, frompos, item2, topos) doSummonCreature("Magebomb",topos) doSendMagicEffect(topos,36) end ou function onUse(cid, item, frompos, item2, topos) doCreateCreature("Magebomb",topos) doSendMagicEffect(topos,36) end
  3. Ot/data/npc copie qualquer script, renomeie pra trocadeitens , apague tud o que estiver dentro, e cole isto: <?xml version="1.0" encoding="UTF-8"?> <npc name="Nome do Npc" script="data/npc/scripts/troca.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="332" head="0" body="0" legs="0" feet="0"/> <parameters> <parameter key="message_greet" value="Aqui voce bota uma msg que voce quiser, poder ser informando os itens que poder sem trocados , voce escolhe" /> </parameters> </npc> depois em data/npc/scripts , copie qualquer script, renomeie pra troca , apague tud o que estiver dentro, e cole isto: local talk_state = 0 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 function creatureSayCallback(cid, type, msg) if msgcontains(msg, 'nome do item') then if getPlayerItemCount(cid,6512) >= 1 then if doPlayerRemoveItem(cid,6512,1) then doPlayerAddItem(cid,1990,1) npcHandler:say('mensagem quando o item é trocado.') end else npcHandler:say('mensagem quando o player nao tem o item') talk_state = 0 end elseif msgcontains(msg, 'bye') then npcHandler:say('Até mais, ' .. getCreatureName(cid) .. '! Volte em breve...') talk_state = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) explicando: aonde ta ali "nome do item" é o que o player vai falar pra trocar os items! if getPlayerItemCount(cid,6512) >= 1 then << aqi voce muda o id do item que o player precisa ter, e 1 then é a quantidade if doPlayerRemoveItem(cid,6512,1) then << aqi pra remover o item, e a quantidade doPlayerAddItem(cid,1990,1) << aqi o tem que o player irá ganhar na troca ai voce muda pra o que voce quiser. Espero ter ajudado! ^^
  4. Primeiramente vá na pasta lib e crie um arquivo ItemsEditedLib.lua e adicione isso dentro: function doPlayerAddEditedItem(cid, itemid) local newxml = io.open("data/items/newitems.xml", "r") local configs = {} for i in newxml:read("*a"):gmatch("<item (.-)</item>") do local itemid = tonumber(i:match('id="(.-)"')) local itemconfig = { ["spriteid"] = tonumber(i:match('spriteid.-=.-"(.-)"')), ["article"] = i:match('article.-=.-"(.-)"'), ["name"] = i:match('name.-=.-"(.-)"'), ["description"] = i:match('key.-=.-"description".-value.-=.-"(.-)"'), ["defense"] = tonumber(i:match('key.-=.-"defense".-value.-=.-"(.-)"')), ["attack"] = tonumber(i:match('key.-=.-"attack".-value.-=.-"(.-)"')), ["extradefense"] = tonumber(i:match('key.-=.-"extradef".-value.-=.-"(.-)"')), ["armor"] = tonumber(i:match('key.-=.-"armor".-value.-=.-"(.-)"')), ["extraattack"] = tonumber(i:match('key.-=.-"extraatk".-value.-=.-"(.-)"')), } configs[itemid] = itemconfig end if configs[itemid] then local item = doPlayerAddItem(cid, configs[itemid].spriteid) for i,x in pairs(configs[itemid]) do doItemSetAttribute(item, i, x) end end end Depois vá na pasta items e adicione um arquivo newitems.XML (XML NAO LUA!!!) e adicione isso dentro: <?xml version="1.0" encoding="UTF-8"?> <items> <item id="100" spriteid="2400" article="a" name="magic edited sword"> <attribute key="description" value="Arma editada." /> <attribute key="defense" value="45" /> <attribute key="attack" value="100" /> <attribute key="extradef" value="10" /> <attribute key="extraatk" value="10" /> </item> <item id="101" spriteid="2472" article="a" name="master plate armor"> <attribute key="description" value="Armor editada." /> <attribute key="armor" value="19" /> </item> </items> Bem como voces podem ver, o xml guarda os novos items, o xml funciona praticamente como o items.xml so que tem um novo campo o "spriteid", nele fica o itemid original. Atributos: "description" "defense" "attack" "extradefense" "armor" "extraattack" Para adicionar os novos itemids aos players use doPlayerAddEditedItem(cid, ITEMID) em vez de doPlayerAddItem...
  5. Duvida Sanada.
  6. faça isso aki. http://www.xtibia.com/forum/topic/78063-novo-tipo-de-dinheiro/page__st__0 ajudei?rep+
  7. Tchubaka

    Summon Spell

    isso e do script. nao mecha.
  8. nem manjo narutibia. =/ vou vtentar aki.
  9. armor legs. você vai em data>movements.xml abra e aperte CTRL=F e procure a id. logo em baixo vai ter as vocations ID's. igual no weapon. e so adc mais ou mudar. rep+?
  10. baixe o programa sqlitestudio. abra o arquivo com final "s3db " exemplo : theforgottenserver.s3db vai em ban. la vai ter 1lista de player ban. e so clikar 1 vez em cima. e apertar DELET. ajudei?rep+
  11. vai em data>itens.xml aperta CTRL=F procure a id da seu amuleto. e cole isso. <attribute key="absorbPercentDeath" value="10" /> <attribute key="absorbPercentIce" value="10" /> <attribute key="absorbPercentFire" value="10" /> <attribute key="absorbPercentHoly" value="10" /> <attribute key="absorbPercentPhysical" value="10" /> <attribute key="absorbPercentEnergy" value="10" /> agora na armor . <attribute key="skillAxe" value="10" /> <attribute key="skillSword" value="10" /> <attribute key="skillClub" value="10" /> <attribute key="skillDist" value="10" /> <attribute key="skillShield" value="10" /> agora armor de ml. <attribute key="magiclevelpoints" value="10"/> AJudei?rep+ me manda id do . amulet. armor e armor de ml. ai que faço pra voce.
  12. a backpack deve estar assim. <item id="1988" article="a" name="backpack"> <attribute key="weight" value="1800"/> <attribute key="containerSize" value="20"/> <attribute key="slotType" value="backpack"/> </item> so muda o tem id="1988" ID DA BACKPACK name="backpack"> NOME DA BACKPACK <attribute key="containerSize" value="20"/> QUANTOS ITENS CABE NA BACKPACK <attribute key="slotType" value="backpack"/> ISSO QUE DEFINE SE ELA E BACKPACK. MUDE ISSO NA SUA.
  13. cara vai em data>weapon.xml e procure a id da sua rod. la vai ter as id das vocations. que podem usar . e so você mudar ou por mais. <vocation id="2"/> pra pormais e so copiar o " <vocation id="2"/> " e mudar as ID="2" que sao as vocaçoes.
  14. aperta CTRL + botao direito do mouse.e relate o ban. muito mais facil. e funciona.
  15. Ot/data/npc copie qualquer script, renomeie pra trocadeitens , apague tud o que estiver dentro, e cole isto: <?xml version="1.0" encoding="UTF-8"?> <npc name="Nome do Npc" script="data/npc/scripts/troca.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="332" head="0" body="0" legs="0" feet="0"/> <parameters> <parameter key="message_greet" value="Aqui voce bota uma msg que voce quiser, poder ser informando os itens que poder sem trocados , voce escolhe" /> </parameters> </npc> depois em data/npc/scripts , copie qualquer script, renomeie pra troca , apague tud o que estiver dentro, e cole isto: local talk_state = 0 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 function creatureSayCallback(cid, type, msg) if msgcontains(msg, 'nome do item') then if getPlayerItemCount(cid,6512) >= 1 then if doPlayerRemoveItem(cid,6512,1) then doPlayerAddItem(cid,1990,1) npcHandler:say('mensagem quando o item é trocado.') end else npcHandler:say('mensagem quando o player nao tem o item') talk_state = 0 end elseif msgcontains(msg, 'bye') then npcHandler:say('Até mais, ' .. getCreatureName(cid) .. '! Volte em breve...') talk_state = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) explicando: aonde ta ali "nome do item" é o que o player vai falar pra trocar os items! if getPlayerItemCount(cid,6512) >= 1 then << aqi voce muda o id do item que o player precisa ter, e 1 then é a quantidade if doPlayerRemoveItem(cid,6512,1) then << aqi pra remover o item, e a quantidade doPlayerAddItem(cid,1990,1) << aqi o tem que o player irá ganhar na troca ai voce muda pra o que voce quiser. Espero ter ajudado! ^^
  16. MODS: <?xml version="1.0" encoding="UTF-8"?> <mod name="KDR SYSTEM" version="1.0" author="Narko" contact="crmb92@hotmail.com" enabled="yes"> <event type="kill" name="killpoint" event="script"><![CDATA[ function onKill(cid, target, damage, flags) if isPlayer(target) == true then db.query("UPDATE `players` SET `frags` = `frags` + 1 WHERE id = " .. getPlayerGUID(cid) .. ";") doCreatureSay(cid, '+1 Frag Point!', TALKTYPE_ORANGE_1) end return true end ]]></event> <event type="preparedeath" name="deathpoint" event="script"><![CDATA[ function onPrepareDeath(cid, deathList, lastHitKiller, mostDamageKiller) if isPlayer(cid) == true then db.query("UPDATE `players` SET `deaths` = `deaths` + 1 WHERE id = " .. getPlayerGUID(cid) .. ";") doCreatureSay(cid, '+1 Death Point!', TALKTYPE_ORANGE_1) end return true end ]]></event> <event type="look" name="KdrLook" event="script"><![CDATA[ function onLook(cid, thing, position, lookDistance) function getKillsPlayer(cid) local Info = db.getResult("SELECT `frags` FROM `players` WHERE `id` = " .. getPlayerGUID(cid) .. " LIMIT 1") local frags= Info:getDataInt("frags") return frags end function getDeathsPlayer(cid) local Info = db.getResult("SELECT `deaths` FROM `players` WHERE `id` = " .. getPlayerGUID(cid) .. " LIMIT 1") local deaths= Info:getDataInt("deaths") return deaths end if isPlayer(thing.uid) then local kdr = getKillsPlayer(thing.uid)/getDeathsPlayer(thing.uid) doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and "\nShe" or "\nHe") .. " has Killed: ["..getKillsPlayer(thing.uid).."] Players."..(getPlayerSex(thing.uid) == 0 and "\nShe" or "\nHe") .. " has Died: ["..getDeathsPlayer(thing.uid).."] Times.\nThe Kdr(Kill Death Ratio) is: ["..kdr.."].") end if(thing.uid == cid) then local kdr = getKillsPlayer(thing.uid)/getDeathsPlayer(thing.uid) doPlayerSetSpecialDescription(thing.uid, "\nYou have Killed: ["..getKillsPlayer(thing.uid).."] Players.\nYou have Died: ["..getDeathsPlayer(thing.uid).."] Times.\nYou Kdr(Kill Death Ratio) is: ["..kdr.."].") end return true end ]]></event> <event type="login" name="KdrLook" event="buffer"><![CDATA[ registerCreatureEvent(cid, "KdrLook") registerCreatureEvent(cid, "killpoint") registerCreatureEvent(cid, "deathpoint") _result = true ]]></event> </mod> Dando Look No player vai mostrar quantas Vezes você morreu,quantas vezes matou alguém,e o percentual de death/kill.
  17. tenta isso. function onSay(cid, words, param, channel) if words == '!guild1' then if (getGuildId(param)) then doPlayerSendTextMessage(cid,4,"A Guild "..param.." foi adicionada com sucesso!") setGlobalStorageValue(12343,getGuildId(param)) else doPlayerSendTextMessage(cid,4,"Nome inválido.") end elseif words == '!guild2' then if (getGuildId(param)) then doPlayerSendTextMessage(cid,4,"A Guild "..param.." foi adicionada com sucesso.") setGlobalStorageValue(guild_2,getGuildId(param)) else doPlayerSendTextMessage(cid,4,"Nome inválido.") end elseif words == '!guildoff' then setGlobalStorageValue(guild_1,0) setGlobalStorageValue(guild_2,0) doPlayerSendTextMessage(cid,4,"Slots resetados.") end return true end mudei a storage porque essa storage e de algumas vip. entao pode ser isso.
  18. use esse systema vip. http://www.xtibia.co...-vip-system-20/ 50%xp pra vip.. e aqui vip nick. sai quando akba a vip. REP+?
  19. cara tipo de titulo nao e permitido. se ele nao respondeu e porque ele esta off. ou ainda nao sabe uque fazer. espera que ele ira responder.
  20. Tchubaka

    Spell De Atack

    isso e tpw um exori vis. com efeito de kunai certo?
  21. Tchubaka

    Monstro

    voce fez o monstro pelo monster creator?
  22. Tchubaka

    Addon Doll

    desculpe a tela tava bugada so deu pra ler o pedido. concertei. creio que dê. meus scripts estao la. desculpa dnv.
  23. cara eu estou pelo note agora nao tenho a script aki . mais tente baixar esse ot aqui. nesse forum. http://www.xtibia.com/forum/topic/158649-870-real-global-map/ epegar a script dela. AJUDEI?REP+
  24. e so você der use 2x no bau. e tirar uq tem dentro. pelo map editor.
  25. Tchubaka

    Addon Doll

    @edit em talkactions.xml adicione a seguinte tag: <talkaction words="!addon" event="script" value="addondoll.lua"/> Logo depois crie um arquivo com o nome de addondoll.lua , com o seguinte script dentro: function onSay(cid, words, param) local femaleOutfits = { ["all"]={136}, ["all"]={137}, ["all"]={138}, ["all"]={139}, ["all"]={140}, ["all"]={141}, ["all"]={142}, ["all"]={147}, ["all"]={148}, ["all"]={149}, ["all"]={150}, ["all"]={155}, ["all"]={156}, ["all"]={157}, ["all"]={158}, ["all"]={252}, ["all"]={269}, ["all"]={270}, ["all"]={279}, ["all"]={288}, ["all"]={324}, ["all"]={335} } local maleOutfits = { ["all"]={128}, ["all"]={129}, ["all"]={130}, ["all"]={131}, ["all"]={132},["all"]={133}, ["all"]={134}, ["all"]={143}, ["all"]={144}, ["all"]={145}, ["all"]={146}, ["all"]={151}, ["all"]={152}, ["all"]={153}, ["all"]={154}, ["all"]={251}, ["all"]={268}, ["all"]={273}, ["all"]={278}, ["all"]={289}, ["all"]={325}, ["all"]={336} } local msg = {"Digite o nome correto!", "Voce não possui Addon Doll!", "Bad param!", "Você recebeu seu addons!"} local param = string.lower(param) if (not isPremium(cid)) then doPlayerSendCancel(cid, "Você nao tem premium account.") return TRUE end if(getPlayerItemCount(cid, 9693) > 0) then if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then doPlayerRemoveItem(cid, 9693, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4]) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) if(getPlayerSex(cid) == 0)then doPlayerAddOutfit(cid, femaleOutfits[param][1], 3) else doPlayerAddOutfit(cid, maleOutfits[param][1], 3) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1]) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2]) end end so dizer !addon all AJUDEI?REP+
  • Quem Está Navegando   0 membros estão online

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