Postado Fevereiro 29, 2016 9 anos <instant name="Feitiço" words="voodoo" lvl="50" mana="10" prem="1" range="3" needtarget="1" blockwalls="1" exhaustion="1000" needlearn="0" event="script"><vocation id="5"/><vocation id="6"/><vocation id="7"/><vocation id="8"/> Nessa parte tem ocoreu dois problema, 1ª o ''ç'' do nome feitoço da erro na distro . ( tentei mudar mais da erro ) | 2ª a tag do spell tem que esta igual a do mods ? nao intendi muito bem !
Postado Fevereiro 29, 2016 9 anos Autor @leozincorsair vc só bota o mod, não mexe em mais nada. Ali que eu tava explicando como q muda a tag pra vc editar, não precisava recriar ela no spells.xml @Hazardx editei do jeito q vc pediu, qlqer erro me fala q tento arrumar: Spoiler <?xml version="1.0" encoding="UTF-8"?> <mod name="Voodoo System" version="1.0" author="Night Wolf" contact="none" enabled="yes"> ------------------------------------------------------------------------------------ <config name="feitisso"><![CDATA[ configuration = { storage = 24567, tempo = 20, cooldown = 45, effect1 = 13, effect2 = 65 } storagecool = 24568 ]]></config> ---------------------------------------------------------------------------------- <event type="login" name="registerVoodoo" event="script"><![CDATA[ function onLogin(cid) domodlib('feitisso') if getPlayerStorageValue(cid, configuration.storage) > 0 then doPlayerSendTextMessage(cid, 22, "Your hero is not protecting your hits anymore.") doPlayerSetStorageValue(cid, configuration.storage, 0) end registerCreatureEvent(cid,"voodoo") return true end ]]></event> ------------------------------------------------------------------------------------ <instant name="Bound Soul" words="utamo res san" lvl="50" mana="10" prem="1" range="3" needtarget="1" blockwalls="1" exhaustion="1000" needlearn="0" event="script"> <vocation id="5"/> <vocation id="6"/> <vocation id="7"/> <vocation id="8"/> <![CDATA[ function onCastSpell(cid, var) domodlib('feitisso') if not (isPlayer(variantToNumber(var))) then doPlayerSendCancel(cid, "You can only use this spell in players.") return false end if getPlayerStorageValue(variantToNumber(var), configuration.storage) > 0 then doPlayerSendCancel(cid, "You can't protect someone who's already protecting someone else.") return false end if (os.time() - getPlayerStorageValue(cid, storagecool)) >= configuration.cooldown then if getPlayerStorageValue(cid, configuration.storage) <= 0 then timeleft = (os.time() + configuration.cooldown) doPlayerSetStorageValue(cid, storagecool, timeleft) local target = getPlayerGUID(cid) doPlayerSetStorageValue(variantToNumber(var), configuration.storage, target) doPlayerSetStorageValue(cid, configuration.storage, target) doSendMagicEffect(getPlayerPosition(cid), configuration.effect1) doSendMagicEffect(getThingPos(variantToNumber(var)), configuration.effect1) addEvent(function() if isCreature(cid) then doSendMagicEffect(getPlayerPosition(cid), configuration.effect2) doPlayerSendTextMessage(cid, 22, "You're not protecting the target anymore.") doPlayerSetStorageValue(cid, configuration.storage, 0) end if isCreature(variantToNumber(var)) then doPlayerSetStorageValue(variantToNumber(var), configuration.storage, 0) end end, 100+1000*configuration.tempo) elseif getPlayerStorageValue (cid, configuration.storage) > 0 then doPlayerSendCancel(cid, "You've already bound your soul with someone else.") end else doPlayerSendCancel(cid, "Your skill is in cooldown, you must wait "..(configuration.cooldown - (os.time() - getPlayerStorageValue(cid, storagecool))).." seconds.") end return true end ]]></instant> ------------------------------------------------------------------------------------ <event type="statschange" name="voodoo" event="script"><![CDATA[ function onStatsChange(cid, attacker, type, combat, value) domodlib('feitisso') if isPlayer(cid) and getPlayerStorageValue(cid, configuration.storage) >= 1 and getPlayerStorageValue(cid, configuration.storage) ~= getPlayerGUID(cid) and attacker ~= cid and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) then local name = getPlayerNameByGUID(getPlayerStorageValue(cid, configuration.storage)) local victim = getCreatureByName(name) if isCreature(victim) and not (getTilePzInfo(getPlayerPosition(victim))) then dano = math.ceil(1.2 * value) doSendMagicEffect(getPlayerPosition(cid), configuration.effect2) if attacker == victim then doTargetCombatHealth(cid, victim, combat, -dano, -dano, configuration.effect2) else doTargetCombatHealth(attacker, victim, combat, -dano, -dano, configuration.effect2) end return false end end return true end ]]></event> ------------------------------------------------------------------------------------ </mod>
Postado Fevereiro 29, 2016 9 anos Agora sim intendi . muito obrigado ! aproveitando voce poderia fornecer suporte a um outro sistema que tem aqui no tk . estou falando do Vip System by Account 1.0 By Kydrai .. muita gente esta com problemas inclusive eu .. se poder ao menos me ajuda eu ficaria grato . deste já ! Editado Fevereiro 29, 2016 9 anos por leozincorsair (veja o histórico de edições)
Postado Março 2, 2016 9 anos Show 'o', acinoso para testar depois, muito obrigado! NICE + Editado Março 2, 2016 9 anos por Hazardx (veja o histórico de edições)
Postado Julho 14, 2016 8 anos Em 29/02/2016 at 11:18, xWhiteWolf disse: @Hazardx é uma ótima idéia, vou fazer depois Ola Whitewolf! Top os scripts como sempre... queria saber se tem como colocar para usar em monstro tambem!! sera que é possivel? :D obrigadoo
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.