
Tudo que Snowsz postou
-
(Resolvido)[AJUDA] Codigo de add addon
Acho que você não percebeu, meu nick é Snowsz, não Wakon.
-
Gostaria de um Otclient
O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Clients OTServ" Para: "OTServ → Suporte OTServ → Suporte de Clients"
-
(Resolvido)Monstros atacar outros monstros
Se quiser fazer isso totalmente em lua, vai dar um grande trabalho, terá que fazer um evento onThink para os monstros, onde irá ficar movendo o monstro a cada tantos segundos procurando outros com tal nome, e o que tiver mais perto ele mover o monstro até lá e dai criar um ataque "fake", onde não é o "summon" que ataca, e sim algo como doTargetCombatHealth. Bom, é o que eu acho que pode ser feito, se você possui sources, pode adicionar a função getCreaturePathTo para ajudar na movimentação do monstro.
-
(Resolvido)[AJUDA] Codigo de add addon
Cara, re-vê seus códigos, tem bastante coisa errada... @Topic Tenta assim: 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 local item = 'I\'m sorry, but you do not have the required items for this trade.' local done = 'Here you are, thank you for your business.' function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return true end if msgcontains(msg, 'items') then npcHandler:say('I sell items for bar of golds, i have: {boots of waterwalking}, {furious} {frock}, {umbral master spellbook}, {umbral master crossbow}, {umbral} {master} {slayer}, {umbral master} {chopper}, {umbral master hammer}, {umbral master bow}, {umbral master} {mace}, {umbral master axe}, {umbral} {masterblade}, {change sex}, {remover} {skull}, {sweet mangonaise elixir}.', cid) elseif msgcontains(msg, 'addons') then npcHandler:say('I sell addons for bar of golds, i have: {assassin}, {warrior}, {barbarian}, {druid}, {brotherhood}, {entrepreneur}, {dream warden}, {glooth engineer}, {conjurer}, {death herald}, {ceremonial} {garb}, {chaos acolyte}, {beastmaster}, {ranger}, {puppeteer}, {spirit caller} and {champion}.', cid) elseif msgcontains(msg, 'mounts') then npcHandler:say('I sell mounts for bar of golds, i have: {ursagrodon}, {walker}, {armoured war} {horse}, {shadow draptor}, {azudocus}, {blazebringer}, {carpacosaurus}, {crimson ray}, {death crawler}, {desert} {king}, {flamesteed}, {winter} { king}, {jade pincer}, {platesaurian}, {tempest}, {tombstinger}, {nethersteed}, {jade lion}, {steelbreak}, {floating kashmir}, {magic carpet}, {flying divian}, {night} {waccoon}, {ringtail waccoon}, {emerald} {waccoon}, {blackpelt}, {siegebreaker}, {poisonbane}, {doombringer}, {woodland prince}, {hailtorm fury}.', cid) elseif msgcontains(msg, 'assassin') then if getPlayerItemCount(cid,15515) >= 25 then npcHandler:say('Did you bring me the 25 bar of golds?', cid) npcHandler.topic[cid] = 45 else npcHandler:say('I need a {25 bar of golds}, to give you addon assassin. Please come back when you have them.', cid) npcHandler.topic[cid] = 0 end elseif msgcontains(msg, 'yes') and npcHandler.topic[cid] == 46 then npcHandler.topic[cid] = 0 if getPlayerItemCount(cid,15515) >= 25 then if doPlayerRemoveItem(cid,15515, 25) then npcHandler:say(done, cid) local player = Player(cid) player:addOutfitAddon(152, 3) end else npcHandler:say(item, cid) end elseif msgcontains(msg, 'no') and npcHandler.topic[cid] >= 1 and npcHandler.topic[cid] <= 90 then npcHandler:say('Well, then leave.') npcHandler.topic[cid] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
(Resolvido)[Monstros] Loot com porcentagem em 100%
Nas sources do tfs, 100000 é 100%, enquanto 0 é 0%, ou seja, ajuste no xml do monstro de 0 a 100000 a porcentagem dele, e deixe o rate loot em 0 no config.lua, por exemplo: 45000 = 45%
-
Aumentar efeitos de Spells
O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Scripts" Para: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
-
(Resolvido)[PEDIDO] NPC que da itens aleátorio diariamente.
Mexi no seu script... Tinha muita coisa faltando e sem sentido. Script 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 local itens = { --{iddoitem, quantidade}, {2160, 15}, {2158, 10}, {2157, 2}, } local hours = 24 local level = 200 local storage = 9934 local effect = 10 function creatureSayCallback(cid, type, msg) if not npcHandler:isFocused(cid) then return true end if msgcontains(msg, 'sim') or msgcontains(msg, 'yes') then if getPlayerLevel(cid) >= level then if getPlayerStorageValue(cid, storage) <= os.time() then local item = itens[math.random(1,#itens)] doPlayerAddItem(cid, item[1], item[2]) doSendMagicEffect(getThingPos(cid), effect) selfSay('Pronto, aqui esta seu premio! Aguarde '..hours..' hora'..(hours > 1 and "s" or "")..' para pegar seu premio denovo.', cid) setPlayerStorageValue(cid, storage, os.time() + (hours * 60 * 60)) else selfSay('Aguarde '..hours..' hora'..(hours > 1 and "s" or "")..' para pegar seu premio denovo.', cid) end else selfSay('Você precisa de level '..level..' para pegar seu prêmio', cid) end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) O XML, usa o dele mesmo.
-
Itens Aparecendo na Outfit
Acho que da até para fazer usando summons, mas fica bem feio kk', cada um teria uma roupa, que seria esse tal item, e iria mudando sempre que equipar/desequipar um item no player, seria como uma camada por cima da outra como foi dito antes.
- [MOD] Top Button
-
Storage para torneio
- [pedido] Texto sobe uma cor só
Não há a necessidade de criar uma variável dentro de outra, e por favor não use return TRUE e sim return true. local config = { ["texto2"] = {color = 205, pos = {x = 894, y = 1963, z = 7}}, ["texto1"] = {color = 205, pos = {x = 1099, y = 1060, z = 7}}, } function onThink(cid, interval, lastExecution) for text, c in pairs(config) do doSendAnimatedText(c.pos, text, c.color) end return true end Só dei uma pequena modificada no script.- (Resolvido)Treiner - Aparecer
local pos = { [9000] = {monster = "Alvo", pos = {x = 0, y = -2, z = 0}}, [9001] = {monster = "Alvo", pos = {x = -1, y = 1, z = 0}}, [9002] = {monster = "Alvo", pos = {x = 0, y = -2, z = 0}}, [9003] = {monster = "Alvo", pos = {x = 0, y = 2, z = 0}}, [9004] = {monster = "Alvo", pos = {x = 2, y = -1, z = 0}}, } function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition) local p = getCreaturePosition(cid) if pos[getItemAttribute(item.uid, "aid")] then local np = pos[getItemAttribute(item.uid, "aid")] local s = {x = p.x + (np.pos.x), y = p.y + (np.pos.y), z = p.z + (np.pos.z)} doSummonCreature(np.monster, s) end return true end function onStepOut(cid, item, position, lastPosition, fromPosition, toPosition) local p = getCreaturePosition(cid) if pos[getItemAttribute(item.uid, "aid")] then local np = pos[getItemAttribute(item.uid, "aid")] local s = {x = p.x + (np.pos.x), y = p.y + (np.pos.y), z = p.z + (np.pos.z)} for i = 1, 255 do local cre = getTopCreature({x = s.x, y = s.y, z = s.z, stackpos = i}).uid if cre then doRemoveCreature(cre) break end end doSendMagicEffect(s, 6) end return true end- Checkpoint System v1.1
- Potions buga so volta dando reload actions
Posta seu config.lua pra eu dar uma olhada.- (Resolvido)Spell sumon por level
Tem limite de summon ? Ou é sumonado ilimitadamente ?- (Resolvido)Tile muda x item por segundos
Quais são os ids das estatuas ?- Potions buga so volta dando reload actions
Não sou vidente, não tenho bola de cristal e não sou cigano para adivinhar o script que está usando, ou seja, posta isso! Assim como deve postar o erro que deve mostrar no console.- [Pedido] Sistema de comprar e vender casa !
Isso é problema no mapa, quem fez o mapa fez as houses mal feitas, qualquer dash da para comprar casas etc... Seu problema é no mapa.- Pedido Hyourougan
Eu acho que ele não quer ripar de ninguém não acha? Ele deve querer algo original.- Bugs/Erros no TK? Poste aqui!
Melhore urgentemente sua escrita, está horrível, quase não consegui entender o que disse. Aqui não é local para pedir ajuda sobre servidores e etc... Peça ajuda na área sobre mapas de servidores: Suporte de Mapping, na próxima poderá ser negativado.- Tomorrowland no Brasil até 2020!
- [URGENTE] Dúvida
Talvez não, mas, só precisa tentar , pois o TFS 1.1 é um aprimoramento do TFS 1.0.- [AJUDA] Script erro
Pois então na sua datapack está faltando a lib desse script. E sem ela não da pra ajudar, eu acho...- Storage para torneio
- Tp - Treiner
Que ? Especifique isso melhor menino! Sobre o resto: local config = { MSG_WELCOME = "Seja bem vindo aos trainers.", SORCERER = {x=655, y=1014, z=7}, DRUID = {x=656, y=1014, z=7}, PALADIN = {x=393, y=1131, z=8}, KNIGHT = {x=324, y=1132, z=8} } function onStepIn(cid, item, fromPosition, itemEx, toPosition) if isPlayer(cid) then return false elseif isSorcerer(cid) then doTeleportThing(cid, config.SORCERER) elseif isDruid(cid) then doTeleportThing(cid, config.DRUID) elseif isPaladin(cid) then doTeleportThing(cid, config.PALADIN) elseif isKnight(cid) then doTeleportThing(cid, config.KNIGHT) end doSendMagicEffect(getCreaturePosition(cid), 12) doCreatureSay(cid, config.MSG_WELCOME, TALKTYPE_ORANGE_2) return true end - [pedido] Texto sobe uma cor só
Informação Importante
Confirmação de Termo