• 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!

new vocation TFS 1.3

kadeshop

New Member
Joined
May 1, 2013
Messages
33
Reaction score
0
Hello Guys, i create on my server new Vocations, (Epic knight, sorcerer, druid, paladin) and have problem with damage with elements.


If i use on knight or elite knight fire sword and i attack exori, i saw fire element attack + damage, on new ranks have only damage.

How fix it, i search and i dont found files where i can fix it.

I added voc to xml/vocations.xml
<vocation id="8" clientid="1" name="Elite Knight" description="an elite knight" gaincap="25" gainhp="15" gainmana="5" gainhpticks="4" gainhpamount="1" gainmanaticks="6" gainmanaamount="2" manamultiplier="3.0" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="4">
<formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0" />
<skill id="0" multiplier="1.1" />
<skill id="1" multiplier="1.1" />
<skill id="2" multiplier="1.1" />
<skill id="3" multiplier="1.1" />
<skill id="4" multiplier="1.4" />
<skill id="5" multiplier="1.1" />
<skill id="6" multiplier="1.1" />
</vocation>

and lib/core/player.lua
function Player.isKnight(self)
return table.contains({VOCATION.ID.KNIGHT, VOCATION.ID.ELITE_KNIGHT, VOCATION.ID.EPIC_KNIGHT}, self:getVocation():getId())
end

Help please.
Post automatically merged:

Only EK with dealing physical damage will get elemental damage on skill
*/
if (damage.origin == ORIGIN_SPELL) {
if (player->getVocationId() != 4 && player->getVocationId() != 8 && player->getVocationId() != 12) {
damage.primary.value = damage.primary.value + damage.secondary.value;
damage.secondary.type = COMBAT_NONE;
damage.secondary.value = 0;
}
}

}

Fixed, i add to events.cpp "&& player->getVocationId() != 12" (new voc have number 12)
 
Last edited:
Back
Top