hey, i have one problems. how i can block item id 2433 use by sorcerer,druid,paladin?
only knight can equip this weapon
my code
now all profesion can equip and use this weapon
only knight can equip this weapon
my code
Code:
if(weaponid == 2433 & player->vocation == VOCATION_KNIGHT)
{
dist = g_config.swordxx;
if (abs(player->pos.x - attackedCreature->pos.x) > dist ||
abs(player->pos.y - attackedCreature->pos.y) > dist)
return;
runeAreaSpell.attackType = ATTACK_FIRE;
runeAreaSpell.animationEffect = NM_ANI_FIRE;
runeAreaSpell.hitEffect = NM_ME_FIRE_AREA;
runeAreaSpell.areaEffect = NM_ME_FIRE_AREA;
runeAreaSpell.animationColor = 0xC7;
runeAreaSpell.minDamage = 14;
runeAreaSpell.maxDamage = 24;
mana = g_config.swordxx;
}
now all profesion can equip and use this weapon