Ir para conteúdo

Gustavo Ntos

Membro
  • Registro em

  • Última visita

Tudo que Gustavo Ntos postou

  1. Source são as paradas que fazem o .exe que liga o servidor... procura no tk que tem post encinando.!
  2. Ja resolvi se quiser posso te ajudar se tiver a sources so seu servidor.
  3. Faz uma imagem exata 100% quadrada e tem que ter um dimenção exata que divide por 32 ex: 64x64 === Ao recortar dara 4 pisos de 32x32
  4. Sei não faz qualquer tamanho dps corta em 32x32 com varios pisos e junta
  5. Vai ter que fazer uma imagem e por no client
  6. data/items/items.xml acho que o vip é o bills bills armor bills legs bills boots
  7. Wtf nao tem nada no post.
  8. Gustavo Ntos postou uma resposta no tópico em Suporte Tibia OTServer
    Depois que mudei do tfs 0.3.6 para o 0.4 essa spell esta dando uma bugada local CONDICAO_POISON = createConditionObject(CONDITION_POISON) setConditionParam(CONDICAO_POISON, CONDITION_PARAM_TICKINVERVAL, 10000) addDamageCondition(CONDICAO_POISON, 10, 2000, -1) function onCastSpell(cid, var) if not isCreature(cid) then return true end local pet = getPlayerPet(cid) local find_area = getFirstCreaturePosOnDirection(pet, 1) local level = getPlayerLevel(cid) local jutsuDmg = 6 local skill_factor = math.ceil((jutsuSkill_factor(cid, 0) + level)/2) local dmg = - math.max(1, math.ceil(((skill_factor*0.5) * jutsuDmg)*0.30)) actionMove(pet, 398, 600) doCreatureSetLookDirection(pet, 0) stopNow(pet, 500) doAreaCombatHealth(cid, 1, getThingPos(pet), Marking_area, dmg, dmg, 72) addEvent(doAreaCombatHealth, 200, cid, 1, getThingPos(pet), Marking_area, dmg, dmg, 72) doAreaCombatCondition(cid, getThingPos(pet), Marking_area, CONDICAO_POISON, 72) doCreatureSay(cid, "Dynamic Marking", TALKTYPE_MONSTER) end Envez dela dar dano o target ela da dano no pet.
  9. Voce quer um npc que compra vial ? <?xml version="1.0" encoding="UTF-8"?> <npc name="Npc trader" script="default.lua" walkinterval="2000"> <health now="100" max="100"/> <look type="10"/> <parameters> <parameter key="module_shop" value="1"/> <parameter key="message_greet" value="Olá, |PLAYERNAME|! Eu compro algumas items. Diga {Trade}."/> <parameter key="shop_sellable" value=" NOME,ID,VALOR; NOME,ID,VALOR "/> </parameters> </npc>
  10. <globalevent name="ReflectQuest" interval="3" event="script" value="reflect quest/Reflectquest.lua"/>
  11. Esqueçi de por um end ARRUMADO: local text = "[PokeMagic] Voce foi teleportado!" local textt = "Poke Magic sempre inovando!" local pos = {x=2510, y=2233, z=14} local item = 13431 local ite = 13432 local it = 13433 local qtd = 1 function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerItemCount(cid, item) >= qtd and getPlayerItemCount(cid, ite) >= qtd and getPlayerItemCount(cid, it) >= qtd then doTeleportThing(cid, pos) doRemoveItem(item, qtd) doPlayerSendTextMessage(cid, 25, text) doPlayerSendTextMessage(cid, 25, textt) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce nao tem os 3 tipos de items vaza daqui desgraça") end return true end
  12. Caso der erro: local text = "[PokeMagic] Voce foi teleportado!" local textt = "Poke Magic sempre inovando!" local pos = {x=2510, y=2233, z=14} local item = 13431 local qtd = 1 function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerItemCount(cid, item) >= qtd then doTeleportThing(cid, pos) doRemoveItem(item, qtd) doPlayerSendTextMessage(cid, 25, text) doPlayerSendTextMessage(cid, 25, textt) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce nao tem os items vaza daqui desgraça") return true end
  13. local text = "[PokeMagic] Voce foi teleportado!" local textt = "Poke Magic sempre inovando!" local pos = {x=2510, y=2233, z=14} local item = 13431 local qtd = 1 function onUse(cid, item, frompos, item2, topos) if getPlayerItemCount(cid, item) >= qtd then doTeleportThing(cid, pos) doRemoveItem(item, qtd) doPlayerSendTextMessage(cid, 25, text) doPlayerSendTextMessage(cid, 25, textt) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce nao tem os items vaza daqui desgraça") return true end
  14. o Item usado... Ex: <action itemid="11391" event="script" value="x.lua"/> Ele ira remover o item 11391 ao usar...
  15. Abre todos local text = "[PokeMagic] Voce foi teleportado!" local textt = "Poke Magic sempre inovando!" local pos = {x=2510, y=2233, z=14} function onUse(cid, item, frompos, item2, topos) doTeleportThing(cid, pos) doRemoveItem(item.uid, 1) doPlayerSendTextMessage(cid, 25, text) doPlayerSendTextMessage(cid, 25, textt) return true end
  16. Qual jeito mais facil de colocar para cada skill de fishing almente 20 de attack speed? Tipo to com 2000 de atk speed a skill fishing almenta + 1 e fico com 1980 e assim vai ....
  17. Mas não é igual nas Spells certo? vo ver dps como faz.
  18. Alguem tem ou poder fazer um mod ou module que mostra as Spell da vocação? TFS 0.4 com Opcodes.
  19. Muda esse parede nao combina com dbz
  20. Achei uma pda em outro forum que esta 100% nao vi bugs
  21. Voce adicionou todos creaturescripts certinho? manda o topico desse sistema ou poste-o completo
  22. function getItemExp(item) if item.itemid > 0 then return getItemAttribute(item.uid, "exp") or 0 end return false end function getItemLevel(item) if item.itemid > 0 then return getItemAttribute(item.uid, "level") or 0 end return false end function doItemAddExp(item) if item.itemid > 0 then return doItemSetAttribute(item.uid, "exp", getItemExp(item) + 1) end return false end function doItemAddLevel(item, count) if item.itemid > 0 and tonumber(count) then return doItemSetAttribute(item.uid, "level", getItemLevel(item) + count) end return false end local table_of_slots = {"head", "body", "legs", "feet", "hands"} --Slots. Ex.: {"head", "body"} local min_exp = 500 -- Exp mínima para o monstro valer (exp que fica no monster.xml) local exp_levels = {2, 4, 6, 180, 280, 400, 550, 700, 900, 1500} -- Exp pra upar. A cada vez que um item atigingir um desses valores de exp, ele upa 1 lvl. (Tem 10, ou seja, nível máximo do item = 10) Pode por mais leveis se quiser. local slots = { ["head"] = 1, ["body"] = 4, ["legs"] = 7, ["feet"] = 8, ["hands"] = {5, 6}, } function onKill(cid, target, lastHit) local tab = {} if isPlayer(cid) and isMonster(target) then if getMonsterInfo(getCreatureName(target)).experience >= min_exp then if #table_of_slots > 0 then for a, b in pairs(table_of_slots) do if slots then if type(slots) == "table" then for i = 1, #slots do local tb = slots table.insert(tab, tb) end else table.insert(tab, slots) end end end end if #tab > 0 then for i = 1, #tab do local item = getPlayerSlotItem(cid, tab) if item.uid > 0 then doItem AddExp(item) if getItemLevel(item) then if isInArray(exp_levels, getItemExp(item)) then if getItemInfo(item.itemid).attack > 0 or getItemInfo(item.itemid).defense > 0 or getItemInfo(item.itemid).armor > 0 then if getItemLevel(item) ~= #exp_levels then doItemAddLevel(item, 1) doItemSetAttribute(item.uid, "name", getItemName(item.uid)..) doItemSetAttribute(item.uid, "name", getItemName(item.uid).." +"..getItemLevel(item)) doSendMagicEffect(getThingPos(cid), 28) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Seu "..getItemNameById(item.itemid).." atingiu "..getItemExp(item).."exp e ganhou 1 level! Agora ele esta level "..getItemLevel(item)) local atk = getItemAttribute(item.uid, "attack") or getItemInfo(item.itemid).attack local def = getItemAttribute(item.uid, "defense") or getItemInfo(item.itemid).defense local arm = getItemAttribute(item.uid, "armor") or getItemInfo(item.itemid).armor if getItemInfo(item.itemid).armor > 0 then doItemSetAttribute(item.uid, "armor",arm + 1) elseif getItemInfo(item.itemid).attack > 0 then doItemSetAttribute(item.uid, "attack",atk + 1) elseif getItemInfo(item.itemid).defense > 0 and getItemInfo(item.itemid).attack <= 0 then doItemSetAttribute(item.uid, "defense",def + 1) end end end end end end end end end end return true end function onLogin(cid) registerCreatureEvent(cid, "Item level") return true end

Informação Importante

Confirmação de Termo