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

Line of code corresponding to spells in pvp

Drakens

New Member
Joined
Jul 10, 2008
Messages
19
Reaction score
0
Hi!
I have a problem. I'm using Devland 8.0 and I need to find line in code corresponding to spell used on players, eg. I want to return error "You may not attack player with spell". I searched everywhere. Please help me.
 
Search in combat.cpp:

it can be one of this, depending on the function you whant:

ReturnValue Combat::canDoCombat(const Creature* attacker, const Creature* target)
ReturnValue Combat::canTargetCreature(const Player* player, const Creature* target)
bool Combat::isProtected(Player* attacker, Player* target)

But i dont know if Devland 8.0 has that file or functions!
 
Back
Top