
Tudo que FearWar postou
-
(Resolvido)Bless Amulet
Estou usando essa aqui local corpse_ids = { [0] = 3065, [1] = 3058 } function onPrepareDeath(cid, deathList) if getCreatureSkullType(cid) < 6 then if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 12668 then doCreatureSetDropLoot(cid, false) doItemSetAttribute(doCreateItem(corpse_ids[getPlayerSex(cid)], 1, getThingPos(cid)), "description", "You recognize " .. getCreatureName(cid) .. ". He was killed by " .. (isMonster(deathList[1]) and "a " .. string.lower(getCreatureName(deathList[1])) or isCreature(deathList[1]) and getCreatureName(deathList[1]) or "a field item") .. ".\nHis soul was protected for amulet!") end end return true end Mas queria colocar a bless automática junto!
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
-
(Resolvido)Bless Amulet
up!
-
(Resolvido)[PEDIDO] Clean em uma certa coordenada
Valeu REP+!
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
-
[8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
@Fir3element, local config = { removeOnUse = "yes", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", range = -1, realAnimation = "no", -- make text effect visible only for players in range 1x1 healthMultiplier = 1.0, manaMultiplier = 1.0 } config.removeOnUse = getBooleanFromString(config.removeOnUse) config.usableOnTarget = getBooleanFromString(config.usableOnTarget) config.splashable = getBooleanFromString(config.splashable) config.realAnimation = getBooleanFromString(config.realAnimation) local POTIONS = { [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion [7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {800, 1000}, level = 130, vocations = {4, 8}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {70, 130}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {110, 190}, level = 50, vocations = {1, 2, 3, 5, 6, 7}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {200, 300}, level = 80, vocations = {1, 2, 5, 6}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {200, 400}, mana = {110, 190}, level = 80, vocations = {3, 7}, vocStr = "paladins"} -- great spirit potion } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = POTIONS[item.itemid] if(not potion) then return false end if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= itemEx.uid)) then if(not config.splashable) then return false end if(toPosition.x == CONTAINER_POSITION) then toPosition = getThingPos(item.uid) end doDecayItem(doCreateItem(2016, potion.splash, toPosition)) doPlayerAddItem(cid, potion.empty, 1) return true end if(hasCondition(cid, CONDITION_EXHAUST)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return true end if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1) return true end if(config.range > 0 and cid ~= itemEx.uid and getDistanceBetween(getCreaturePosition(cid), getCreaturePosition(itemEx.uid)) > config.range) then return false end local health = potion.health if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then return false end local mana = potion.mana if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then return false end doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_FIREWORK_BLUE) if(not config.realAnimation) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1, false, tid) end end end doAddCondition(cid, exhaust) if(not potion.empty or config.removeOnUse) then return true end doPlayerAddItem(cid, potion.empty, 1) return true end Não estou conseguindo fazer alteração na TALKTYPE_ORANGE, qualquer outra que eu adicionar da debug no client!
-
[TFS 0.4] Dodge System - Item duplicado otb
Fala galera do TK, Bom como o título já diz, estou usando um sistema de dodge system e o item que estou utilizando é um item duplicado no otb até ai tudo certo, porém quando vou usar ele no Tibia ele não faz absolutamente nada, nenhum erro na distro nada, apenas não usa. actions.xml <action itemid="12685" event="script" value="a/dodgesulphur.lua"/> actions/scripts/a/dodgesulphur.lua local config = { effectonuse = 29, -- efeito que sai levelscrit = 100, --- leveis que terão storagecrit = 98798644 -- storage que será verificado } function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, config.storagecrit) < config.levelscrit then doRemoveItem(item.uid, 1) doSendMagicEffect(topos,config.effectonuse) doPlayerSendTextMessage(cid,22,"Voce elevou seus dodges para ["..(getPlayerStorageValue(cid, config.storagecrit)+1).."/100].") setPlayerStorageValue(cid, config.storagecrit, getPlayerStorageValue(cid, config.storagecrit)+1) elseif getPlayerStorageValue(cid, config.storagecrit) >= config.levelscrit then doPlayerSendTextMessage(cid,22,"Voce ja chegou no nivel Maximo de Dodges.\nParabéns.") return 0 end return 1 end creaturescripts.xml <event type="StatsChange" name="Dodge" event="script" value="a/dodge.lua"/> creaturescripts/scripts/a/dodge.lua local storagedodge = 98798644 -- storage do dodge local cor = 250 -- cor do texto local effect = 31 -- id do magic effect local msg = "Dodge!" -- msg local dodge = { {min = 1, max = 10, chance = 6}, -- se o dodge tiver entre 1 e 2 tem 10% de chance de da dodge. {min = 11, max = 20, chance = 9}, -- vocês pode adicionar mas se quiserem {min = 21, max = 40, chance = 12}, {min = 41, max = 50, chance = 15}, {min = 51, max = 70, chance = 18}, {min = 71, max = 90, chance = 21}, {min = 91, max = 100, chance = 24}, {min = 101, max = math.huge, chance = 28} } function onStatsChange(cid, attacker, type, combat, value) if not isCreature(cid) then return false end for _, tudo in pairs(dodge) do if getPlayerStorageValue(cid, storagedodge) >= tudo.min and getPlayerStorageValue(cid, storagedodge) <= tudo.max then local chancex = math.random(1, 100) if chancex <= tudo.chance then if combat ~= COMBAT_HEALING then doSendMagicEffect(getCreaturePosition(cid), effect) doSendAnimatedText(getCreaturePosition(cid), msg, cor) return false end end end end return true end creaturescripts/scripts/login.lua registerCreatureEvent(cid, "Dodge") items/items.xml <item id="12685" article="a" name="dodge stone" plural="dodge stones"> <attribute key="weight" value="15" /> </item> está ai o código que estou usando porém, como já tinha comentado, ao usar o item não acontece nada! OBS: Se eu usar outro item ele funciona, porém eu queria que fosse o item duplicado que eu fiz no itemeditor (Para não haver clones, ou drop dentro do map, monstros etc)!
-
Dodge System 8.54+
Olá @xWhiteWolf, Bom tava vendo seu system, e não sei porque não funciona para mim. Eu tava pensando, como eu dupliquei um item na items.otb será que isso ta influenciando a o não funcionamento? Testei todos os dodge e não funcionam com o item duplicado! Fico no aguardo se puder me ajudar!
-
(Resolvido)Alavanca que leva o player até a house
Qual tag usar?
-
[Creaturescripts] Auto Bless
Não tem no meu login: if(loss ~= nil) then Estou usando : local freeBlessMaxLevel = 150 function onLogin(cid) if(getPlayerLevel(cid) <= freeBlessMaxLevel and not getPlayerBlessing(cid,1)) then for b=1, 5 do doPlayerAddBlessing(cid, b) end doCreatureSay(cid, 'You got free bless, because your level lower than 150!', TALKTYPE_ORANGE_1) doSendMagicEffect(getThingPosition(cid), CONST_ME_HOLYDAMAGE) elseif(getPlayerBlessing(cid,1)) then doCreatureSay(cid, 'You are bleesed!', TALKTYPE_ORANGE_1) else doCreatureSay(cid, 'You are not bleesed. type !bless', TALKTYPE_ORANGE_1) end return true end Teria como colocar para essa script não usar em Account manager e também em GM, Gods?
-
[Creaturescripts] Auto Bless
Aparece este erro na distro: TFS 0.4 [19:13:10.592] [Warning - Event::loadScript] Event onDeath not found (data/creaturescripts/scripts/autoBless.lua) Não existe outra função?
-
(Resolvido)[PEDIDO] Clean em uma certa coordenada
Muito obrigado @Dwarfer, REP+ @Dwarfer Outra dúvida, se no caso eu quiser só colocar as cordenadas, sem essa area 2x2 ou 5x5; Por exemplo eu tenho essa cordenada: [1] = {{x = 1008, y = 1011, z = }, 2, 2}, Esse código acima é o centro, e eu quero que de clean 1SCM para a direita e 1SCM para esquerda, e não em área como o código está propondo! Seria só eu tirar a parte: 2, 2}, E colocar novas coordenadas? Obrigado!
-
(Resolvido)[PEDIDO] Clean em uma certa coordenada
Teria como fazer pra não da clean em certo item? por exemplo não da clean no gold!
-
TFS 0.4 Effect Text - Aumentar caracteres
Alguém se habilita a me ajudar?
-
TFS 0.4 Effect Text - Aumentar caracteres
Pior que em questão de c++ sou zero! Mas valeu, se alguém se souber deixo a disposição a me ajudar Valeu!
-
TFS 0.4 Effect Text - Aumentar caracteres
Quem provavelmente teria os codigos nas source?
-
TFS 0.4 Effect Text - Aumentar caracteres
Fala galera do TK, Distro: TFS 0.4 Estou com o seguinte script : local positions = { ["FearWar"] = {pos = {x = 1023, y = 1027, z = 7}, color = {205, 210}, effect = {49}}, ["Treiner"] = {pos = {x = 1019, y = 1023, z = 7}, color = {129, 129}, effect = {31, 28}}, ["Houses"] = {pos = {x = 1018, y = 1023, z = 7}, color = {129, 129}, effect = {31, 28}}, ["Hunts"] = {pos = {x = 1017, y = 1023, z = 7}, color = {129, 129}, effect = {31, 28}}, ["Npc's"] = {pos = {x = 1016, y = 1023, z = 7}, color = {129, 129}, effect = {31, 28}}, ["Quest's"] = {pos = {x = 1015, y = 1023, z = 7}, color = {129, 129}, effect = {31, 28}}, ["King FW"] = {pos = {x = 1014, y = 1023, z = 7}, color = {129, 129}, effect = {31, 28}}, ["SnowBall"] = {pos = {x = 1032, y = 1025, z = 7}, color = {35, 35}, effect = {43, 41}}, ["DFT"] = {pos = {x = 1036, y = 1026, z = 7}, color = {129, 129}, effect = {44}}, ["Area Vip"] = {pos = {x = 1096, y = 1063, z = 7}, color = {205, 210}, effect = {39, 10}} } function onThink(cid, interval, lastExecution) for t, pos in pairs(positions) do for _, effect in ipairs(pos.effect) do if(#pos.effect > 0) then doSendMagicEffect(pos.pos, effect) end end doSendAnimatedText(pos.pos, t, #pos.color > 0 and pos.color[math.random(#pos.color)] or 215) end return true end Dúvida: Teria como aumentar os caracteres do texto ? Agradeço desde já! Valeu :D
-
[Dúvida] Mudar cor do heal das potions
Alguém pode ajudar estou com o mesmo problema do @macalo
- [v32] GlobalFull 11/12 - New Asuras, Falcons, Warzones 4,5,6 . (Updates Frequentes)
-
OtServ Offline
Uma dica, utiliza esse tempo para que tu possa estudar alguma coisa, aprender alguma linguagem de programação algo do gênero, ao invés de ficar jogando !
-
[8.0-8.11] I NEED REAL MAP 8.0 - MAPA GLOBAL 8.0
I NEED REAL MAP 8.0 - MAPA GLOBAL 8.0
-
[8.11] PEDIDO MAPA GLOBAL
Boa noite, Alguem tem mapa completo da versão 8.11? desde ja agradeço
-
[DÚVIDA] Versões 8.0..8.1
Pois é Leo, vi seu projeto, muito interessante, porém fiquei na dúvida porque você parou. Até achei que era por falta de ferramentas, por causa da versão 8.10 Adicionei você no skype, se quiser acc pra nos trocar uma ideia(!)
-
[DÚVIDA] Versões 8.0..8.1
Queridos Tibianos, Queria tirar umas dúvidas com vocês, a respeito da versão 8.0 - 8.1, com um Mapa global, stages, como era antigamente, seria um OTserver visado para jogar, ou já é ultrapassado não tem o porque de investir em algo assim? Agradeço se todos deixar um comentário a respeito! Desde já agradeço Obrigado
-
[PROJETO] Venoria ~ Real Map 8.0
Gostei muito desse projeto, porém ficou uma dúvida, porquê players não influenciam e dão motivação para um projeto deste(?) O que aconteceu com o projeto, faltou alguma coisa para dar precedência? Obrigado Atenciosamente Gian