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

Limit effect

sandstorm

New Member
Joined
Dec 13, 2010
Messages
98
Reaction score
0
Hello, i have a problem :p


i add
void ProtocolGame::sendMagicEffect(const Position& pos, uint8_t type)
{
if(type >= MAGIC_EFFECT_NONE || !canSee(pos))
return;

NetworkMessage_ptr msg = getOutputBuffer();
if(msg)
{
TRACK_MESSAGE(msg);
AddMagicEffect(msg, pos, type);
}
}


in protocolgame.cpp



and change magiceffect.lua for


function onSay(cid, words, param, channel)
ilosc_efektow = 234

param = tonumber(param)
if(not param or param < 0 or param > ilosc_efektow) then
doPlayerSendCancel(cid, "Numeric param may not be lower than 0 and higher than "..ilosc_efektow..".")
return true
end

doSendMagicEffect(getCreaturePosition(cid), param)
return true
end


and i can still only use 69 effects...

- - - Updated - - -

Help me?
 
Back
Top