Tudo que egyptPOWER postou
-
(Resolvido)[Pedido] Script de que troca vocação
Não tive tempo de testar. Veja ai se funfa promoteitems.lua -- Created by egyptPOWER -- function onUse(cid, item, fromPosition, itemEx, toPosition) local item1 = ID ITEM SORC local item2 = ID ITEM DRUID local item3 = ID ITEM PALADIN local item4 = ID ITEM KNIGHT -- CONFIG MS if (getPlayerLevel(cid) == 8) then if (getPlayerVocation(cid) == 1 and item.itemid == item1) then doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, getPlayerVocation(cid)+4) doPlayerSay(cid, "You are promoted to ".. getPlayerVocationName(cid) .."!", TALKTYPE_MONSTER_SAY) doSendMagicEffect(getPlayerPosition(cid),10) else doPlayerSay(cid, "To use it, you need be a master sorcerer.", TALKTYPE_MONSTER_SAY) end else doPlayerSay(cid, "You need level 8 to do it!", TALKTYPE_MONSTER_SAY) end -- CONFIG ED if (getPlayerLevel(cid) == 8) then if (getPlayerVocation(cid) == 2 and item.itemid == item2) then doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, getPlayerVocation(cid)+4) doPlayerSay(cid, "You are promoted to ".. getPlayerVocationName(cid) .."!", TALKTYPE_MONSTER_SAY) doSendMagicEffect(getPlayerPosition(cid),10) else doPlayerSay(cid, "To use it, you need be a elder druid.", TALKTYPE_MONSTER_SAY) end else doPlayerSay(cid, "You need level 8 to do it!", TALKTYPE_MONSTER_SAY) end -- CONFIG RP if (getPlayerLevel(cid) == 8) then if (getPlayerVocation(cid) == 3 and item.itemid == item3) then doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, getPlayerVocation(cid)+4) doPlayerSay(cid, "You are promoted to ".. getPlayerVocationName(cid) .."!", TALKTYPE_MONSTER_SAY) doSendMagicEffect(getPlayerPosition(cid),10) else doPlayerSay(cid, "To use it, you need be a royal paladin.", TALKTYPE_MONSTER_SAY) end else doPlayerSay(cid, "You need level 8 to do it!", TALKTYPE_MONSTER_SAY) end -- CONFIG EK if (getPlayerLevel(cid) == 8) then if (getPlayerVocation(cid) == 4 and item.itemid == item4) then doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, getPlayerVocation(cid)+4) doPlayerSay(cid, "You are promoted to ".. getPlayerVocationName(cid) .."!", TALKTYPE_MONSTER_SAY) doSendMagicEffect(getPlayerPosition(cid),10) else doPlayerSay(cid, "To use it, you need be a elite knight.", TALKTYPE_MONSTER_SAY) end else doPlayerSay(cid, "You need level 8 to do it!", TALKTYPE_MONSTER_SAY) end return true end action.xml <action itemid="ID ITEM MS" event="script" value="promoteitem.lua"/> <action itemid="ID ITEM ED" event="script" value="promoteitem.lua"/> <action itemid="ID ITEM RP" event="script" value="promoteitem.lua"/> <action itemid="ID ITEM EK" event="script" value="promoteitem.lua"/>
-
(Resolvido)[Pedido] Script de que troca vocação
@Kyllini Deixe me ver se entendi, você quer um script para 4 itens diferentes cada um só pode ser usado pela vocação certa e promove o cara. É isso?
-
(Resolvido)[Pedido] Script de que troca vocação
-- Created by egyptPOWER -- function onUse(cid, item, fromPosition, itemEx, toPosition) if (getPlayerLevel(cid) <= 8) then if (getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <=4) then doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, getPlayerVocation(cid)+4) doSendMagicEffect(getPlayerPosition(cid),10) doPlayerSay(cid, "You are promoted to ".. getPlayerVocationName(cid) .."!", TALKTYPE_MONSTER_SAY) else doPlayerSay(cid, "You already promoted.", TALKTYPE_MONSTER_SAY) end else doPlayerSay(cid, "You don\'t have level to do it.", TALKTYPE_MONSTER_SAY) return false end return true end Agora vai! Dei uma incrementada. Testei aqui e funcionou 100%
-
(Resolvido)[Pedido] Script de que troca vocação
-- Created by egyptPOWER -- function onUse(cid, item, fromPosition, itemEx, toPosition) if (getPlayerLevel(cid) <= 8) then if (getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <=4) then doRemoveItem(item.uid, 1) doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doPlayerSendTextMessage(cid, 20, "You are promoted to ".. getPlayerVocationName(cid) .."!") else doPlayerSendTextMessage(cid, 20, "You already promoted") end else doPlayerSendTextMessage(cid, 20, "You don\'t have level to do it.") end end Pode testar que agora vai funcionar!
-
(Resolvido)[Pedido] Script de que troca vocação
@Kyllini, manda aqui pra min seu vocations.xml por favor
-
[AJUDA] RME não abre versões do tibia 11.x+
Até onde sei, a única maneira de abrir este map, você seleciona o dat e spr do 10.98. Ao invés de abrir o map pelo Arquivo/Abrir, você vai Importar ele.
-
(Resolvido)[Pedido] Script de que troca vocação
@Kyllini Teste o script e posta o feedback ai! Abraço! Crie um arquivo lua dentro da sua pasta actions/scripts e cole este código. promoteitem.lua -- Created by egyptPOWER -- function onUse(cid, item, fromPosition, itemEx, toPosition) if (getPlayerLevel(cid) <= 8) then if (getPlayerVocation(cid) >= 5 and getPlayerVocation(cid) <=8) then doRemoveItem(item.uid, 1) doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doPlayerSendTextMessage(cid, 20, "You are promoted to ".. getPlayerVocationName(cid) .."!") else doPlayerSendTextMessage(cid, 20, "You don\'t have first promotion or you already promoted") end else doPlayerSendTextMessage(cid, 20, "You don\'t have level to do it.") end end Agora vá em sua actions.xml e adicione a seguinte linha: <action itemid="ID ITEM" event="script" value="promoteitem.lua"/> Em itemid="Coloque aqui o id do seu item"
-
como faço para roda , copilar o tibia ?
Só dar uma procurada bro!
-
[Pedido] Alguem me explica como fazer porta e chave? no otserv
@escorpiao92 Tentarei ser claro e breve. Primeiramente em seu map editor, vá até a porta desejada e adicione uma action ID nela que ainda não esteja sendo usada em seu servidor. Com isso essa já se torna uma porta locked. Agora você precisará escolher qual a maneira o player conseguirá a key, e nela, você deverá setar o action ID = ao da porta! Isso você também realiza pelo map editor. Digamos que você irá adquirir a chave em um baú de quest. Então você coloca a chave escolhida dentro do baú pelo seu map editor, e com duplo click, você abrirá as propriedades da chave, então você coloca a action ID "mesma da porta Não esqueça de colocar a action ID no baú para fazer que ele seja uma quest.
-
[PEDIDO] Action id para portas
@kmus1344 Clipa aqui o doors.lua dentro de sua actions e seu actions.xml
-
[PEDIDO] Action id para portas
@kmus1344 Vá em seu map editor e va até a porta que a key abrirá. coloque o mesmo action ID da key na porta e pronto!
-
(Resolvido)[Ajuda]Não modificar o css do meu site!
@meuklr Testa o seguinte, apague seus cookies, histórico... (dados de navegação)
-
Problema com sprites?!
Salve Tibiaking! Estou com problemas em minhas sprites, no map editor parece estar tudo ok, mas dentro do jogo acontece isso. Será que consigo resolver sem ter q editar o map inteiro?!
-
(Resolvido)iTem nao da atributos que coloquei
@theeross Pelo que pude perceber, o erro esta no seu movements. Coloque desta forma: <movevent type="Equip" itemid="11415" slot="head" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="11415" slot="head" event="function" value="onDeEquipItem"/>
-
(Resolvido)[PEDIDO] Remover itens do tile através da alavanca
Opa, testa agora meu bom function onUse(cid, item, frompos, item2, topos) -- POSIÇÃO DOS ALTARES -- altar1 = {x = 111, y = 111, z = 1, stackpos = 1} -- ALTAR 1 -- getaltar1 = getThingfromPos(altar1) altar2 = {x = 222, y = 222, z = 2, stackpos = 1} -- ALTAR 2 -- getaltar2 = getThingfromPos(altar2) altar3 = {x = 333, y = 333, z = 3, stackpos = 1} -- ALTAR 3 -- getaltar3 = getThingfromPos(altar2) altar4 = {x = 444, y = 444, z = 4, stackpos = 1} -- ALTAR 4 -- getaltar4 = getThingfromPos(altar3) altar5 = {x = 555, y = 555, z = 5, stackpos = 1} -- ALTAR 5 -- getaltar5 = getThingfromPos(altar4) altar6 = {x = 666, y = 666, z = 6, stackpos = 1} -- ALTAR 6 -- getaltar6 = getThingfromPos(altar6) switchUID= 10102 -- UID da Alavanca switchID = 1945 -- ID da Alavanca switch2ID = 1946 -- ID da Alavanca após utilizada item1 = 1111 -- Item de sacrificio 1 item2 = 1111 -- Item de sacrificio 2 item3 = 1111 -- Item de sacrificio 3 item4 = 1111 -- Item de sacrificio 4 item5 = 1111 -- Item de sacrificio 5 item6 = 1111 -- Item de sacrificio 6 tpto = {x = 111, y = 111, z = 1, stackpos = 1} -- Aonde o player será teleportado -- if item.uid == switchUID and item.itemid == switchID and getaltar1.itemid == item1 and getaltar2.itemid == item2 and getaltar3.itemid == item3 and getaltar4.itemid == item4 and getaltar5.itemid == item5 and getaltar6.itemid == item6 then doSendMagicEffect(cid, 2) doTeleportThing(cid, tpto) doSendMagicEffect(tpto, 10) doRemoveItem(getaltar1.uid, 1) doRemoveItem(getaltar2.uid, 1) doRemoveItem(getaltar3.uid, 1) doRemoveItem(getaltar4.uid, 1) doRemoveItem(getaltar5.uid, 1) doRemoveItem(getaltar6.uid, 1) elseif item.uid == switchUID and item.itemid == switch2ID then doTransformItem(item.uid, item.itemid-1) else doPlayerSendCancel(cid, "Desculpe, você precisa colocar os items corretos nos altares.") end return true end !
-
Como Add stone em poketibia (Help)
@Dine Me envie o seu arquivo evolution.lua dentro da pasta actions/scripts
-
Erro Script
@perfollgustavo Você sabe dizer em qual momento isso aconteceu? Após você adicionar um script específico ou em alguma execução dentro do servidor?!
-
(Resolvido)[PEDIDO] Remover itens do tile através da alavanca
Testa ai bro. Cria um arquivo com nome que desejar dentro da sua pasta data/actions/scripts/... exemplo.lua -- Made by egyptPOWER - www.tibiaking.com -- function onUse(cid, item, frompos, item2, topos) -- POSIÇÃO DOS ALTARES -- altar1 = {x = 111, y = 111, z = 1, stackpos = 1} -- ALTAR 1 -- getaltar1 = getThingfromPos(altar1) altar2 = {x = 222, y = 222, z = 2, stackpos = 1} -- ALTAR 2 -- getaltar2 = getThingfromPos(altar2) altar3 = {x = 333, y = 333, z = 3, stackpos = 1} -- ALTAR 3 -- getaltar3 = getThingfromPos(altar2) altar4 = {x = 444, y = 444, z = 4, stackpos = 1} -- ALTAR 4 -- getaltar4 = getThingfromPos(altar3) altar5 = {x = 555, y = 555, z = 5, stackpos = 1} -- ALTAR 5 -- getaltar5 = getThingfromPos(altar4) altar6 = {x = 666, y = 666, z = 6, stackpos = 1} -- ALTAR 6 -- getaltar6 = getThingfromPos(altar6) switchUID= 10102 -- UID da Alavanca switchID = 1945 -- ID da Alavanca switch2ID = 1946 -- ID da Alavanca após utilizada item1 = 1111 -- Item de sacrificio 1 item2 = 1111 -- Item de sacrificio 2 item3 = 1111 -- Item de sacrificio 3 item4 = 1111 -- Item de sacrificio 4 item5 = 1111 -- Item de sacrificio 5 item6 = 1111 -- Item de sacrificio 6 tpto = {x = 111, y = 111, z = 1, stackpos = 1} -- Aonde o player será teleportado -- if item.uid == switchUID and item.itemid == switchID and getaltar1.itemid == item1 and getaltar2.itemid == item2 and getaltar3.itemid == item3 and getaltar4.itemid == item4 and getaltar5.itemid == item5 and getaltar6.itemid == item6 then doSendMagicEffect(cid, 2) doTeleportThing(cid, tpto) doSendMagicEffect(tpto, 10) doRemoveItem(getaltar1.uid, 1) doRemoveItem(getaltar2.uid, 1) doRemoveItem(getaltar3.uid, 1) doRemoveItem(getaltar4.uid, 1) doRemoveItem(getaltar5.uid, 1) doRemoveItem(getaltar6.uid, 1) elseif item.uid == switchUID and item.itemid == switch2ID then doTransformItem(item.uid, item.itemid-1) else doPlayerSendCancel(cid, "Desculpe, você precisa colocar os items corretos nos altares.") end return false return true end Em actions XML você vai adicionar <action uniqueid="1111" script="exemplo.lua"/> Aonde é "1111" é o uniqueID da alavanca. Espero ter ajudado
-
[Como fazer] Modal Window TFS 1.0+
O meu é, porém estou usando uma downgrade 7.72 https://github.com/brewsterl/RealOTX-7.72 Uso otclient Será que funciona?
-
[Como fazer] Modal Window TFS 1.0+
Como posso saber olhando minhas sources se meu servidor tem esse sistema implementado?
-
NPC que Vende Bps de MF e Blank
@Zzyzx No caso da mana fluid, não teria que ter algum numero a mais que indique que o fluido do vial e o mana fluid? Assim como ela é vendida separada, nesse caso, o numero 7 representa o fluid não?: shopModule:addBuyableItem({'mana'}, 2006, 50, 7, 'mana fluid') E deu também um erro ao abrir o exe.
-
NPC que Vende Bps de MF e Blank
Pessoal, preciso de ajuda com um NPC que estou editando. Gostaria de que ele vendesse BPs de Mana fluid e Blank runes. Ele é do OThire 0.0.3. Alguem pode me ajudar? Ai vai o script do npc: dofile(getDataDir() .. 'npc/scripts/lib/greeting.lua') local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions 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 shopModule = ShopModule:new() npcHandler:addModule(shopModule) shopModule:addBuyableItem({'life'}, 2006, 60, 10, 'life fluid') shopModule:addBuyableItem({'mana'}, 2006, 55, 7, 'mana fluid') shopModule:addBuyableItem({'spellbook'}, 2175, 150) shopModule:addBuyableItem({'blank rune'}, 2260, 10, 'blank rune') shopModule:addBuyableItem({'wand of cosmic energy'}, 2189, 10000) shopModule:addBuyableItem({'wand of plague'}, 2188, 5000) shopModule:addBuyableItem({'wand of dragonbreath'}, 2191, 1000) shopModule:addBuyableItem({'wand of vortex'}, 2190, 500) shopModule:addBuyableItem({'moonlight rod'}, 2186, 1000) shopModule:addBuyableItem({'volcanic rod'}, 2185, 5000) shopModule:addBuyableItem({'snakebite rod'}, 2182, 500) shopModule:addBuyableItem({'quagmire rod'}, 2181, 10000) shopModule:addBuyableItem({'tempest rod'}, 2183, 15000) shopModule:addBuyableItem({'wand of inferno'}, 2187, 15000) function creatureSayCallback(cid, type, msg) msg = string.lower(msg) if(npcHandler.focus ~= cid) then return false end if msgcontains(msg, 'vial') or msgcontains(msg, 'deposit') or msgcontains(msg, 'flask') then npcHandler:say("I will pay you 5 gold for every empty vial. Ok?", 1) talk_state = 857 elseif talk_state == 857 and msgcontains(msg, 'yes') then if sellPlayerEmptyVials(cid) == true then npcHandler:say("Here's your money!", 1) talk_state = 0 else npcHandler:say("You don't have any empty vials!", 1) talk_state = 0 end end if getPlayerStorageValue(cid, 999) == -1 and msgcontains(msg, 'rod') or getPlayerStorageValue(cid, 999) == -1 and msgcontains(msg, 'Rod') or getPlayerStorageValue(cid, 999) == -1 and msgcontains(msg, 'wand') or getPlayerStorageValue(cid, 999) == -1 and msgcontains(msg, 'Wand') then if getPlayerStorageValue(cid, 999) == -1 then if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 then doPlayerAddItem(cid,2190,1) npcHandler:say('Here\'s your wand!', 1) setPlayerStorageValue(cid, 999, 1) elseif getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 then doPlayerAddItem(cid,2182,1) npcHandler:say('Here\'s your rod!', 1) setPlayerStorageValue(cid, 999, 1) elseif getPlayerVocation(cid) < 1 or getPlayerVocation(cid) > 6 then npcHandler:say('I\'m sorry, but you\'re neither sorcerer nor druid!', 1) setPlayerStorageValue(cid, 999, 1) elseif getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 4 then npcHandler:say('I\'m sorry, but you\'re neither sorcerer nor druid!', 1) setPlayerStorageValue(cid, 999, 1) end talk_state = 0 end elseif msgcontains(msg, 'rod') or msgcontains(msg, 'Rod') then npcHandler:say("Rods can be wielded by druids only and have a certain level requirement. There are five different rods, would you like to hear about them?", 1) talk_state = 7613 elseif talk_state == 7613 and msgcontains(msg, 'yes') or talk_state == 7613 and msgcontains(msg, 'Yes') then npcHandler:say("The names of the rods are 'Snakebite Rod', 'Moonlight Rod', 'Volcanic Rod', 'Quagmire Rod', and 'Tempest Rod'. Which one would you like to buy?", 1) talk_state = 7613 elseif msgcontains(msg, 'wand') or msgcontains(msg, 'Wand') then npcHandler:say("Wands can be wielded by sorcerers only and have a certain level requirement. There are five different wands, would you like to hear about them?", 1) talk_state = 7624 elseif talk_state == 7624 and msgcontains(msg, 'yes') or talk_state == 7624 and msgcontains(msg, 'Yes') then npcHandler:say("The names of the wands are 'Wand of Vortex', 'Wand of Dragonbreath', 'Wand of Plague', 'Wand of Cosmic Energy' and 'Wand of Inferno'. Which one would you like to buy?", 1) talk_state = 7624 end return true end keywordHandler:addKeyword({'name'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm Xodet, the owner of this shop."}) keywordHandler:addKeyword({'job'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm sorcerer and trade with all kinds of magic items."}) keywordHandler:addKeyword({'sorcerer'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "There is a sorcerer guild in Thais. Just go in the east of the town, it is easly to find."}) keywordHandler:addKeyword({'offer'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm selling life and mana fluids, runes, wands, rods and spellbooks."}) keywordHandler:addKeyword({'good'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm selling life and mana fluids, runes, wands, rods and spellbooks."}) keywordHandler:addKeyword({'have'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm selling life and mana fluids, runes, wands, rods and spellbooks."}) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
OTX 7.72 PROBLEMA
Estou com um servidor online já a alguns dias, e durante este período pude descobrir inúmeros bugs. Só que tem um bug, que esta me encomodando e que poder prejudicar muito o andamento do servidor. O ban system por PK não está funcionando, o cara pega 100 frags, fica red skull, mas ban ele não toma. Já mexi muito no config.lua do servidor pra tentar ajustar isso, mas todas as vezes foram frustradas. Irei colocar aqui meu config.lua para que possam me ajudar, mas se precisarem de outro arquivo, postarei de imediato. Servidor utilizado: Config.lua -- Owner Data ownerName = "" ownerEmail = "" url = "" location = "USA" -- Messages motd = "Welcome to " serverName = "" loginMessage = "Welcome to " displayGamemastersWithOnlineCommand = false -- MySql sqlType = "mysql" sqlHost = "127.0.0.1" sqlPort = 3306 sqlUser = "root" sqlPass = "" sqlDatabase = "" sqlFile = "" sqlKeepAlive = 0 mysqlReadTimeout = 10 mysqlWriteTimeout = 10 mysqlReconnectionAttempts = 5 encryptionType = "sha1" -- World / Ip / Port worldId = 0 ip = "" worldType = "open" bindOnlyGlobalAddress = false loginPort = 7171 gamePort = "7172" statusPort = 7171 loginOnlyWithLoginServer = false -- Account manager accountManager = false namelockManager = true newPlayerChooseVoc = true newPlayerSpawnPosX = 32097 newPlayerSpawnPosY = 32219 newPlayerSpawnPosZ = 7 newPlayerTownId = 2 newPlayerLevel = 1 newPlayerMagicLevel = 0 generateAccountNumber = false generateAccountSalt = false -- Limits on frags / Time fragsLimit = 6 * 60 * 60 fragsSecondLimit = 0 fragsThirdLimit = 0 -- Red Skull Config fragsToRedSkull = 4 fragsSecondToRedSkull = 0 fragsThirdToRedSkull = 0 redSkullLength = 1 * 24 * 60 * 60 -- Black Skull Config fragsToBlackSkull = 6 fragsSecondToBlackSkull = 0 fragsThirdToBlackSkull = 0 blackSkulledDeathHealth = 40 blackSkulledDeathMana = 0 blackSkullLength = 6 * 24 * 60 * 60 useBlackSkull = false -- Banishment Config -- killsBanLength works only if useBlackSkull option is disabled. notationsToBan = 3 warningsToFinalBan = 4 warningsToDeletion = 5 banLength = 1 * 24 * 60 * 60 killsBanLength = 1 * 24 * 60 * 60 finalBanLength = 3 * 24 * 60 * 60 ipBanLength = 1 * 24 * 60 * 60 fragsToBanishment = 8 broadcastBanishments = false -- Battle -- NOTE: showHealth/ManaChangeForMonsters inherites from showHealth/ManaChange. protectionLevel = 0 pvpTileIgnoreLevelAndVocationProtection = false allowFightback = true pzLocked = 60 * 1000 huntingDuration = 60 * 1000 criticalHitMultiplier = 1 displayCriticalHitNotify = false removeWeaponAmmunition = true removeWeaponCharges = true removeRuneCharges = true whiteSkullTime = 15 * 60 * 1000 advancedFragList = false useFragHandler = false noDamageToSameLookfeet = false showHealthChange = false showManaChange = false showHealthChangeForMonsters = false showManaChangeForMonsters = false fieldOwnershipDuration = 5 * 1000 stopAttackingAtExit = true loginProtectionPeriod = 1 * 1000 deathLostPercent = 10 stairhopDelay = 0 * 1000 pushCreatureDelay = 0.5 * 1000 deathContainerId = 1987 gainExperienceColor = 215 addManaSpentInPvPZone = true recoverManaAfterDeathInPvPZone = true squareColor = 0 -- RSA -- NOTE: These should not be changed unless you know what your doing! -- Prime1 - known as p; Prime2 - known as q; Public - known as e; -- Modulus - known as n; Private - known as d. -- How make custom client with custom RSA Key: http://vapus.net/customclient rsaPrime1 = "14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113" rsaPrime2 = "7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101" rsaPublic = "65537" rsaModulus = "109120132967399429278860960508995541528237502902798129123468757937266291492576446330739696001110603907230888610072655818825358503429057592827629436413108566029093628212635953836686562675849720620786279431090218017681061521755056710823876476444260558147179707119674283982419152118103759076030616683978566631413" rsaPrivate = "46730330223584118622160180015036832148732986808519344675210555262940258739805766860224610646919605860206328024326703361630109888417839241959507572247284807035235569619173792292786907845791904955103601652822519121908367187885509270025388641700821735345222087940578381210879116823013776808975766851829020659073" -- OTX Server Extras Features -- Battle optionalWarAttackableAlly = true fistBaseAttack = 7 criticalHitChance = 7 noDamageToGuildMates = false -- if true then no damage, if false then damage noDamageToPartyMembers = false -- if true then no damage, if false then damage -- Rook System rookLevelTo = 5 rookLevelToLeaveRook = 8 rookTownId = 12 useRookSystem = false -- Paralyze delay paralyzeDelay = 1500 -- GUI premiumDaysToAddByGui = 0 -- Depot and Miscellaneous -- set playerFollowExhaust to 2000 if someone causes lags and kicks by following unreachable creatures too often useCapacity = true defaultDepotSize = 1000 defaultDepotSizePremium = 3000 enableProtectionQuestForGM = true cleanItemsInMap = true playerFollowExhaust = 2000 -- 8.7x + config monsterSpawnWalkback = true allowBlockSpawn = true classicEquipmentSlots = true -- Summons and monsters NoShareExpSummonMonster = true -- Others enableLootBagDisplay = false attackImmediatelyAfterLoggingIn = false exhaustionNPC = true exhaustionInSecondsNPC = 0.5 -- Old Configs tileHeightBlock = true useStamina = false autoStack = true runesHitTopCreature = false charlistBasicInfo = true classicDamageOnWeapons = true -- ConfigSpells noAttackHealingSimultaneus = true enableCooldowns = true -- Connection config loginTries = 20 retryTimeout = 5 * 1000 loginTimeout = 60 * 1000 maxPlayers = 500 displayOnOrOffAtCharlist = false onePlayerOnlinePerAccount = true allowClones = 0 statusTimeout = 1000 replaceKickOnLogin = true forceSlowConnectionsToDisconnect = false premiumPlayerSkipWaitList = true packetsPerSecond = 50 -- Deathlist deathListEnabled = true deathListRequiredTime = 0 * 60 * 1000 deathAssistCount = 2 maxDeathRecords = 2 multipleNames = false -- Guilds -- NOTE: externalGuildWarsManagement supports Automatic Account Creator(webpage or whatever you want) externalGuildWarsManagement = false ingameGuildManagement = false levelToFormGuild = 20 premiumDaysToFormGuild = 7 guildNameMinLength = 4 guildNameMaxLength = 20 -- Houses buyableAndSellableHouses = true houseNeedPremium = false bedsRequirePremium = false levelToBuyHouse = 50 housesPerAccount = 1 houseRentAsPrice = false housePriceAsRent = false housePriceEachSquare = 1000 houseRentPeriod = "weekly" houseCleanOld = 7 * 24 * 60 * 60 guildHalls = true houseSkipInitialRent = true houseProtection = true -- Item usage timeBetweenActions = 200 timeBetweenExActions = 500 timeBetweenCustomActions = 500 checkCorpseOwner = false maximumDoorLevel = 999 tradeLimit = 100 canOnlyRopePlayers = false -- Map -- NOTE: storeTrash costs more memory, but will perform alot faster cleaning. -- houseDataStorage usage may be found at how-use-internal-functions.log mapAuthor = "Mattyx14" randomizeTiles = true houseDataStorage = "binary-tilebased" storeTrash = true cleanProtectedZones = true mapName = "world.otbm" -- Mailbox mailMaxAttempts = 5 mailBlockPeriod = 30 * 60 * 1000 mailAttemptsFadeTime = 5 * 60 * 1000 mailboxDisabledTowns = "12" -- Example disable rook depot (temple) "4" -- mailboxDisabledTowns = "4" -- Startup -- For Linux use "-1" is default -- daemonize works only on *nix, same as niceLevel daemonize = false defaultPriority = "higher" niceLevel = 5 serviceThreads = 1 coresUsed = "-1" startupDatabaseOptimization = true removePremiumOnInit = true confirmOutdatedVersion = false skipItemsVersionCheck = false -- Muted buffer maxMessageBuffer = 0 -- Miscellaneous dataDirectory = "data/" logsDirectory = "data/logs/" disableOutfitsForPrivilegedPlayers = false bankSystem = true spellNameInsteadOfWords = false emoteSpells = false unifiedSpells = true promptExceptionTracerErrorBox = true storePlayerDirection = false savePlayerData = true monsterLootMessage = 1 monsterLootMessageType = 22 separateViplistPerCharacter = false vipListDefaultLimit = 30 vipListDefaultPremiumLimit = 100 -- Outfits allowChangeOutfit = true allowChangeColors = true allowChangeAddons = true addonsOnlyPremium = true -- Ghost mode ghostModeInvisibleEffect = true ghostModeSpellEffects = true -- Limits idleWarningTime = 14 * 60 * 1000 idleKickTime = 15 * 60 * 1000 expireReportsAfterReads = 1 playerQueryDeepness = -1 protectionTileLimit = 80 houseTileLimit = 50 tileLimit = 80 -- Premium-related freePremium = false premiumForPromotion = false updatePremiumStateAtStartup = true -- Blessings blessings = true blessingOnlyPremium = false blessingReductionBase = 30 blessingReductionDecrement = 5 eachBlessReduction = 8 useFairfightReduction = true pvpBlessingThreshold = 40 fairFightTimeRange = 60 -- Rates experienceStages = true rateExperience = 100.0 rateExperienceFromPlayers = 0 levelToOfflineTraining = 8 rateSkill = 5 rateSkillOffline = 2.0 rateMagic = 3 rateMagicOffline = 1.5 rateLoot = 5 rateSpawnMin = 1 rateSpawnMax = 2 formulaLevel = 5.0 formulaMagic = 1.0 -- Monster rates rateMonsterHealth = 1.0 rateMonsterMana = 1.0 rateMonsterAttack = 1.0 rateMonsterDefense = 1.0 -- Experience from players minLevelThresholdForKilledPlayer = 0.9 maxLevelThresholdForKilledPlayer = 1.1 -- Stamina System rateStaminaLoss = 0 rateStaminaGain = 3 rateStaminaThresholdGain = 12 staminaRatingLimitTop = 40 * 60 staminaRatingLimitBottom = 14 * 60 staminaLootLimit = 14 * 60 rateStaminaAboveNormal = 1.1 rateStaminaUnderNormal = 1.1 staminaThresholdOnlyPremium = true -- Party System experienceShareRadiusX = 30 experienceShareRadiusY = 30 experienceShareRadiusZ = 1 experienceShareLevelDifference = 2 / 3 extraPartyExperienceLimit = 10 extraPartyExperiencePercent = 10 experienceShareActivity = 2 * 60 * 1000 -- Global save globalSaveEnabled = false globalSaveHour = 8 globalSaveMinute = 0 shutdownAtGlobalSave = true cleanMapAtGlobalSave = false -- Spawns minRateSpawn = 1 maxRateSpawn = 1 deSpawnRange = 6 deSpawnRadius = 999999 -- Summons maxPlayerSummons = 2 teleportAllSummons = false teleportPlayerSummons = false -- Logs disableLuaErrors = false adminLogs = true displayPlayersLogging = true prefixChannelLogs = "" runFile = "server/run.log" outputLog = "server/out.log" truncateLogOnStartup = false logPlayersStatements = false -- Manager -- NOTE: managerPassword left blank disables manager. managerPort = 7171 managerLogs = true managerPassword = "" managerLocalhostOnly = true managerConnectionsLimit = 1 -- Admin -- NOTE: adminPassword left blank disables manager. -- Set to anything if you set adminRequireLogin to false. -- adminEncryption available options: rsa1024xtea; -- remember to set correct data! adminPort = 7171 adminPassword = "" adminLocalhostOnly = true adminConnectionsLimit = 1 adminRequireLogin = true adminEncryption = "" adminEncryptionData = "" -- Don't edit use at your own risk saveGlobalStorage = false bufferMutedOnSpellFailure = false
-
Fluids
Olá, preciso de ajuda com um script. Quando utilizo a mana fluid e ando com meu personagem, muitas vezes ela dropa o liquido no chao e o mana fluid da bp se torna um vial... como de costume. Gostaria de remover essa função, assim quando a mf for usada no chao, simplesmente nada acontece. Segue meu fluids.lua local exhaust = createConditionObject(CONDITION_EXHAUSTED) setConditionParam(exhaust, CONDITION_PARAM_TICKS, 500) local drunk = createConditionObject(CONDITION_DRUNK) setConditionParam(drunk, CONDITION_PARAM_TICKS, 120000) local poison = createConditionObject(CONDITION_POISON) setConditionParam(poison, CONDITION_PARAM_DELAYED, 10) addDamageCondition(poison, 40, 4000, -3) function onUse(cid, item, frompos, item2, topos) ITEMCONTAINER = {2562, 2571, 2572, 2573, 2574, 2575, 2576, 2577, 2032, 2033, 3941, 3942, 2005, 2006, 2007, 2008, 2009, 2011, 2012, 2013, 2014, 2015, 2023, 2031, 2034, 1775} GAINWATER = {1771, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4664, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825, 490, 4828, 4829, 4830, 4831, 1368, 1369} GAINLEMONADE = {1776} GAINBEER = {1772} GAINWINE = {1773, 1778, 1779, 1780, 1781, 1782, 1783, 1784, 1785} GAINSLIME = {2807, 2848, 2857, 2897, 2899, 2908, 3004, 3010, 3011, 3052, 3733, 3734, 3735, 3736, 4260, 4280, 4296, 4320, 4326, 4393} if(hasCondition(cid, CONDITION_EXHAUSTED) == TRUE) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end --switch vial container-- if item.type >= 1 and isInArray(ITEMCONTAINER, item2.itemid) == 1 then if item2.type == 0 then doChangeTypeItem(item2.uid, item.type) doChangeTypeItem(item.uid, 0) else doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, topos) doDecayItem(splash.uid) end ------------------------- --None-- elseif item.type == 0 then --None if isInArray(GAINWATER, item2.itemid) == 1 or item2.itemid >= 4632 and item2.itemid <= 4663 then doChangeTypeItem(item.uid, 1) elseif isInArray(GAINSLIME, item2.itemid) == 1 then doChangeTypeItem(item.uid, 4) elseif item2.itemid > 2806 and item2.itemid < 3132 or item2.itemid >= 4251 and item2.itemid <= 4327 then if isInArray(GAINSLIME, item2.itemid) == 1 then else doChangeTypeItem(item.uid, 2) end elseif isInArray(GAINLEMONADE, item2.itemid) == 1 then doChangeTypeItem(item.uid, 5) elseif isInArray(GAINBEER, item2.itemid) == 1 then doChangeTypeItem(item.uid, 3) elseif isInArray(GAINWINE, item2.itemid) == 1 then doChangeTypeItem(item.uid, 15) end ------ --Water-- elseif item.type == 1 then --Water if item2.uid == cid then doPlayerSay(cid, "Gulp.", 1) if getPlayerStorageValue(cid, 253) == 1 and item.itemid == 2006 then doRemoveItem(item.uid) else doChangeTypeItem(item.uid, 0) end else doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, topos) doDecayItem(splash.uid) end ------ --Blood-- elseif item.type == 2 then --Blood if item2.uid == cid then doPlayerSay(cid, "Gulp.", 1) if getPlayerStorageValue(cid, 253) == 1 and item.itemid == 2006 then doRemoveItem(item.uid) else doChangeTypeItem(item.uid, 0) end elseif item2.actionid == 4107 then doChangeTypeItem(item.uid, 0) doTeleportThing(cid,{x=32791, y=32334, z=10}) doSendMagicEffect({x=32791, y=32334, z=10},12) else doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, topos) doDecayItem(splash.uid) end ------ --Beer-- elseif item.type == 3 then --Beer if item2.uid == cid then doPlayerSay(cid, "Aah...", 1) doAddCondition(cid, drunk) if getPlayerStorageValue(cid, 253) == 1 and item.itemid == 2006 then doRemoveItem(item.uid) else doChangeTypeItem(item.uid, 0) end else doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, topos) doDecayItem(splash.uid) end ------ --Slime-- elseif item.type == 4 then --Slime if item2.uid == cid then doPlayerSay(cid, "Urgh!", 1) doAddCondition(cid, poison) if getPlayerStorageValue(cid, 253) == 1 and item.itemid == 2006 then doRemoveItem(item.uid) else doChangeTypeItem(item.uid, 0) end else doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, topos) doDecayItem(splash.uid) end ------ --Lemonade-- elseif item.type == 5 then --Lemonade if item2.uid == cid then doPlayerSay(cid, "Mmmh.", 1) if getPlayerStorageValue(cid, 253) == 1 and item.itemid == 2006 then doRemoveItem(item.uid) else doChangeTypeItem(item.uid, 0) end else doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, topos) doDecayItem(splash.uid) end ------ --Milk-- elseif item.type == 6 then --Milk if item2.uid == cid then doPlayerSay(cid, "Mmmh.", 1) if getPlayerStorageValue(cid, 253) == 1 and item.itemid == 2006 then doRemoveItem(item.uid) else doChangeTypeItem(item.uid, 0) end else doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, topos) doDecayItem(splash.uid) end ------ --Mana-- elseif item.type == 7 then --Mana if item2.uid == cid then new_mana = math.random(40, 70) doPlayerAddMana(cid, new_mana) doSendMagicEffect(topos, 12) doPlayerSay(cid, "Aaaah...", 1) doAddCondition(cid, exhaust) doChangeTypeItem(item.uid, 0) DidUseMana(cid, frompos, topos) else doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, topos) doDecayItem(splash.uid) end ------ --???-- elseif item.type == 8 then -- ?. doChangeTypeItem(item.uid, 0) ------ --???-- elseif item.type == 9 then --Water?. doChangeTypeItem(item.uid, 0) ------ elseif item.type == 10 then --Life if item2.uid == cid then new_life = math.random(55, 105) doPlayerAddHealth(cid, new_life) doSendMagicEffect(topos, 12) doPlayerSay(cid, "Aaaah...", 1) doAddCondition(cid, exhaust) doChangeTypeItem(item.uid, 0) else doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, topos) doDecayItem(splash.uid) end ------ --oil-- elseif item.type == 11 then --Oil if item2.uid == cid then doPlayerSay(cid, "Urgh!", 1) if getPlayerStorageValue(cid, 253) == 1 and item.itemid == 2006 then doRemoveItem(item.uid) else doChangeTypeItem(item.uid, 0) end else doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, topos) doDecayItem(splash.uid) end ------ --???-- elseif item.type == 12 then --Smile?. doChangeTypeItem(item.uid, 0) ------ --Urine-- elseif item.type == 13 then --Urine if item2.uid == cid then doPlayerSay(cid, "Urgh!", 1) if getPlayerStorageValue(cid, 253) == 1 and item.itemid == 2006 then doRemoveItem(item.uid) else doChangeTypeItem(item.uid, 0) end else doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, topos) doDecayItem(splash.uid) end ------ --???-- elseif item.type == 14 then -- ?. doChangeTypeItem(item.uid, 0) ------ --Wine-- elseif item.type == 15 then --Wine if item2.uid == cid then doPlayerSay(cid, "Aah...", 1) doAddCondition(cid, drunk) if getPlayerStorageValue(cid, 253) == 1 and item.itemid == 2006 then doRemoveItem(item.uid) else doChangeTypeItem(item.uid, 0) end else doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, topos) doDecayItem(splash.uid) end ------ end return 1 end
- Scripter Profissional