Hi, does anybody know a way to send magic effects from the client? I mean, not from the server , lol kkkk
for example:
g_game.sendMagicEffect(pos, id)
something like that D:
---------------------------------------------
Edit: Done!
Did it that way, if anybody needs too:
on game.cpp , add that:
on game.h, put that inside public section:
done!
anytime you need to send a magic effect, just use, for example:
g_game.sendMagicEffect(2, player:getPosition())
Hope i've helped
for example:
g_game.sendMagicEffect(pos, id)
something like that D:
---------------------------------------------
Edit: Done!
Did it that way, if anybody needs too:
on game.cpp , add that:
void Game::sendMagicEffect(uint32 id, Position pos)
{
EffectPtr effect = EffectPtr(new Effect());
effect->setId(id);
g_map.addThing(effect, pos);
}
on game.h, put that inside public section:
void sendMagicEffect(uint32 id, Position pos);
done!
anytime you need to send a magic effect, just use, for example:
g_game.sendMagicEffect(2, player:getPosition())
Hope i've helped
Last edited: