Tudo que Toruk postou
-
[TFS1.2] Database
Ao importar a database para meu server, ele da o seguinte erro: Alguém saberia resolver? CREATE TABLE `paypal_transactions` ( `id` INT( 11 ) NOT NULL , `payment_status` VARCHAR( 70 ) NOT NULL DEFAULT '', `payer_email` VARCHAR( 255 ) NOT NULL DEFAULT '', `payer_id` VARCHAR( 255 ) NOT NULL DEFAULT '', `item_number1` VARCHAR( 255 ) NOT NULL DEFAULT '', `mc_gross` FLOAT NOT NULL , `mc_currency` VARCHAR( 5 ) NOT NULL DEFAULT '', `txn_id` VARCHAR( 255 ) NOT NULL DEFAULT '', `date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE = INNODB DEFAULT CHARSET = utf8;
-
[TFS1.2] Potion
Alguém saberia como solucionar esse erro? Console Script local berserk = Condition(CONDITION_ATTRIBUTES) berserk:setParameter(CONDITION_PARAM_TICKS, 10 * 60 * 1000) berserk:setParameter(CONDITION_PARAM_SKILL_MELEE, 5) berserk:setParameter(CONDITION_PARAM_SKILL_SHIELD, -10) berserk:setParameter(CONDITION_PARAM_BUFF_SPELL, true) local mastermind = Condition(CONDITION_ATTRIBUTES) mastermind:setParameter(CONDITION_PARAM_TICKS, 10 * 60 * 1000) mastermind:setParameter(CONDITION_PARAM_STAT_MAGICPOINTS, 3) mastermind:setParameter(CONDITION_PARAM_BUFF_SPELL, true) local bullseye = Condition(CONDITION_ATTRIBUTES) bullseye:setParameter(CONDITION_PARAM_TICKS, 10 * 60 * 1000) bullseye:setParameter(CONDITION_PARAM_SKILL_DISTANCE, 5) bullseye:setParameter(CONDITION_PARAM_SKILL_SHIELD, -10) bullseye:setParameter(CONDITION_PARAM_BUFF_SPELL, true) local antidote = Combat() antidote:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING) antidote:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) antidote:setParameter(COMBAT_PARAM_DISPEL, CONDITION_POISON) antidote:setParameter(COMBAT_PARAM_AGGRESSIVE, false) antidote:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, true) local exhaust = Condition(CONDITION_EXHAUST_HEAL) exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 1000)) -- 1000 - 100 due to exact condition timing. -100 doesn't hurt us, and players don't have reminding ~50ms exhaustion. local potions = { [6558] = {transform = {id = {7588, 7589}}, effect = CONST_ME_DRAWBLOOD}, [7439] = {condition = berserk, vocations = {4, 8}, effect = CONST_ME_MAGIC_RED, description = "Only knights may drink this potion.", text = "You feel stronger."}, [7440] = {condition = mastermind, vocations = {1, 2, 5, 6}, effect = CONST_ME_MAGIC_BLUE, description = "Only sorcerers and druids may drink this potion.", text = "You feel smarter."}, [7443] = {condition = bullseye, vocations = {3, 7}, effect = CONST_ME_MAGIC_GREEN, description = "Only paladins may drink this potion.", text = "You feel more accurate."}, [7588] = {health = {250, 350}, vocations = {3, 4, 7, 8}, level = 50, flask = 7634, description = "Only knights and paladins of level 50 or above may drink this fluid."}, [7589] = {mana = {115, 185}, vocations = {1, 2, 3, 5, 6, 7}, level = 50, flask = 7634, description = "Only sorcerers, druids and paladins of level 50 or above may drink this fluid."}, [7590] = {mana = {150, 250}, vocations = {1, 2, 5, 6}, level = 80, flask = 7635, description = "Only druids and sorcerers of level 80 or above may drink this fluid."}, [7591] = {health = {425, 575}, vocations = {4, 8}, level = 80, flask = 7635, description = "Only knights of level 80 or above may drink this fluid."}, [7618] = {health = {125, 175}, flask = 7636}, [7620] = {mana = {75, 125}, flask = 7636}, [8472] = {health = {250, 350}, mana = {100, 200}, vocations = {3, 7}, level = 80, flask = 7635, description = "Only paladins of level 80 or above may drink this fluid."}, [8473] = {health = {650, 850}, vocations = {4, 8}, level = 130, flask = 7635, description = "Only knights of level 130 or above may drink this fluid."}, [8474] = {combat = antidote, flask = 7636}, [8704] = {health = {60, 90}, flask = 7636}, [26029] = {mana = {425, 575}, vocations = {1, 2, 5, 6}, level = 130, flask = 7635, description = "Only druids and sorcerers of level 130 or above may drink this fluid."}, [26030] = {health = {420, 580}, mana = {250, 350}, vocations = {3, 7}, level = 130, flask = 7635, description = "Only paladins of level 130 or above may drink this fluid."}, [26031] = {health = {875, 1125}, vocations = {4, 8}, level = 200, flask = 7635, description = "Only knights of level 200 or above may drink this fluid."} } function onUse(player, item, fromPosition, target, toPosition, isHotkey) if type(target) == "userdata" and not target:isPlayer() then return false end local potion = potions[item:getId()] if potion.level and player:getLevel() < potion.level or potion.vocations and not table.contains(potion.vocations, player:getVocation():getBase():getId()) and not (player:getGroup():getId() >= 2) then player:say(potion.description, TALKTYPE_MONSTER_SAY) return true end --if (item:getId() >= 26029 and item:getId() <= 26031 and player:getStorageValue(warPrivate_storage) > 0) then --player:say("This potion can't be used in War Anti-Entrosa!", TALKTYPE_MONSTER_SAY) --return false --end if player:getCondition(CONDITION_EXHAUST_HEAL) then player:sendTextMessage(MESSAGE_STATUS_SMALL, Game.getReturnMessage(RETURNVALUE_YOUAREEXHAUSTED)) return true end if potion.health or potion.mana or potion.combat then if potion.health then doTargetCombatHealth(0, target, COMBAT_HEALING, potion.health[1], potion.health[2], CONST_ME_MAGIC_BLUE) end if potion.mana then doTargetCombatMana(0, target, potion.mana[1], potion.mana[2], CONST_ME_MAGIC_BLUE) end if potion.combat then potion.combat:execute(target, Variant(target:getId())) end -- Supply analyser apenas 11.x if player:getClient().os == CLIENTOS_NEW_WINDOWS then player:sendWaste(item:getId()) end player:addAchievementProgress('Potion Addict', 100000) target:say("Aaaah...", TALKTYPE_MONSTER_SAY) player:addCondition(exhaust) player:setStorageValue(38412, player:getStorageValue(38412)+1) end if potion.condition then player:addCondition(potion.condition) player:say(potion.text, TALKTYPE_MONSTER_SAY) player:getPosition():sendMagicEffect(potion.effect) end if potion.transform then item:transform(potion.transform.id[math.random(#potion.transform.id)]) item:getPosition():sendMagicEffect(potion.effect) return true end if not configManager.getBoolean(configKeys.REMOVE_POTION_CHARGES) then return true end item:remove(1) return true end
-
[TFS1.2] Prison Key
Está dando esse erro em meu console, alguém saberia resolver? Erro: Keys.lua -------------THIS SCRIPT WAS MADED BY VANKK AT 15TH DECEMBER 2016 AT 4 P.M (GMT - 3) ------------- local config = { [22606] = { targetId = 22636, -- Target ID. bossName = 'Zavarash', -- boss name keyPlayerPosition = Position(33608, 32394, 11), -- Where the player should be. newPosition = Position(33567, 32422, 12), -- Position to teleport bossPosition = Position(33565, 32418, 12), -- Boss Position centerPosition = Position(33567, 32422, 12), -- Center Room exitPosition = Position(33611, 32377, 11), -- Exit Position rangeX = 20, -- Range in X rangeY = 20, -- Range in Y time = 15, -- time in minutes to remove the player }, [22605] = { targetId = 22634, -- Target ID. bossName = 'Horadron', -- boss name keyPlayerPosition = Position(33603, 32394, 11), -- Where the player should be. newPosition = Position(33607, 32421, 12), -- Position to teleport bossPosition = Position(33606, 32417, 12), -- Boss Position centerPosition = Position(33607, 32421, 12), -- Center Room exitPosition = Position(33611, 32377, 11), -- Exit Position rangeX = 20, rangeY = 20, time = 15, -- time in minutes to remove the player }, [22604] = { targetId = 22638, -- Target ID. bossName = 'Terofar', -- boss name keyPlayerPosition = Position(33614, 32394, 11), -- Where the player should be. newPosition = Position(33526, 32421, 12), -- Position to teleport bossPosition = Position(33524, 32418, 12), -- Boss Position centerPosition = Position(33526, 32421, 12), -- Center Room exitPosition = Position(33611, 32377, 11), -- Exit Position rangeX = 20, rangeY = 20, time = 15, -- time in minutes to remove the player } } local function roomIsOccupied(centerPosition, rangeX, rangeY) local spectators = Game.getSpectators(centerPosition, false, false, rangeX, rangeX, rangeY, rangeY) if #spectators ~= 0 then return true end return false end function clearBossRoom(playerId, centerPosition, rangeX, rangeY, exitPosition) local spectators, spectator = Game.getSpectators(centerPosition, false, false, rangeX, rangeX, rangeY, rangeY) for i = 1, #spectators do spectator = spectators[i] if spectator:isPlayer() and spectator.uid == playerId then spectator:teleportTo(exitPosition) exitPosition:sendMagicEffect(CONST_ME_TELEPORT) end if spectator:isMonster() then spectator:remove() end end end function onUse(player, item, fromPosition, target, toPosition, isHotkey) local tmpConfig = config[item.itemid] if not tmpConfig then return true end if target.itemid ~= tmpConfig.targetId then return true end local creature = Tile(tmpConfig.keyPlayerPosition):getTopCreature() if not creature or not creature:isPlayer() then return true end if roomIsOccupied(tmpConfig.centerPosition, tmpConfig.rangeX, tmpConfig.rangeY) then player:sendCancelMessage("There is someone in the room.") return true end local monster = Game.createMonster(tmpConfig.bossName, tmpConfig.bossPosition) if not monster then return true end -- Send message player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You have entered an ancient demon prison cell!') player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You have fifteen minutes to kill and loot this boss, else you will lose that chance.') -- Let's roll addEvent(clearBossRoom, 60 * tmpConfig.time * 1000, player:getId(), tmpConfig.centerPosition, tmpConfig.rangeX, tmpConfig.rangeY, tmpConfig.exitPosition) item:remove() player:teleportTo(tmpConfig.newPosition) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
[TFS1.2] Exeta res
Olá, estava querendo saber se tem como remover a flag de um monstro temporariamente? Nesse caso, mudar o flag runonhealth, para 0 durante 6 segundos e após isso voltar ao normal? (Estou tentando deixar o exeta res igual ao global, porém não estou conseguindo de jeito algum) EDIT: Caso n de para alterar o runonhealth, outra opção seria forçar o follow do monstro no player, caso possível. Exeta res:
-
(Resolvido)[TFS1.2] Summonar criatura em action
Deu tudo certo, vou só dar uma adaptada e usa-lo. Obrigado! +REP
-
(Resolvido)[TFS1.2] Summonar criatura em action
Não precisa da condição, apenas sumonar o monstro e remover o item
-
(Resolvido)[TFS1.2] Summonar criatura em action
Estou usando o TFS 1.2 e queria saber se há como adicionar o summon de um "FIRE ELEMENTAL" em meu script, estou aprendendo agora a mecher em lua e queria saber se alguem consegue dar essa ajuda Ps: Summonar um fire elemental igual a magia utevo res. (Porém sem gasto de mana). Script: local function revert(position, itemId, transformId) local item = Tile(position):getItemById(itemId) if item then item:transform(transformId) end end function onUse(player, item, fromPosition, target, toPosition, isHotkey) if target.itemid == 35082 then if player:getStorageValue(0) == 0 then player:say('The branch increased the fire.', TALKTYPE_MONSTER_SAY) item:remove() end target:transform(35080) toPosition:sendMagicEffect(CONST_ME_FIREAREA) addEvent(revert, 1 * 30 * 1000, toPosition, 35080, 35081) return true end return true end
-
(Resolvido)[TFS1.2] Precisa de certa looktype para acessar
Worked! Thx
-
(Resolvido)[TFS1.2] Precisa de certa looktype para acessar
.Uso o tfs 1.2, e queria saber se tem como fazer algum movement para permitir o acesso apenas a players q estiverem usando o looktype = 567 e caso não estejam, apenas retornar ao sqm. Agradeço desde ja.
-
(Resolvido)[TFS1.2] Outfit Movement
Obrigado, funcionou 100%! Unica coisa q mudei foi o time para 10000.
-
(Resolvido)[TFS1.2] Outfit Movement
Queria algum script que mudasse a roupa do personagem para uma outra looktype por 10 segundos. Consegui achar um script aki no forum, porém ele acaba dando esse erro quando passo em cima do sqm. Script utilizado local config = { actionID = 32899, outfit = {lookType = 567, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}, -- Outfit time = 10 -- Tempo em segundos } function onStepIn(cid, item, pos) if isPlayer(cid) then if item.actionid == config.actionID then doSetCreatureOutfit(cid, config.outfit, config.time * 1000) end end end
-
(Resolvido)[TFS1.2] Vortex Cults De Carlin
Obrigado!
-
(Resolvido)[TFS1.2] Novo exeta res
OK. Vou dar uma olhada, é que na verdade não entendo muito de scripting, mas obrigado.
-
(Resolvido)[TFS1.2] Vortex Cults De Carlin
Queria saber se alguem conseguiria solucionar o seguinte erro que aparece no meu console, ao matar os cults de carlin. Ps: A quest está funcionando normalmente, porém as vezes mostra esse erro. Lua Script Error: [Main Interface] in a timer event called from: (Unknown scriptfile) ...ipts/scripts/quests/cults of tibia/vortexSpawnCarlin.lua:27: attempt to index local 'portal2' (a nil value) stack traceback: [C]: in function '__index' ...ipts/scripts/quests/cults of tibia/vortexSpawnCarlin.lua:27: in function <...ipts/scripts/quests/cults of tibia/vortexSpawnCarlin.lua:25> vortexSpawnCarlin.lua:
-
(Resolvido)[TFS1.2] Novo exeta res
Estou usando usando o TFS 1.2 e queria saber se alguem poderia me ajudar em relação ao "exeta res". Ele está funcionando tudo certinho, porém queria por a atualização que os bixos que correm com pouca vida, ainda continuem atacando o boneco de quem usou a magia por 6s. EXETA RES:
-
(Resolvido)[TFS1.2] Exercise Weapons
Estou usando esse script para os exercise weapons, porém, você pode usá-lo quantas vezes quiser após esperar o delay. Queria algo para bloquear de usar novamente se já estiver usando. Exercise Weapons Bug.mp4
-
(Resolvido)[TFS1.2] Bug script !bless
Worked... Thx!
-
(Resolvido)[TFS1.2] Bug script !bless
Meu problema é que quando uso a talkaction "!bless", ele acaba comprando todas as 8 blesses, porém geralmente n é perdida todas, então faz stack delas. Queria que alguém conseguisse adaptar o script para comprar apenas as blesses que estão faltando.
-
Market não aparece nome do items.
up
-
[Link Quebrado] [ModenAcc] WebSite Otpokemon V4.0 Completo
Não tem como reupar o link?
- [PDA]Pokemon Whots 1.0