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

magic effects from the client

ianelli

Ramza
Joined
Mar 18, 2010
Messages
125
Reaction score
47
Location
Brazil
Hi, does anybody know a way to send magic effects from the client? I mean, not from the server , lol :p 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:

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 :p
 
Last edited:
Only thing I understood:

22259234.jpg
 
Back
Top