
Tudo que vankk postou
-
(Resolvido)[pedido] Kill no default e nao matar membro da mesma party
o type da primeira é kill e do segundo script é combat.
-
[BUG] Backpacl tfs 1.2
player.cpp muda if (!Position::areInRange<3, 3, 0>(container->getPosition(), getPosition())) { para if (!Position::areInRange<1, 1, 0>(container->getPosition(), getPosition())) {
- (Resolvido)Sempre pega red battle!
-
Talkaction com multiplos parâmetros
local t = string.explode(param, ",")
-
(Resolvido)[pedido] Kill no default e nao matar membro da mesma party
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Scripting OTServ > OTServ > CreatureScripts, GlobalEvents e MoveMents Para: Suporte OTServ > OTServ > Suporte de Scripts function onKill(cid, target) if isPlayer(target) == TRUE then ilseif getCreatureSkullType(cid) == 4 or getCreatureSkullType(cid) == 3 and getCreatureSkullType(target) == 0 and isPlayer(target)then broadcastMessage(getCreatureName(cid) .. " killed ".. getCreatureName(target)..".",MESSAGE_STATUS_CONSOLE_ORANGE) elseif getCreatureSkullType(target) == 3 or getCreatureSkullType(target) == 4 and isPlayer(target) then broadcastMessage(getCreatureName(cid) .. " killed ".. getCreatureName(target)..".",MESSAGE_STATUS_CONSOLE_ORANGE) end end return TRUE end function onCombat(cid, target) if(isPlayer(cid) and isPlayer(target)) then if(getPlayerGuildId(cid) == getPlayerGuildId(target)) then return false end end return true end Registra ambos scripts no login.lua e no XML. E da reload, e boa sorte.
- [BUG EM TODOS OS OTS] TFS 1.X, FIXED!
- [BUG EM TODOS OS OTS] TFS 1.X, FIXED!
-
[BUG EM TODOS OS OTS] TFS 1.X, FIXED!
O walkable.lua que eu mandei, não permite que o servidor de esse problema, devido isso ser um bug em LUA, nos scripts; e não em C++ e não é culpa do TFS. Os baús das chests, e o script de Calassa, como exemplo do video, não são seguro de utilizar, ambos scripts walkable.lua do TFS, script de Calassa do projeto do @Bruno Minervino, não são seguros de utilizar, nada além disso. A solução do @Absolute nada mais é do que remover o stack overflow, e funciona com certeza, e não seria um bug inútil. Um colega meu disse que esse "bug" não vê nada de errado com o modo que o TFS está lidando com a situação, mas sim programadores inexperientes e irresponsáveis culpando o TFS por seus scripts que não são seguros, e ele deu uma situação hipotética, se um foguete da NASA cair em meio ao lançamento. A culpa é da gravidade ou dos engenheiros, que por imperícia, negligência, não perceberam a existência de um erro crucial no projeto deles? Sem mais.
- [BUG EM TODOS OS OTS] TFS 1.X, FIXED!
-
[BUG EM TODOS OS OTS] TFS 1.X, FIXED!
Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP. Ou apenas simplesmente modifique em LUA walkable.lua local function isQuestChest(item) local itemid = item:getId() if itemid == 1738 or itemid == 1740 or (itemid >= 1746 and itemid <= 1749) then return true end end local function isWalkable(item) if item.uid > 0 and item.uid <= 65535 then return false end return true end local function isPositionSafe(position) local tile = Tile(position) for _, item in ipairs(tile:getItems()) do if isQuestChest(item) and not isWalkable(item) then return false end end return true end function onStepIn(creature, item, position, fromPosition) if not isWalkable(item) then if creature:isPlayer() then local safePosition = creature:getTown():getTemplePosition() if position.x == fromPosition.x and position.y == fromPosition.y and position.z == fromPosition.z then creature:teleportTo(safePosition, false) return true elseif not isPositionSafe(fromPosition) then creature:teleportTo(safePosition, false) return true end end creature:teleportTo(fromPosition, false) end return true end
-
Duvida Qual Gesior Ussar Pra TFS 2 pra ot 10.82
@Thiago Mapper Já frequentou aulas de português? E por sinal, utilize Gesior AAC 2012. https://github.com/gesior/Gesior2012
-
(Resolvido)[PEDIDO] sumon spell
Vai summonar o monstro Vankk for president e pode ter no máximo 5 summons. local config = { max_summons = 5, monster_summon = "Vankk for president", } function onCastSpell(cid, var) if #getCreatureSummons(cid) < config.max_summons then doConvinceCreature(cid, doSummonCreature(config.monster_summon, getThingPos(cid))) else doPlayerSendTextMessage(cid, 19, "You can only have ".. config.max_summons .. " summons.") doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) end return true end
- (Resolvido)[PEDIDO] sumon spell
-
Como fazer upgrade na distro ?
Tenta formatar a maquina e vê se o servidor está continuando utilizando muita CPU, se sim, provavelmente você terá que desembolsar quantidade de R$.
-
como reseto minha database ?
http://www.tutorialspoint.com/sqlite/sqlite_truncate_table.htm
-
Como fazer upgrade na distro ?
Tenta recompilar a distro se não funcionar provavelmente o seu servidor está puxando muita CPU/Memória.
-
Script Area Donate Me ajude
Não fico ofendido por pouca coisa, só achei graça de você. Eu tinha feito esse comentário, e depois ia procurar um sistema vip para ele que não utilizasse o sistema de premium account, porém acabei esquecendo devido a ter outras coisas para fazer. E por sinal: http://www.tibiaking.com/forum/topic/20589-vip-system-by-mock-100/
- Script Area Donate Me ajude
- Script Area Donate Me ajude
- [10.90] - Eternia Evolution 2016
- Script Area Donate Me ajude
-
NPC
Precisa = necessidade. Querendo = você quer alguma coisa, diferente de necessidade E se não me engano a @Azhaurn postou em algum tópico aqui no TibiaKing com alguém com o mesmo pedido igual o seu.
-
NPC
Você não está precisando, você está querendo, existe uma grande diferença Diga qual a versão do TFS que usa.
- (Resolvido)Sempre pega red battle!
-
[8.6] Heromassa Server 2.0
Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP.