• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Problem with spell after transform

Akirama

Premium User
Premium User
Joined
Aug 9, 2020
Messages
26
Reaction score
1
Hi,

I have little problem... bcs in my server I have transform system ( once vocation going to new vocation ) due to when player got new vocation he must relog bcs without relog he can't use any spell for him vocation.
Someone have idea where can be problem ?
TFS 1.3 , 8.6
 
Solution
was a problem in spells.xml

Was using name instead of id, which was only finding the first iteration of the name in vocations.xml

Xikini

I whore myself out for likes
Support Team
Joined
Nov 17, 2010
Messages
5,541
Solutions
384
Reaction score
3,664
problem is probably with the transform.

Can you post the script that is transforming the player to the new vocation?
 
OP
A

Akirama

Premium User
Premium User
Joined
Aug 9, 2020
Messages
26
Reaction score
1
global.lua:
Lua:
exhaust_transform = {}

transform = {

-- Naruto --
[1] = {voc = 1, newVoc = 20, from_looktype = 434, looktype = 433, level = 40, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[20] = {voc = 20, newVoc = 21, from_looktype = 433, looktype = 435, level = 80, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[21] = {voc = 21, newVoc = 22, from_looktype = 435, looktype = 436, level = 120, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[22] = {voc = 22, newVoc = 23, from_looktype = 436, looktype = 430, level = 160, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[23] = {voc = 23, newVoc = 24, from_looktype = 430, looktype = 431, level = 210, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[24] = {voc = 24, newVoc = 25, from_looktype = 431, looktype = 445, level = 270, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[25] = {voc = 25, newVoc = 26, from_looktype = 445, looktype = 440, level = 350, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[26] = {voc = 26, newVoc = 27, from_looktype = 440, looktype = 437, level = 400, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[27] = {voc = 27, newVoc = 28, from_looktype = 437, looktype = 448, level = 500, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[28] = {voc = 28, newVoc = 29, from_looktype = 448, looktype = 449, level = 600, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},


talkaction:

Code:
function onSay(player, words, param, channel)
    local pid = player:getId()

    if exhaust_transform[pid] ~= nil then
        return false
    end

    local TRANS = transform[player:getVocation():getId()]

    if not TRANS then return player:sendCancelMessage("You cannot transform.") end
    if player:getLevel() < TRANS.level then return player:sendCancelMessage("You must reach level "..TRANS.level.." to transform.") end
    if player:getSoul() < TRANS.rage then return player:sendCancelMessage("You need "..TRANS.rage.." to transform.") end
    if player:getMana() < TRANS.mana then return player:sendCancelMessage("You need "..TRANS.mana.." to transform.") end

    local outfit = player:getOutfit()
    outfit.lookType = TRANS.looktype

    if TRANS.constant then
        player:setOutfit(outfit)
    else
        player:setOutfit(outfit, false)
    end
 
    exhaust_transform[pid] = 1
    player:addSoul(-TRANS.rage)
    player:setMaxHealth(player:getMaxHealth() + TRANS.addHealth)
    player:setMaxMana(player:getMaxMana() + TRANS.addMana)
    player:addHealth(TRANS.addHealth)
    player:addMana(TRANS.addMana)
    player:getPosition():sendMagicEffect(TRANS.effect)
    player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, "You have transformed!")
    player:setVocation(TRANS.newVoc)
    player:save()
    addEvent(removeExhaust, 1 * 1000, pid)
return true
end
function removeExhaust(pid)
    exhaust_transform[pid] = nil
end
 

Xikini

I whore myself out for likes
Support Team
Joined
Nov 17, 2010
Messages
5,541
Solutions
384
Reaction score
3,664
global.lua:
Lua:
exhaust_transform = {}

transform = {

-- Naruto --
[1] = {voc = 1, newVoc = 20, from_looktype = 434, looktype = 433, level = 40, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[20] = {voc = 20, newVoc = 21, from_looktype = 433, looktype = 435, level = 80, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[21] = {voc = 21, newVoc = 22, from_looktype = 435, looktype = 436, level = 120, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[22] = {voc = 22, newVoc = 23, from_looktype = 436, looktype = 430, level = 160, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[23] = {voc = 23, newVoc = 24, from_looktype = 430, looktype = 431, level = 210, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[24] = {voc = 24, newVoc = 25, from_looktype = 431, looktype = 445, level = 270, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[25] = {voc = 25, newVoc = 26, from_looktype = 445, looktype = 440, level = 350, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[26] = {voc = 26, newVoc = 27, from_looktype = 440, looktype = 437, level = 400, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[27] = {voc = 27, newVoc = 28, from_looktype = 437, looktype = 448, level = 500, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},
[28] = {voc = 28, newVoc = 29, from_looktype = 448, looktype = 449, level = 600, rage = 0, mana = 10, addHealth = 200, addMana = 150, effect = 368, aura = nil, constant = true},


talkaction:

Code:
function onSay(player, words, param, channel)
    local pid = player:getId()

    if exhaust_transform[pid] ~= nil then
        return false
    end

    local TRANS = transform[player:getVocation():getId()]

    if not TRANS then return player:sendCancelMessage("You cannot transform.") end
    if player:getLevel() < TRANS.level then return player:sendCancelMessage("You must reach level "..TRANS.level.." to transform.") end
    if player:getSoul() < TRANS.rage then return player:sendCancelMessage("You need "..TRANS.rage.." to transform.") end
    if player:getMana() < TRANS.mana then return player:sendCancelMessage("You need "..TRANS.mana.." to transform.") end

    local outfit = player:getOutfit()
    outfit.lookType = TRANS.looktype

    if TRANS.constant then
        player:setOutfit(outfit)
    else
        player:setOutfit(outfit, false)
    end

    exhaust_transform[pid] = 1
    player:addSoul(-TRANS.rage)
    player:setMaxHealth(player:getMaxHealth() + TRANS.addHealth)
    player:setMaxMana(player:getMaxMana() + TRANS.addMana)
    player:addHealth(TRANS.addHealth)
    player:addMana(TRANS.addMana)
    player:getPosition():sendMagicEffect(TRANS.effect)
    player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, "You have transformed!")
    player:setVocation(TRANS.newVoc)
    player:save()
    addEvent(removeExhaust, 1 * 1000, pid)
return true
end
function removeExhaust(pid)
    exhaust_transform[pid] = nil
end
hmm. this looks fine.

Can you post data/xml/vocations.xml?
 
OP
A

Akirama

Premium User
Premium User
Joined
Aug 9, 2020
Messages
26
Reaction score
1
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<vocations>
    <vocation id="0" clientid="0" name="None" description="none" gaincap="10" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="0">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
    <vocation id="1" clientid="3" name="Naruto" description="a Naruto" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="1">
        <formula meleeDamage="1.0" distDamage="1.0" magDamage="5.0" defense="1.0" armor="1.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
    <vocation id="2" clientid="4" name="Sasuke" description="a Sasuke" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="2">
        <formula meleeDamage="1.0" distDamage="1.0" magDamage="50.0" defense="1.0" armor="1.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
    <vocation id="3" clientid="2" name="Sakura" description="a Sakura" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="5" gainmanaticks="4" gainmanaamount="5" manamultiplier="1.4" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="3">
        <formula meleeDamage="1.0" distDamage="1.0" magDamage="10.0" defense="1.0" armor="1.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
    <vocation id="4" clientid="1" name="Lee" description="a Lee" gaincap="25" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="6" gainmanaamount="5" manamultiplier="3.0" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="4">
        <formula meleeDamage="1.0" distDamage="1.0" magDamage="10.0" defense="1.0" armor="1.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
    <vocation id="5" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="1.2" distDamage="1.0" magDamage="1.2" defense="1.6" armor="2.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
       <vocation id="60" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="60">
        <formula meleeDamage="1.3" distDamage="1.0" magDamage="1.25" defense="1.7" armor="2.25" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="61" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="61">
        <formula meleeDamage="1.4" distDamage="1.0" magDamage="1.3" defense="1.8" armor="2.5" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="62" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="1.5" distDamage="1.0" magDamage="1.35" defense="1.9" armor="2.75" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="63" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="1.6" distDamage="1.0" magDamage="1.4" defense="2.0" armor="3.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="64" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="1.7" distDamage="1.0" magDamage="1.45" defense="2.1" armor="3.25" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="65" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="1.8" distDamage="1.0" magDamage="1.5" defense="2.2" armor="3.5" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="66" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="1.9" distDamage="1.0" magDamage="1.55" defense="2.3" armor="3.75" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="67" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="2.0" distDamage="1.0" magDamage="1.6" defense="2.4" armor="4.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="68" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="2.4" distDamage="1.0" magDamage="1.8" defense="2.8" armor="5.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="69" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="2.8" distDamage="1.0" magDamage="2.0" defense="3.2" armor="6.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
 

Xikini

I whore myself out for likes
Support Team
Joined
Nov 17, 2010
Messages
5,541
Solutions
384
Reaction score
3,664
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<vocations>
    <vocation id="0" clientid="0" name="None" description="none" gaincap="10" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="0">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
    <vocation id="1" clientid="3" name="Naruto" description="a Naruto" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="1">
        <formula meleeDamage="1.0" distDamage="1.0" magDamage="5.0" defense="1.0" armor="1.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
    <vocation id="2" clientid="4" name="Sasuke" description="a Sasuke" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="2">
        <formula meleeDamage="1.0" distDamage="1.0" magDamage="50.0" defense="1.0" armor="1.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
    <vocation id="3" clientid="2" name="Sakura" description="a Sakura" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="5" gainmanaticks="4" gainmanaamount="5" manamultiplier="1.4" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="3">
        <formula meleeDamage="1.0" distDamage="1.0" magDamage="10.0" defense="1.0" armor="1.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
    <vocation id="4" clientid="1" name="Lee" description="a Lee" gaincap="25" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="6" gainmanaamount="5" manamultiplier="3.0" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="4">
        <formula meleeDamage="1.0" distDamage="1.0" magDamage="10.0" defense="1.0" armor="1.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
    <vocation id="5" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="1.2" distDamage="1.0" magDamage="1.2" defense="1.6" armor="2.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
       <vocation id="60" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="60">
        <formula meleeDamage="1.3" distDamage="1.0" magDamage="1.25" defense="1.7" armor="2.25" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="61" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="61">
        <formula meleeDamage="1.4" distDamage="1.0" magDamage="1.3" defense="1.8" armor="2.5" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="62" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="1.5" distDamage="1.0" magDamage="1.35" defense="1.9" armor="2.75" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="63" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="1.6" distDamage="1.0" magDamage="1.4" defense="2.0" armor="3.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="64" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="1.7" distDamage="1.0" magDamage="1.45" defense="2.1" armor="3.25" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="65" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="1.8" distDamage="1.0" magDamage="1.5" defense="2.2" armor="3.5" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="66" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="1.9" distDamage="1.0" magDamage="1.55" defense="2.3" armor="3.75" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="67" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="2.0" distDamage="1.0" magDamage="1.6" defense="2.4" armor="4.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="68" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="2.4" distDamage="1.0" magDamage="1.8" defense="2.8" armor="5.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="69" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="5">
        <formula meleeDamage="2.8" distDamage="1.0" magDamage="2.0" defense="3.2" armor="6.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
looks like you're missing.. like 50 vocations. xD

But yeah, if you're changing the vocation instead of using the promotion system, you need to change all of the fromvoc's to be the same as the vocation id=

That should fix your problem, I beleive.
 
OP
A

Akirama

Premium User
Premium User
Joined
Aug 9, 2020
Messages
26
Reaction score
1
looks like you're missing.. like 50 vocations. xD

But yeah, if you're changing the vocation instead of using the promotion system, you need to change all of the fromvoc's to be the same as the vocation id=

That should fix your problem, I beleive.
No , I not missing but I can't paste script more than 25000letter :D so I skipped others vocation.

I changed fromvoc = vocation id... but now exacly after relog I can't use spell for my vocation.

Lua:
<vocation id="60" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="60">
        <formula meleeDamage="1.3" distDamage="1.0" magDamage="1.25" defense="1.7" armor="2.25" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="61" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="61">
        <formula meleeDamage="1.4" distDamage="1.0" magDamage="1.3" defense="1.8" armor="2.5" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="62" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="62">
        <formula meleeDamage="1.5" distDamage="1.0" magDamage="1.35" defense="1.9" armor="2.75" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="63" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="63">
        <formula meleeDamage="1.6" distDamage="1.0" magDamage="1.4" defense="2.0" armor="3.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="64" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="64">
        <formula meleeDamage="1.7" distDamage="1.0" magDamage="1.45" defense="2.1" armor="3.25" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="65" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="65">
        <formula meleeDamage="1.8" distDamage="1.0" magDamage="1.5" defense="2.2" armor="3.5" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="66" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="66">
        <formula meleeDamage="1.9" distDamage="1.0" magDamage="1.55" defense="2.3" armor="3.75" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="67" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="67">
        <formula meleeDamage="2.0" distDamage="1.0" magDamage="1.6" defense="2.4" armor="4.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="68" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="68">
        <formula meleeDamage="2.4" distDamage="1.0" magDamage="1.8" defense="2.8" armor="5.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>
        <vocation id="69" clientid="3" name="Neji" description="a Neji" gaincap="10" gainhp="36" gainmana="14" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="69">
        <formula meleeDamage="2.8" distDamage="1.0" magDamage="2.0" defense="3.2" armor="6.0" />
        <skill id="0" multiplier="1.0" />
        <skill id="1" multiplier="1.0" />
        <skill id="2" multiplier="1.0" />
        <skill id="3" multiplier="1.0" />
        <skill id="4" multiplier="1.0" />
        <skill id="5" multiplier="1.0" />
        <skill id="6" multiplier="1.0" />
    </vocation>


I paste too spells.xml with this spell:
Code:
    <!-- Attack Spells -->
    <instant group="attack" name="throw shuriken" words="throw shuriken" level="1" mana="20" premium="0" range="5" casterTargetOrDirection="1" blockwalls="1" cooldown="2000" needlearn="0" script="attack/throw shuriken.lua">
        <vocation name="naruto" />
        <vocation name="hinata" />
        <vocation name="sasuke" />
        <vocation name="neji" />
    </instant>
 

Xikini

I whore myself out for likes
Support Team
Joined
Nov 17, 2010
Messages
5,541
Solutions
384
Reaction score
3,664
was a problem in spells.xml

Was using name instead of id, which was only finding the first iteration of the name in vocations.xml
 
Solution
Top