TekaZudo
seuserver.com.br
DESCRIÇÃO
Anuncie aqui neste countdown e dê maior visibilidade ao seu lançamento |
Full Global • Custom Quests • Custom Outfits • Lottery System • Version 15x
Inicia em:
--
Participar
Solutions
-
katumblo's post in MyAAC não está mantendo o login no site was marked as the answerJá resolvido
-
katumblo's post in (Resolvido)[RESOLVIDO] Adicionar mais atributos em doItemSetAttribute was marked as the answerBuenas,
Gostaria de saber como posso fazer para adicionar mais atributos no doItemSetAttribute, por exemplo:
doItemSetAttribute(item, "maxhealth", 300)
doItemSetAttribute(item, "maxmana", 700)
doItemSetAttribute(item, "speed", 300)
doItemSetAttribute(item, "magic_level", 10)
doItemSetAttribute(item, "sword_level", 7)
doItemSetAttribute(item, "distance_level", 5)
doItemSetAttribute(item, "exp_gain", 2)
Sei que deve ser pela source, mas onde da source posso adicionar isso?
Encontrei a solução ja, para todos que precisarem no futuro, ta aqui:
https://otland.net/threads/attributes-mod.156649/
-
katumblo's post in (Resolvido)(LuaInterface::luaGetPlayerFlagValue) Player not found was marked as the answerAqui está:
Spell 6:
<instant name="For Attack" words="Mokuton Mokuryuy" lvl="50" mana="150" aggressive="1" range="5" blockwalls="1" needtarget="1" exhaustion="2000" needlearn="0" event="script" value="personagem/hashirama/6.lua"> <vocation id="11"/> <vocation id="1110"/> <vocation id="1120"/> <vocation id="1130"/> <vocation id="1140"/> </instant>
Spell 7:
<instant name="For Attack" words="Gosoju no Jutsu" lvl="60" mana="300" prem="0" exhaustion="2000" direction="1" event="script" value="personagem/hashirama/7.lua"> <vocation id="11"/> <vocation id="1110"/> <vocation id="1120"/> <vocation id="1130"/> <vocation id="1140"/> </instant>
[EDIT]
@FeeTads Coloquei do jeito que você falou pra por, mas da o mesmo erro e +1 de brinde agora ?:
[Error - Spell Interface] data/spells/scripts/personagem/hashirama/6.lua:onCastSpell Description: (LuaInterface::luaGetPlayerFlagValue) Player not found [Error - Spell Interface] In a timer event called from: data/spells/scripts/personagem/hashirama/6.lua:onCastSpell Description: data/spells/scripts/personagem/hashirama/6.lua:17: attempt to index global 'parametes' (a nil value) stack traceback: data/spells/scripts/personagem/hashirama/6.lua:17: in function <data/spells/scripts/personagem/hashirama/6.lua:16>
[EDIT]
Encontrei a solução!
O problema estava no arquivo de exaust, aqui ta como deixei ele para caso alguém no futuro venha procurar:
exhaustion = { check = function(cid, storage) if isMonster(cid) then return false end if (getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then return false end return getPlayerStorageValue(cid, storage) >= os.time() end, get = function(cid, storage) if isMonster(cid) then return false end if (getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then return false end local exhaust = getPlayerStorageValue(cid, storage) if (exhaust > 0) then local left = exhaust - os.time() if (left >= 0) then return left end end return false end, set = function(cid, storage, time) if isMonster(cid) then return end setPlayerStorageValue(cid, storage, os.time() + time) end, make = function(cid, storage, time) local exhaust = exhaustion.get(cid, storage) if (not exhaust) then exhaustion.set(cid, storage, time) return true end return false end }
Muitissimo obrigado novamente pelo apoio @FeeTads