Hello, i have a problem
i add
in protocolgame.cpp
and change magiceffect.lua for
and i can still only use 69 effects...
- - - Updated - - -
Help me?
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?