Postado Julho 3, 2019 5 anos Galera bom dia, estou com o seguinte problema minha porcentagem no config.lua no deathlose ta 1% dai se o player estiver com bless ele não perde nada de xp morrendo agora se ele estiver sem bless ele perde cerca de 10 lvls alguem pode ma ajudar ? meu bless.lua esta assim: Citar function getCost(level) if level <= 30 then return 2000*5 elseif level >= 120 then return 10000*5 else return ((level - 20) * 200 * 5) end end function onSay(cid, words, param) local p = Player(cid) local cost = getCost(getPlayerLevel(cid)) if(not(isPlayerPzLocked(cid))) then if(p:hasBlessing(1) and p:hasBlessing(2) and p:hasBlessing(3) and p:hasBlessing(4) and p:hasBlessing(5) and p:hasBlessing(6)) then p:sendCancelMessage("You have already been blessed by the gods.") return false end if(p:removeMoneyNpc(cost)) then for b = 1,6 do p:addBlessing(b) end p:getPosition():sendMagicEffect(50) p:sendTextMessage(19, "You have been blessed by the gods!") else p:sendCancelMessage("You need "..cost.." gold coins to buy all blessings.") end else p:sendCancelMessage("You can't buy bless, when you are in a battle.") end return false end
Postado Julho 3, 2019 5 anos veja no config.lua la tem a porcentagem da proteção de bless e de morte Editado Julho 3, 2019 5 anos por bpm91 (veja o histórico de edições)
Postado Julho 3, 2019 5 anos Autor 2 minutos atrás, bpm91 disse: -- Combat settings -- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced" worldType = "pvp" hotkeyAimbotEnabled = true protectionLevel = 6 killsToRedSkull = 60 killsToBlackSkull = 80 pzLocked = 40 * 1000 removeChargesFromRunes = false timeToDecreaseFrags = 60 * 60 * 1000 whiteSkullTime = 3 * 60 * 1000 stairJumpExhaustion = 2 * 1000 experienceByKillingPlayers = false expFromPlayersLevelRange = 75 -- Connection Config -- NOTE: maxPlayers set to 0 means no limit ip = "127.0.0.1" bindOnlyGlobalAddress = false loginProtocolPort = 7171 gameProtocolPort = 7172 statusProtocolPort = 7171 maxPlayers = 2000 motd = "Bem vindo" -- motd = "Bem vindo" onePlayerOnlinePerAccount = false allowClones = false serverName = "" statusTimeout = 5 * 1000 replaceKickOnLogin = true maxPacketsPerSecond = 50 enableLiveCasting = true liveCastPort = 7173 -- Store in-Game Config coinPacketSize = 1 coinImagesURL = "" -- PVP-Expert Config expertPvp = false -- Depot Limit freeDepotLimit = 2000 premiumDepotLimit = 10000 depotBoxes = 17 -- Limits maxTileGround = 256 maxItem = 10000 maxContainer = 300 -- Deaths -- NOTE: Leave deathLosePercent as -1 if you want to use the default -- death penalty formula. For the old formula, set it to 10. For -- no skill/experience loss, set it to 0. deathLosePercent = -1 -- Houses -- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality housePriceEachSQM = 1000 houseRentPeriod = "weekly" -- Item Usage timeBetweenActions = 200 timeBetweenExActions = 1000 -- Map -- NOTE: set mapName WITHOUT .otbm at the end mapName = "avast" mapAuthor = "Cipsoft" -- Market marketOfferDuration = 30 * 24 * 60 * 60 premiumToCreateMarketOffer = false checkExpiredMarketOffersEachMinutes = 60 maxMarketOffersAtATimePerPlayer = 100 -- MySQL mysqlHost = "127.0.0.1" mysqlUser = "root" mysqlPass = "" mysqlDatabase = "" mysqlPort = 3306 passwordType = "sha1" mysqlSock = "" -- Misc. allowChangeOutfit = true freePremium = true kickIdlePlayerAfterMinutes = 20 maxMessageBuffer = 4 emoteSpells = true classicEquipmentSlots = false classicAttackSpeed = true allowWalkthrough = false -- Rates -- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml rateExp = 1 rateSkill = 75 rateLoot = 10 rateMagic = 25 rateSpawn = 1 -- Monsters deSpawnRange = 2 deSpawnRadius = 50 -- Stamina staminaSystem = true -- Scripts warnUnsafeScripts = true convertUnsafeScripts = true -- Startup -- NOTE: defaultPriority only works on Windows and sets process -- priority, valid values are: "normal", "above-normal", "high" defaultPriority = "high" startupDatabaseOptimization = true -- Status server information ownerName = "Globaiak Custom" ownerEmail = "" url = "http://www..com" location = "Brasil" aonde pode me especificar ? Editado Julho 3, 2019 5 anos por Jhonjhon775 (veja o histórico de edições)
Postado Julho 3, 2019 5 anos Autor 14 minutos atrás, bpm91 disse: Veja esse link nao resolveu ainda com o bless ele nao perde level so perde se estiver sem bless
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.