Tudo que Thenebrozo postou
-
CHARACTER INFOS
Funcionou cara muito obrigado!!!!!
-
ERRO SQL DATABASE
Cara obrigado tipo eu já sei colocar online se que quando eu fui colocar ele apareceu o erro la em cima do post mas mesmo assim obrigado vou da uma olha nesses tópicos que me passou, talvez algum deles possa me ajudar
-
ERRO SQL DATABASE
mysql, queria criar um site para ele e adicionar coisas que roda em mysql
-
ERRO SQL DATABASE
Alguém pode me ajuda fui colocar meu servidor on mais apareceu esse erro CONFIG.LUA accountManager = true namelockManager = true newPlayerChooseVoc = true newPlayerSpawnPosX = 160 newPlayerSpawnPosY = 54 newPlayerSpawnPosZ = 7 newPlayerTownId = 1 newPlayerLevel = 8 newPlayerMagicLevel = 0 generateAccountNumber = false generateAccountSalt = false useFragHandler = true redSkullLength = 30 * 24 * 60 * 60 blackSkullLength = 45 * 24 * 60 * 60 dailyFragsToRedSkull = 3 weeklyFragsToRedSkull = 5 monthlyFragsToRedSkull = 10 dailyFragsToBlackSkull = dailyFragsToRedSkull weeklyFragsToBlackSkull = weeklyFragsToRedSkull monthlyFragsToBlackSkull = monthlyFragsToRedSkull dailyFragsToBanishment = dailyFragsToRedSkull weeklyFragsToBanishment = weeklyFragsToRedSkull monthlyFragsToBanishment = monthlyFragsToRedSkull blackSkulledDeathHealth = 40 blackSkulledDeathMana = 0 useBlackSkull = true advancedFragList = false notationsToBan = 3 warningsToFinalBan = 4 warningsToDeletion = 5 banLength = 7 * 24 * 60 * 60 killsBanLength = 7 * 24 * 60 * 60 finalBanLength = 30 * 24 * 60 * 60 ipBanishmentLength = 1 * 24 * 60 * 60 broadcastBanishments = true maxViolationCommentSize = 200 violationNameReportActionType = 2 autoBanishUnknownBytes = false worldType = "open" protectionLevel = 1 pvpTileIgnoreLevelAndVocationProtection = true pzLocked = 60 * 1000 huntingDuration = 60 * 1000 criticalHitChance = 7 criticalHitMultiplier = 1 displayCriticalHitNotify = false removeWeaponAmmunition = true removeWeaponCharges = true removeRuneCharges = true whiteSkullTime = 15 * 60 * 1000 noDamageToSameLookfeet = false showHealingDamage = false showHealingDamageForMonsters = false fieldOwnershipDuration = 5 * 1000 stopAttackingAtExit = false loginProtectionPeriod = 10 * 1000 deathLostPercent = 10 stairhopDelay = 2 * 1000 pushCreatureDelay = 2 * 1000 deathContainerId = 1987 gainExperienceColor = 215 addManaSpentInPvPZone = true squareColor = 0 allowFightback = true fistBaseAttack = 7 worldId = 0 ip = "127.0.0.1" bindOnlyGlobalAddress = false loginPort = 7171 gamePort = 7172 loginTries = 10 retryTimeout = 5 * 1000 loginTimeout = 60 * 1000 maxPlayers = 1000 motd = "Welcome to Yurots 1.2!" displayOnOrOffAtCharlist = false onePlayerOnlinePerAccount = true allowClones = false serverName = "Yurots" loginMessage = "Welcome to Yurots 1.2!" statusTimeout = 5 * 60 * 1000 replaceKickOnLogin = true forceSlowConnectionsToDisconnect = false loginOnlyWithLoginServer = false premiumPlayerSkipWaitList = false sqlType = "mysql" sqlHost = "daniel" sqlPort = 3306 sqlUser = "root" sqlPass = "ygz5s1pv" sqlDatabase = "daniel" sqlFile = "mysql.sql" sqlKeepAlive = 0 mysqlReadTimeout = 10 mysqlWriteTimeout = 10 encryptionType = "sha1" deathListEnabled = true deathListRequiredTime = 1 * 60 * 1000 deathAssistCount = 19 maxDeathRecords = 5 ingameGuildManagement = true levelToFormGuild = 8 premiumDaysToFormGuild = 0 guildNameMinLength = 4 guildNameMaxLength = 20 highscoreDisplayPlayers = 15 updateHighscoresAfterMinutes = 60 buyableAndSellableHouses = true houseNeedPremium = true bedsRequirePremium = true levelToBuyHouse = 1 housesPerAccount = 0 houseRentAsPrice = false housePriceAsRent = false housePriceEachSquare = 1000 houseRentPeriod = "never" houseCleanOld = 0 guildHalls = false timeBetweenActions = 200 timeBetweenExActions = 1000 hotkeyAimbotEnabled = true mapName = "test.otbm" mapAuthor = "Komic" randomizeTiles = true storeTrash = true cleanProtectedZones = true mailboxDisabledTowns = "" defaultPriority = "high" niceLevel = 5 coresUsed = "-1" startupDatabaseOptimization = true updatePremiumStateAtStartup = true confirmOutdatedVersion = false formulaLevel = 5.0 formulaMagic = 1.0 bufferMutedOnSpellFailure = false spellNameInsteadOfWords = false emoteSpells = false unifiedSpells = true allowChangeOutfit = true allowChangeColors = true allowChangeAddons = true disableOutfitsForPrivilegedPlayers = false addonsOnlyPremium = true dataDirectory = "data/" logsDirectory = "data/logs/" bankSystem = true displaySkillLevelOnAdvance = false promptExceptionTracerErrorBox = true maximumDoorLevel = 500 maxMessageBuffer = 4 tradeLimit = 100 separateVipListPerCharacter = false vipListDefaultLimit = 20 vipListDefaultPremiumLimit = 100 saveGlobalStorage = true useHouseDataStorage = false storePlayerDirection = false checkCorpseOwner = true monsterLootMessage = 3 monsterLootMessageType = 25 ghostModeInvisibleEffect = false ghostModeSpellEffects = true idleWarningTime = 14 * 60 * 1000 idleKickTime = 15 * 60 * 1000 reportsExpirationAfterReads = 1 playerQueryDeepness = 2 tileLimit = 0 protectionTileLimit = 0 houseTileLimit = 0 freePremium = false premiumForPromotion = true blessings = true blessingOnlyPremium = true blessingReductionBase = 30 blessingReductionDecrement = 5 eachBlessReduction = 8 experienceStages = false rateExperience = 50.0 rateExperienceFromPlayers = 0 rateSkill = 3.0 rateMagic = 3.0 rateLoot = 2.0 rateSpawn = 1 rateMonsterHealth = 1.0 rateMonsterMana = 1.0 rateMonsterAttack = 1.0 rateMonsterDefense = 1.0 minLevelThresholdForKilledPlayer = 0.9 maxLevelThresholdForKilledPlayer = 1.1 rateStaminaLoss = 1 rateStaminaGain = 3 rateStaminaThresholdGain = 12 staminaRatingLimitTop = 40 * 60 staminaRatingLimitBottom = 14 * 60 staminaLootLimit = 14 * 60 rateStaminaAboveNormal = 1.5 rateStaminaUnderNormal = 0.5 staminaThresholdOnlyPremium = true experienceShareRadiusX = 30 experienceShareRadiusY = 30 experienceShareRadiusZ = 1 experienceShareLevelDifference = 2 / 3 extraPartyExperienceLimit = 20 extraPartyExperiencePercent = 5 experienceShareActivity = 2 * 60 * 1000 globalSaveEnabled = false globalSaveHour = 8 globalSaveMinute = 0 shutdownAtGlobalSave = true cleanMapAtGlobalSave = false deSpawnRange = 2 deSpawnRadius = 50 maxPlayerSummons = 2 teleportAllSummons = false teleportPlayerSummons = false statusPort = 7171 ownerName = "LzO" ownerEmail = "" url = "http://google.com" location = "Brazil" displayGamemastersWithOnlineCommand = false displayPlayersLogging = true prefixChannelLogs = "" runFile = "" outputLog = "" truncateLogOnStartup = false managerPort = 7171 managerLogs = true managerPassword = "" managerLocalhostOnly = true managerConnectionsLimit = 1 adminPort = 7171 adminLogs = true adminPassword = "" adminLocalhostOnly = true adminConnectionsLimit = 1 adminRequireLogin = true adminEncryption = "" adminEncryptionData = ""
-
CHARACTER INFOS
Cara funcionou muito obrigado teria como vc faze isso para aprecer dodge e critical ?? e tipo como eu troco a cor das letras ? ta branco
-
CHARACTER INFOS
n sabe oq poderia ser n ? CARA TENTEI AQUI EM OUTRO MAPA FUNCIONOU SO QUE DEU ESSE ERRO SABE OQ PODE SER??? [GOD] has logged in. [Error - TalkAction Interface] data/talkactions/scripts/infos.lua:onSay Description: (luaGetCreatureMana) Creature not found [Error - TalkAction Interface] data/talkactions/scripts/infos.lua:onSay Description: data/talkactions/scripts/infos.lua:6: attempt to call a number value stack traceback: data/talkactions/scripts/infos.lua:6: in function <data/talkactions/scripts/infos.lua:1>
-
EXP POTIONS
Opa pessoa to com um probleminha gostaria que esse script de ex potions fique mostrando o tempo quando ela vai abacar e que quando o player morrer ou deslogar perde o efeito e que so pode usar ela de novo quando acabar o tempo da exp. SCRIPT local pausa = 1800000 -- (1000 = 1 segundos) Tempo que o script durará local texto = 'Você recebeu 5x experiência por 30 minutos.' -- Texto que irá receber ao usar a potion. textofinal = 'o 5x de experiencia acabou.' -- Texto que irá receber quando o efeito da potion acabar. local exp = 5 -- O quanto que você quer que dobre sua experiencia, por exemplo 2 é 2x as rates do seu server. expfinal = 1 --Não mude, isso é para a experiencia voltar ao normal. function potion(pos, cid) doPlayerSetExperienceRate(pos,expfinal) doPlayerSendTextMessage(pos,22,textofinal) end function onUse(cid, item, frompos, item2, topos) if item.itemid == 8298 then -------- MUDE ESSE 7443 PARA O ID DO ITEM doRemoveItem(item.uid,1) doPlayerSetExperienceRate(cid,exp) doSendMagicEffect(frompos,13) doPlayerSendTextMessage(cid,22,texto) addEvent(potion,pausa,cid) end return true end obrigado desde já
-
CHARACTER INFOS
fui em talkactions>scriptis>criei um arquivo chamando infos e adicionei seu script: infos: function onSay(cid, words, param, channel) local reset = 2321 -- id da storage do reset local mining = 2113 -- id da storage do mining doPlayerSendTextMessage(cid, 23, " # Character Info # \n -Level: ".. getPlayerLevel(cid) .."\n -Resets: ".. getPlayerStorageValue(cid, reset) .."\n -Life: [".. getCreatureHealth(cid) .."/".. getCreatureMaxHealth(cid) .."]\n -Mana: [".. getCreatureMana "/".. getCreatureMaxMana(cid) .."]\n -Mining: ".. getPlayerStorageValue(cid, mining)"") return true end Depois fui em >>talkactions.xml e adicionei essa linha: linha : <talkaction words="!infos" access="4" script="infos.lua"/> e não aconteceu nada
-
CHARACTER INFOS
Cara tentei aqui n aconteceu nada simples mente nada n aparece erro nem nada oq poderar ser? tentei adicionar outro script tbm e nada fica mesma coisa não aparece erro so que o comando n funciona e nem aparece nos commandos
-
CHARACTER INFOS
Gostaria que alguém me ajudasse , com esse sistema ele mostra o tanto de level,resets,life,mana e mining se possivel adicionar critical e dodge ficaria muito agradecido - Level: 7053 - Resets: 0 - Life: [14726/14726] - Mana: [105595/105595] - Mining: 0
-
Exp Potion Mostrando o Horario
cara teria como você mostrar como fez ? queria faze isso tbm com minhas exps
-
(Resolvido)Sistema de Pesca quase pronto ajuda
Entendi perfeitamente e usarei o seu pois é exatamente oq eu queria e com o repl.it como exemplo eu posso editar a porcetagem deixar do jeito que eu quero a adificuldade muito obrigado mesmo de coração cara, não sei se vc acredita em Deus mais que Deus te abençôe e ilumine seu caminho obrigado msm tava tentando fazer isso tem muito tempo, e vc não me cobrou nada por isso ! Obrigado
-
(Resolvido)Sistema de Pesca quase pronto ajuda
Deu certo a sua e a do Vod mais irei usar a sua, fico agradecido ao Vod ter me ajudado tbm, mas vc foi o unico que me respondeu e me ajudou quando eu precisei sendo assim fico muito grato e gostei muito, obrigado mesmo de coração. Tenho uma duvida onde eu mudo para ficar mais dificil para pescar os monstro? e quanto maior o level mais facil fica ?
-
(Resolvido)Sistema de Pesca quase pronto ajuda
xWhiteWolf o seu funcionou o unico problema é que não ta pescando os monstros não sei se é por causa da dificuldade onde eu mecho para ficar mais fácil pescar os monstro? [Error - Actions Iterface] data/actions/tools/fishing.lua:oneUse Description: <luaDoCreateMonster> Cannot create monster: Water elemental [Error - Actions Iterface] data/actions/tools/fishing.lua:oneUse Description: <luaDoCreateMonster> Cannot create monster: Massive Water elemental [Error - Actions Iterface] data/actions/tools/fishing.lua:oneUse Description: <luaDoCreateMonster> Cannot create monster: Water elemental [Error - Actions Iterface] data/actions/tools/fishing.lua:oneUse Description: <luaDoCreateMonster> Cannot create monster: Blod Crab ta dando esse erros e com os outro monstro tbm
- (Resolvido)Sistema de Pesca quase pronto ajuda
- (Resolvido)Sistema de Pesca quase pronto ajuda
-
(Resolvido)Sistema de Pesca quase pronto ajuda
-- tabela de nivel -- [nivel] = {level, fishing} local tablelevel = { [1] = {400, 100}, [2] = {500, 105}, [3] = {600, 110}, [4] = {700, 120}, [5] = {800, 130} para cada bicho tem um level e um fishing por exemplo lvl 400 com 100 de fishing vc pescaria water elemental lvl 500 com fishing 105 continuaria pescando water elemental e passaria pescar tbm Massive Water Elemental Espero que tenha alguma porcetagem para pescar os monstro por exemplo para pegar Water Elemental no lvl 400 e com 100 de fishing vc tera 5% de chance quando vc upar para o lvl 500 e estiver com 105 de fishing vc tera 10% de chance de pegar Water Elemental e 5% de chance de pegar Massive Water Elemental, quando vc tiver level 600 e com 110 de fishing vc tera 15% de chance de pegar Water Elemental e 10% Massive Water Elemental e 5% de pegar Blood Crab quando vc tiver com lvl 700 e 120 fishing vc tera 20% de chance de pegar Water Elemental 15% de chance de pegar Massive Water Elemental 10% de chance de pegar Blood Crab e 5% de chance de pegar Quara Constrictor com lvl 800 e 130 de fishing vc tera 25% de chance de pescar Water Elemental e 20% Massive Water Elemental 15% Blood Constrictor 10% Quara Constrictor e 5% Quara Predator Scout. aqui eu to explicando como seria apartir do 400 vc pescaria mais os outro bicho para cima pra cima n por exemplo o Massive Water Elemental seria lvl 500 lvl 400 nao poderia pescar
- (Resolvido)Sistema de Pesca quase pronto ajuda
-
(Resolvido)Sistema de Pesca quase pronto ajuda
Primeiramente obrigado por está lendo esse tópico, Sistema de pesca ! Fala galerinha do TK vim aqui hoje pedi uma ajuda a vocês, já faz algum tempo que venho tentando fazer um script de fishing meio complicado tentei fazer vários tópicos aqui mais ninguém me ajudou então, tentei manda mensagens para alguns membros pedindo ajuda o único que me respondeu e me ajudou foi o xWhiteWolf. Ele me ajudou o problema e que eu não sei nada de script, ele conseguiu passa os algoritmos do script tipo aquilo que eu tava pedindo pra ele só que ele não fez o script em si ele só o começou, gostaria que alguém terminasse ele pra me ajudar porfavor nunca achei ele e sempre quis colocar ele no meu servidor. Oq é esse script? É um sistema de pescar monstro de acordo com o Level e com o fishing, Por exemplo se vc tiver lvl 800 mais so que ta com 105 de fishing vc so vai poder pescar Massive Water Elemental e Water elemental. Quando vc upar o fishing por exemplo pro 110 ae vc vai poder pescar Blood Crab, Massive Water Elemental, Water Elemental. Espero que tenha alguma porcetagem para pescar os monstro por exemplo para pegar Water Elemental no lvl 400 e com 100 de fishing vc tera 5% de chance quando vc upar para o lvl 500 e estiver com 105 de fishing vc tera 10% de chance de pegar Water Elemental e 5% de chance de pegar Massive Water Elemental, quando vc tiver level 600 e com 110 de fishing vc tera 15% de chance de pegar Water Elemental e 10% Massive Water Elemental e 5% de pegar Blood Crab quando vc tiver com lvl 700 e 120 fishing vc tera 20% de chance de pegar Water Elemental 15% de chance de pegar Massive Water Elemental 10% de chance de pegar Blood Crab e 5% de chance de pegar Quara Constrictor com lvl 800 e 130 de fishing vc tera 25% de chance de pescar Water Elemental e 20% Massive Water Elemental 15% Blood Constrictor 10% Quara Constrictor e 5% Quara Predator Scout. Para poder upar o fishing vai ter que ficar muito tempo treinando tipo vai ser bem dificil para o fishing subir, você tbm nao poderia pescar em aréas pz, caso o player não tivesse apareceria uma mensagem avisando que ele precisa estar em pz se o player tiver o fishing 100 mais nao tiver no minimo lvl 400 ele não poderia pescar monstros, enquanto o player tivesse pescando normal para subir seu fishing ele poderia pegar peixe tbm para dar mais rpg. Qualquer duvida so me perguntar Já tenho um script ele só pesca monstro e não precisa de level e nem de level de fishing para poder pegar o script é esse -- My Fat Doll improvisando nos otserver ;~ -- Fishing v 1.0 05/04/2013 function onUse(cid, item, fromPosition, itemEx, toPosition) --Config-- local Bait = 2671 -- ID da isca local needBait = false -- Precisa de isca? TRUE/FALSE local FishRate = 1.0 -- Rate de fish local time = 1 -- Tempo pra pescar denovo (em segundos) local fishable = {"Water Elemental", "Massive Water Elemental", "Blood Crab", "Quara Constrictor", "Quara Predator Scout", "Quara Predator", "Quara Pincher Scout", "Quara Pincher", "Quara Mantassin Scout", "Quara Mantassin", "Quara Hydromancer Scout", "Quara Constrictor Scout", "Quara Hydromancer"} --Pescados local message1 = "You need "..getItemNameById(Bait).."s to fish!" -- Mensagem se não tiver iscas! local message2 = "You must wait few seconds!" --Mensagem se tiver pescando muito rapido --Config End-- -- Não mecha -- local storage = 5560 local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625} if not getTilePzInfo(getCreaturePosition(cid)) then if needBait == TRUE then if getPlayerItemCount(cid, Bait) > 0 then if exhaustion.get(cid, storage) == FALSE then exhaustion.set(cid, storage, time) doPlayerAddSkillTry(cid, SKILL_FISHING, 1) if isInArray(waterIds, itemEx.itemid) == TRUE then doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY) if itemEx.itemid ~= 493 then if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= (getPlayerSkill(cid, SKILL_FISHING)*FishRate) then doPlayerRemoveItem(cid, Bait, 1) doCreateMonster(fishable[math.random(#fishable)], getPlayerPosition(cid)) end end end return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message2) end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message1) end return FALSE end if needBait == FALSE then if exhaustion.get(cid, storage) == FALSE then exhaustion.set(cid, storage, time) doPlayerAddSkillTry(cid, SKILL_FISHING, 1) if isInArray(waterIds, itemEx.itemid) == TRUE then doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY) if itemEx.itemid ~= 493 then if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= (getPlayerSkill(cid, SKILL_FISHING)*FishRate) then doCreateMonster(fishable[math.random(#fishable)], getPlayerPosition(cid)) end end end return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message2) end end return FALSE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can't fish in a protection zone!") end end No que o xWhiteWolf me ajudou ? Ele fez os algoritmos do jeito que eu queria só que ele não o adicionou no script e eu como não manjo disso não sei como fazer, mais gostaria mesmo que alguém me ajudasse tem muito tempo que to correndo atras disso e nunca consigo dessa vez consegui uma ajuda ta 50% feito falta só terminar, os os algoritmos do xWhiteWolf abaixo. -- tabela de nivel -- [nivel] = {level, fishing} local tablelevel = { [1] = {400, 100}, [2] = {500, 105}, [3] = {600, 110}, [4] = {700, 120}, [5] = {800, 130} } -- tabela de monstros -- [nivel] = monstro adicionado -- note que se voce for nivel 3 vc tera os monstros do 2 e do 1 tambem. local tablemonsters = { [1] = "Water Elemental", [2] = "Massive Water Elemental", [3] = "Blood Crab", [4] = "Quara Constrictor", [5] = "Quara Predator Scout" } -- Aqui eu defino valores aleatorios de level e de fishing de um suposto player e printo esses valores plvl, fishing = math.random(300, 1000), math.random(95, 140) print("Nivel "..plvl..". Fishing: ".. fishing) --- isso aqui so serve para testes mas lembre-se de que plvl tem que ser igual a getCreatureLevel(cid) -- e que fishing tem que ser getPlayerSkill(cid, SKILL_FISHING) -- aqui fazemos o algoritmo para definir qual o level de pesca o player sera local level = 0 for i, lvl in ipairs(tablelevel) do if plvl >= lvl[1] and fishing >= lvl[2] then level = i else break end end print("Level: ".. level) -- a partir daqui o level do player pode ser pego atraves da variavel "level" -- aqui nos retornamos a tabela de monstros pescaveis pelo player local fishable = {} -- partimos de uma tabela vazia for i, mob in ipairs(tablemonsters) do if level >= i then fishable[#fishable + 1] = {chance = 5 * (level - i + 1), monster = mob} end end -- pra cada monstro temos uma chance associada que vai variar do nivel do player e da dificuldade do monstro -- printando tudo que tem em fishable for i = 1, #fishable do print(fishable.chance, fishable.monster) end -- isso aqui é só pra testar que funciona -- retornando oque vai pescar local get = false -- nao vai pescar nada de inicio for i = 1, #fishable do if fishable.chance >= math.random(1, 100) then get = fishable.monster break end end if not get then -- se nao pescou nada, da peixe print("pescou peixe") else -- se pescou algo, falar oque pescou/criar a criatura print("pescou ".. get) end Bom é isso pessoa espero mesmo que alguém possa me ajuda, abraço !! A esse video monstra como funciona
-
Sistema auto hunted
@UP
-
[8.6] Task System 4.0! (Task system + Daily Task System)
como eu sei quantos point o player tem ?? tipo faço as task e termino mais n sei quantos point eu tenho como faço para ver ?
-
adicionar Level de Fishing
up
-
adicionar Level de Fishing
up
- Sistema de pesca
-
adicionar Level de Fishing
gostaria que alguém me ajuda se com isso, queria colocar para pescar de acordo com level e fishing aqui esta o escript -- My Fat Doll improvisando nos otserver ;~ -- Fishing v 1.0 05/04/2013 function onUse(cid, item, fromPosition, itemEx, toPosition) --Config-- local Bait = 2671 -- ID da isca local needBait = false -- Precisa de isca? TRUE/FALSE local FishRate = 1.0 -- Rate de fish local time = 1 -- Tempo pra pescar denovo (em segundos) local fishable = {"Water Elemental", "Massive Water Elemental", "Blood Crab", "Quara Constrictor", "Quara Predator Scout", "Quara Predator", "Quara Pincher Scout", "Quara Pincher", "Quara Mantassin Scout", "Quara Mantassin", "Quara Hydromancer Scout", "Quara Constrictor Scout", "Quara Hydromancer"} --Pescados local message1 = "You need "..getItemNameById(Bait).."s to fish!" -- Mensagem se não tiver iscas! local message2 = "You must wait few seconds!" --Mensagem se tiver pescando muito rapido --Config End-- -- Não mecha -- local storage = 5560 local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625} if not getTilePzInfo(getCreaturePosition(cid)) then if needBait == TRUE then if getPlayerItemCount(cid, Bait) > 0 then if exhaustion.get(cid, storage) == FALSE then exhaustion.set(cid, storage, time) doPlayerAddSkillTry(cid, SKILL_FISHING, 1) if isInArray(waterIds, itemEx.itemid) == TRUE then doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY) if itemEx.itemid ~= 493 then if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= (getPlayerSkill(cid, SKILL_FISHING)*FishRate) then doPlayerRemoveItem(cid, Bait, 1) doCreateMonster(fishable[math.random(#fishable)], getPlayerPosition(cid)) end end end return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message2) end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message1) end return FALSE end if needBait == FALSE then if exhaustion.get(cid, storage) == FALSE then exhaustion.set(cid, storage, time) doPlayerAddSkillTry(cid, SKILL_FISHING, 1) if isInArray(waterIds, itemEx.itemid) == TRUE then doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY) if itemEx.itemid ~= 493 then if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= (getPlayerSkill(cid, SKILL_FISHING)*FishRate) then doCreateMonster(fishable[math.random(#fishable)], getPlayerPosition(cid)) end end end return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message2) end end return FALSE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can't fish in a protection zone!") end end