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

Red spells, autoClean, no priv with GMs

KaczooH

Co tu wpisac?
Joined
Oct 12, 2007
Messages
904
Reaction score
0
Hi! I'd find it nice if somebody could say how to make:

1) Red spells (like monsters yells) so that they wont appear in default channel. If it's not to compilated it will be nice if they can disappear quiter than standard text.

2) Autoclean in sources with ability to set the time beteween cleans in config.lua

3) Not being able to start priv with GM (GM is able to start priv with player) with text that "You cannot message this player." or so.

I think that it will be usefull not only for me but also for others.

Yours, KaczooH
 
1)

game.cpp

find:

result = g_spells->playerSaySpell(player, type, text);
if(result == TALKACTION_BREAK)
return internalCreatureSay(player, SPEAK_SAY, text);
else if(result == TALKACTION_FAILED)
return true;

return internalCreatureSay(player, SPEAK_SAY, text);

Change SPEAK_SAY to SPEAK_MONSTER_SAY or whatever you want.

2. You can copy it from other distro like B-Fox.

3. I think thats not usefull, you can use included 'ignore' player function.
 
Well, 1st works ;) Thanks, I was changing exactly this line before but I didn't realise that the solution is so simple.

2) If I did managed, I wouldn't ask for that :p

3) I think that it is. I'm not ignoring them just saying them that I don't have time to answer them on PM and they're able to catch me on Help Channel.
 
Back
Top