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

Lua spells, poff

Joined
Dec 22, 2007
Messages
1,984
Reaction score
2
How can I do so the spells doesn't send a poff?

Code:
doSendMagicEffect(createPos, CONST_ME_POFF)
I can't find this in my scripts...
 
Check your global.lua, it must be part of the exhaust system, thats why you don't see it

Nope.. it's not even global.lua, it's been split into multiple (better organized) files in data/lib/*.lua

@Topic
So, I've found it (sources):

spells.cpp, Lines 607 - 614:
PHP:
	if(exhausted && !player->hasFlag(PlayerFlag_HasNoExhaustion))
	{
		player->sendCancelMessage(RET_YOUAREEXHAUSTED);
		if(isInstant())
			g_game.addMagicEffect(player->getPosition(), NM_ME_POFF);

		return false;
	}

Perhaps you should try removing these 2 lines and compiling:
PHP:
        if(isInstant())
            g_game.addMagicEffect(player->getPosition(), NM_ME_POFF);

@Lata~
I think I'm right ;x ... or no =)
 
problem is not just with exhausted, problem is with level requipments, also :>
Spells.cpp
Line 661:
if((int32_t)player->getLevel() < level)
{
player->sendCancelMessage(RET_NOTENOUGHLEVEL);
g_game.addMagicEffect(player->getPosition(), NM_ME_POFF);
return false;
}


if problem is just becouse poff effect, then need to delete
g_game.addMagicEffect(player->getPosition(), NM_ME_POFF);
in both cases, if not, delete this:
player->sendCancelMessage(RET_NOTENOUGHLEVEL);
g_game.addMagicEffect(player->getPosition(), NM_ME_POFF);
it's not really a fix, just temporable fix to prevent crashes... I have no time, to look why crash...let wait for official fix ;)
 
Back
Top