Tudo que Reds postou
-
Matar boss e anunciar quem matou
function onDeath(cid, corpse, deathList) doBroadcastMessage("O jogador "..getCreatureName(deathList[1]).." killed the powerful boss "..getCreatureName(cid).."!") end <event type="death" name="killboss" event="script" value="killboss.lua"/> <script> <event name="killboss"/> </script> testa ai, coloca em todos monstros que vc quer que sejam listados, assim só vai ser executado neles e não precisa listar
-
(Resolvido)Piso ou porta de resets
se seu sistema fosse por storage, seria bem mais facil, basicamente vc tem q por pro player ganhar um storage ao resetar e um piso que so passa quem possuir storage
-
Porcentagem % nas magias
agora acho que sei como ele fez, usou creaturescript onCombat né?
-
Equipar item somente com x storage
acabei de testar aqui e funcionou certo, useiem um helmet, verifica se vc colocou certo <movevent type="Equip" itemid="2471" slot="head" function="onEquipItem" script="tking/storage.lua" />
-
Equipar item somente com x storage
local storage = 13645 -- Storage necessaria para usar o item aqui. function onEquip(cid, item) if getPlayerStorageValue(cid, storage) < 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have enough power to equip this item.") return false end return true end testa ai
-
Como altero a fórmula de dano das armas?
tem algo assim das stances para tfs 0.4? ontem procurei no lua functions não achei ;s
-
Spell Onda de Gelo do Video
vai usando local area = e vai moldando
-
Spell Onda de Gelo do Video
tanto essa, quanto a spell ondas de fogo são fáceis, porém extensas, só ver no /z que tem as 2 animações e colocar, o trampo tá ficar criando vários addevent e tal
-
COMO ATUALIZAR SEU SCRIPT.
teria que ver as funções e ver como chama cada uma, de resto é igual, procura nos fóruns do tibiaking e otland que vc acha fácil
-
Spell Onda de Gelo do Video
tem a animação sim
-
msg em spell
local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0) local condition = Condition(CONDITION_ATTRIBUTES) condition:setParameter(CONDITION_PARAM_TICKS, 120000) condition:setParameter(CONDITION_PARAM_SUBID, 116) condition:setParameter(CONDITION_PARAM_BUFF_SPELL, 1) combat:setCondition(condition) function onCastSpell(creature, var) local player = Player(creature) if player then setPlayerStorageValue(player.uid, 5, 25) addEvent(setPlayerStorageValue, 120 * 1000, player.uid, 5, 0) end combat:execute(creature, var) creature:sendTextMessage(MESSAGE_INFO_DESCR, "Aura reflect started!") addEvent(function() if player then creature:sendTextMessage(MESSAGE_INFO_DESCR, "Guard ended!") end end, 120*1000) return true end
- Tibia OldTales [v1.0.0]
-
msg em spell
addEvent(function() creature:sendTextMessage(MESSAGE_INFO_DESCR, "Guard ended!") end, 180000) n sei mt bem as funções tfs 1.x, mas ai ta mandando a msg, pra n dar erro na distro seria bom verificar se há player
-
Estagio por level
nao tem o arquivos stages no seu xml?
-
A comunidade do TibiaKing precisa de mudanças
Isso me fez refletir, estou ajudando muitas pessoas que me chamam no pvt, assim o conteúdo não é disponivel para outras. A partir de agora só irei ajudar em tópicos, e espero que todos façam isso.
-
Estagio por level
Fica em data>xml>stages.lua lembra de por true no config.lua experienceStages = true
-
[ AJUDA ] Scripts
<item id="8858" article="an" name=" elethriel's elemental bow "> <attribute key="weight" value="4900" /> <attribute key="weaponType" value="distance" /> <attribute key="range" value="5" /> </item>
-
[ AJUDA ] Scripts
o bow: weapons/armas coloca: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR) setCombatFormula(combat, COMBAT_FORMULA_SKILL, -1, -60, -1, -60, 5, 5, 4, 7) function onUseWeapon(cid, var) return doCombat(cid, combat, var) end ai em weapons/weapons.xml: <distance id="8858" level="8" range="6" enabled="1" exhaustion="0" hitchance="100" script="armas/magic bow.lua"><vocation id="7"/><vocation id="3"/></distance>
- Sword Art Online - Recrutamento
- Sword Art Online - Recrutamento
- Ajuda Erro Na confi.lua
-
(Resolvido)Effect em Dodge e Critical System
--[[Critical System ------------------------- By Night Wolf]] local lvlcrit = 48913 local multiplier = 1.5 function onStatsChange(cid, attacker, type, combat, value) if isPlayer(attacker) and (not (attacker == cid)) and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) then if (getPlayerStorageValue(attacker, lvlcrit)*3) >= math.random (0,1000) then dano = math.ceil(value*(multiplier)) doTargetCombatHealth(attacker, cid, combat, -dano, -dano, 255) doSendAnimatedText(getCreaturePos(attacker), "CRITICAL!!", 144) doSendMagicEffect(getCreaturePos(attacker), 43) return false end end return true end é isso q vc quer?
-
(Resolvido)Effect em Dodge e Critical System
local lvldodge = 48902 local percent = 0.5 function onStatsChange(cid, attacker, type, combat, value) if type == STATSCHANGE_HEALTHLOSS and isCreature(attacker) then if (getPlayerStorageValue(cid, lvldodge)*3) >= math.random (0,1000) then value = math.ceil(value*(percent)) doTargetCombatHealth(attacker, cid, combat, -value, -value, 255) doSendAnimatedText(getCreaturePos(cid), "DODGE", 6) doSendMagicEffect(getCreaturePos(cid), 43) return false end end return true end
-
(Resolvido)Effect em Dodge e Critical System
Fala primeiro o sistema que vc usa né amigo..
-
Script de Comprar Item por Comando.
function onSay(cid, words, param) moeda = getPlayerItemCount(cid, 2149) if moeda >= 50 then doPlayerRemoveItem(cid, 2149, 50) doPlayerAddItem(cid,iddoitemqueganha,quantiedaddqueganha) return TRUE else doPlayerSendCancel(cid, "Voce nao tem dinheiro.") return FALSE end end nao testei