
Tudo que Celulose postou
-
(Resolvido)[PEDIDO] Não poder mover players no trainers
@Christinacsa function isPosInArray(array, pos) for _, v in pairs(array) do if v.x == pos.x and v.y == pos.y and v.z == pos.z then return true end end return false end local pos = { {x = 56, y = 201, z = 6}, } function onPush(cid, target) if isPlayer(target) and isPosInArray(pos, getThingPos(target)) then doPlayerSendCancel(cid, "Você não pode empurrar players nesta area.") return false end return true end login.lua registerCreatureEvent(cid, "PushPlayerThere") xml <event type="push" name="PushPlayerThere" event="script" value="PushPlayer.lua" />
-
Erro no script de ficar full skills/ml
@Goengius mais ai não é problema da função pois está correto. function doPlayerSetSkill(cid, skill, amount) local pid = getPlayerGUID(cid) doRemoveCreature(cid,true) db.query("UPDATE `player_skills` SET `value` = ".. amount .." WHERE `player_id` = ".. pid .. " and `skillid` = ".. skill ..";") return TRUE end function doPlayerSetMagic(cid, amount) local pid = getPlayerGUID(cid) doRemoveCreature(cid,true) db.query("UPDATE `players` SET `maglevel` = " .. amount .. " WHERE `id` = "..pid) return TRUE end tanto faz db.query ou db.executeQuery A função são a mesma só muda conforme a tfs
-
Erro no script de ficar full skills/ml
@Goengius function doPlayerSetSkill(cid, skill, amount) local pid = getPlayerGUID(cid) doRemoveCreature(cid,true) db.query("UPDATE `player_skills` SET `value` = ".. amount .." WHERE `player_id` = ".. pid .. " and `skillid` = ".. skill ..";") return TRUE end function doPlayerSetMagic(cid, amount) local pid = getPlayerGUID(cid) doRemoveCreature(cid,true) db.query("UPDATE `players` SET `maglevel` = " .. amount .. " WHERE `id` = "..pid) return TRUE end já testou usando query? (testa) qual versão sua tfs?
-
(Resolvido)Gesior fora de esquadro
@ExtremyDsgnr deixa eu entender , em algumas pagina ele não está centralizado ? se for isso veja qual é a pagina e abra como notepad++ verifica as linha geralmente ou tem mais </div> ou está faltando </div> isso é simples acontece sempre comigo kk
-
Erro no script de ficar full skills/ml
Existe a função doPlayerSetSkill em 050-function ? posta o arquivo axefull.lua e o 050-function.lua (ou apenas as linha que corresponde a função .)
-
Erro porta house.
aconteceu comigo a muito tempo esse bug , quando passei meu game 8.54 pra 8.60 era coisa de doido NÃO era pra acontecer isso. não lembro como arrumei pois faz tempo porém você já verifico como está no items.xml ?
-
Error illegal value
se não me engano isso é um erro da database não permite algumas colunas ( accounts e players ) a função NULL teste em outra database
-
NPC que vende, nao compra item, e vice versa
@Zazeros confere a datapack pois as duas função estão certa
- Atacar e usar runa ao mesmo tempo
-
NPC que vende, nao compra item, e vice versa
Porque você ta setando pra script a função shop_sellable? deixa em default.lua
- Atacar e usar runa ao mesmo tempo
- Atacar e usar runa ao mesmo tempo
-
(Resolvido)Skill Rates 1.3
Otx 1.3 8.6 Código SkillsTable = { [0] = { --[[ SKILL_FIST ]] stage = { [{10, 30}] = 50, [{31, 50}] = 30, [{51, 70}] = 20, [{71, 90}] = 10, [{91, 110}] = 5, [{111, 300}] = 3 }, rate = configKeys.RATE_SKILL }, [1] = { --[[ SKILL_CLUB ]] stage = { [{10, 30}] = 50, [{31, 50}] = 30, [{51, 70}] = 20, [{71, 90}] = 10, [{91, 110}] = 5, [{111, 300}] = 3 }, rate = configKeys.RATE_SKILL }, [2] = { --[[ SKILL_SWORD ]] stage = { [{10, 30}] = 50, [{31, 50}] = 30, [{51, 70}] = 20, [{71, 90}] = 10, [{91, 110}] = 5, [{111, 300}] = 3 }, rate = configKeys.RATE_SKILL }, [3] = { --[[ SKILL_AXE ]] stage = { [{10, 30}] = 50, [{31, 50}] = 30, [{51, 70}] = 20, [{71, 90}] = 10, [{91, 110}] = 5, [{111, 300}] = 3 }, rate = configKeys.RATE_SKILL }, [4] = { --[[ SKILL_DISTANCE ]] stage = { [{10, 30}] = 50, [{31, 50}] = 30, [{51, 70}] = 20, [{71, 90}] = 10, [{91, 110}] = 5, [{111, 300}] = 3 }, rate = configKeys.RATE_SKILL }, [5] = { --[[ SKILL_SHIELD ]] stage = { [{10, 30}] = 50, [{31, 50}] = 30, [{51, 70}] = 20, [{71, 90}] = 10, [{91, 110}] = 5, [{111, 300}] = 3 }, rate = configKeys.RATE_SKILL }, [6] = { --[[ SKILL_FISHING ]] stage = { [{10, 30}] = 50, [{31, 50}] = 30, [{51, 70}] = 20, [{71, 90}] = 10, [{91, 110}] = 5, [{111, 300}] = 3 }, rate = configKeys.RATE_SKILL }, [7] = { --[[ SKILL_MAGLEVEL ]] stage = { [{0, 50}] = 10, [{51, 70}] = 8, [{71, 80}] = 7, [{81, 90}] = 6, [{91, 110}] = 5, [{111, 300}] = 2 }, rate = configKeys.RATE_MAGIC } } function getSkillsRate(level, skill) local skillRange = SkillsTable[skill] if next(skillRange.stage) then for sLevel, multiplier in pairs(skillRange.stage) do if level >= sLevel[1] and level <= sLevel[2] then return multiplier end end end return 1 end function Player:onGainSkillTries(skill, tries) if APPLY_SKILL_MULTIPLIER == false then return tries end local skills = SkillsTable[skill] if next(skills) and skills.rate then local rate = configManager.getNumber(skills.rate) if rate > 0 then return tries * rate else return tries * getSkillsRate(self:getEffectiveSkillLevel(skill), skill) end end end Erro ocorre somente quando usa magia .
-
(Resolvido)adaptar para 1.3
Olá alguma alma me ajuda passar esses 2 script para 1.3 8.60 function onUse(cid, item, frompos, item2, topos) if item.itemid == 1945 then player1pos = {x=1069, y=55, z=15, stackpos=253} -- piso 1 que tem que ter player player1 = getThingfromPos(player1pos) player2pos = {x=1068, y=55, z=15, stackpos=253} -- piso 2 que tem que ter player player2 = getThingfromPos(player2pos) player3pos = {x=1067, y=55, z=15, stackpos=253} -- piso 2 que tem que ter player player3 = getThingfromPos(player3pos) if isPlayer(player1.uid) and isPlayer(player2.uid) and isPlayer(player3.uid) then nplayer1pos = {x=932, y=186, z=15, stackpos=253} -- piso onde sera levado o player do piso 1 nplayer2pos = {x=943, y=186, z=15, stackpos=253} -- piso onde sera levado o player do piso 2 nplayer3pos = {x=954, y=186, z=15, stackpos=253} -- piso onde sera levado o player do piso 2 doSendMagicEffect(player1pos,2) doSendMagicEffect(player2pos,2) doSendMagicEffect(player3pos,2) doTeleportThing(player1.uid,nplayer1pos) doTeleportThing(player2.uid,nplayer2pos) doTeleportThing(player3.uid,nplayer3pos) doSendMagicEffect(nplayer1pos,4) doSendMagicEffect(nplayer2pos,4) doSendMagicEffect(nplayer3pos,4) doTransformItem(item.uid,1946) else doPlayerSendCancel(cid,"Você Precisa de uma team de 3 players.") return TRUE end elseif item.itemid == 1946 then doTransformItem(item.uid,1945) end return TRUE end -2 script function onUse(cid, item, frompos, item2, topos) if item.uid == 60145 then if getPlayerStorageValue(cid,60145) == -1 then doPlayerSendTextMessage(cid,25,"mensagem!") doPlayerAddItem(cid,14332,1) setPlayerStorageValue(cid,60145,1) else doPlayerSendTextMessage(cid,25,"Voce já recebeu seu item.") end return true end end
-
Error Web-Site Gersio
-- Combat settings -- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced" worldType = "pvp" hotkeyAimbotEnabled = true protectionLevel = 1 killsToRedSkull = 3 killsToBlackSkull = 6 pzLocked = 60 * 1000 removeChargesFromRunes = true timeToDecreaseFrags = 24 * 60 * 60 * 1000 whiteSkullTime = 15 * 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 = 0 motd = "Bem vindo Zé" onePlayerOnlinePerAccount = true allowClones = false serverName = "Babão serve" statusTimeout = 5 * 1000 replaceKickOnLogin = true maxPacketsPerSecond = 25 -- Version Manual clientVersionMin = 1097 clientVersionMax = 1098 clientVersionStr = "Only clients with protocol 10.97/98 or allowed!" -- Depot Limit freeDepotLimit = 2000 premiumDepotLimit = 10000 depotBoxes = 17 -- Casting System enableLiveCasting = true liveCastPort = 7173 -- 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 = "Fiapinho" mapAuthor = "Fiapo" -- Market marketOfferDuration = 30 * 24 * 60 * 60 premiumToCreateMarketOffer = true checkExpiredMarketOffersEachMinutes = 60 maxMarketOffersAtATimePerPlayer = 100 -- MySQL mysqlHost = "127.0.0.1" mysqlUser = "root" mysqlPass = "" mysqlDatabase = "database_otserv" mysqlPort = 3306 mysqlSock = "" passwordType = "sha1" -- Misc. allowChangeOutfit = true freePremium = false kickIdlePlayerAfterMinutes = 15 maxMessageBuffer = 4 emoteSpells = true classicEquipmentSlots = false allowWalkthrough = true coinPacketSize = 25 coinImagesURL = "http://some.url/images/store/" -- Rates -- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml rateExp = 5 rateSkill = 140 rateLoot = 3 rateMagic = 180 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 = "Mattyx14" ownerEmail = "[email protected]" url = "http://darkkonia.sytes.net/" location = "Mexico"
-
(Resolvido)OLD Client abre mas não funciona
cria um atalho , vai em geral (no atalho) .... depois em destino no final onde está nomedoclient.exe" você deixa nomedoclient.exe" engine 0 salva e gg
-
ha alguma possibilidade de pegar o "account id" numa ( IF / THEN ) ?
@poko360 cara acredito que por account não tem como , somente por IP
-
Autoloot bug.
@theeusata55 qual tfs? geralmente esse erro da em OTX por não reconhecer os item .
-
Parabéns programadores!!
Nem todos sabem mais hoje é dia do programador !!! O dia do programador é celebrado no 256º dia do ano (13 de setembro ou 12 de setembro nos anos bissextos). O número 256 foi escolhido para esta data porque 256 é o número de valores distintos que podem ser representados com um byte de oito bits. Além disso, 256 em hexadecimal é 100 (0x100), e é a maior potência de 2 abaixo de 365 (o número de dias em um ano). Parabéns a todos programadores
-
[Gesior] Guild Logo
Precisa da permissão em alguns arquivo só não me lembro quais ;/
-
HTTP ERROR 500
Alguma coisa você edito errado na parte do config do site
-
Vocations não aparecem no gesior!
em classes você deve colocar seu vocations.xml
-
[10.98] Carlin Revamp 2.0
Bacana
- [8.6] Teleport System!
- [8.6] Teleport System!