• 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 War system debug on kill

Suxex

Member
Joined
Aug 13, 2007
Messages
391
Reaction score
5
Location
Halland - Getinge
Hey, When two guilds have started a war and one player who is on the war dies, all of his guild members gets client debug. I have searched the forum and have not found any solution.
Can anyone help me?
Thanks in advance.
 
Here it is Cykotitan :)

Error.bmp
 
So you are saying that we shall change this:
Code:
channel->talk("", SPEAK_CHANNEL_RA, s.str());
to
Code:
channel->talk("", TALKTYPE_CHANNEL_RA, s.str());
?

because this is in my constant.lua
Code:
TALKTYPE_FIRST = 1
TALKTYPE_SAY = TALKTYPE_FIRST
TALKTYPE_WHISPER = 2
TALKTYPE_YELL = 3
TALKTYPE_PRIVATE_PN = 4
TALKTYPE_PRIVATE_NP = 5
TALKTYPE_PRIVATE = 6
TALKTYPE_CHANNEL_Y = 7
TALKTYPE_CHANNEL_W = 8
TALKTYPE_RVR_CHANNEL = 9
TALKTYPE_RVR_ANSWER = 10
TALKTYPE_RVR_CONTINUE = 11
TALKTYPE_BROADCAST = 12
TALKTYPE_CHANNEL_RN = 13
TALKTYPE_PRIVATE_RED = 14
TALKTYPE_CHANNEL_O = 15
TALKTYPE_CHANNEL_RA = 17
TALKTYPE_MONSTER = 19
TALKTYPE_MONSTER_YELL = 20
TALKTYPE_LAST = TALKTYPE_MONSTER_YELL

Hope you can help me!
Thanks in advance
 
Change RA TO RN

channel->talk("", SPEAK_CHANNEL_RN, s.str());

;P give rep now or will die..

Lua:
    if((channel = g_chat.getChannel(list[0].getKillerCreature()->getPlayer(), CHANNEL_GUILD)))
    {
        s << "Opponent " << player->getName() << " was killed by " << killers << ".";
        if(score)
            s << " The new score is " << war.frags[war.type] << ":"
                << war.frags[war.type == WAR_GUILD] << " frags (limit " << war.limit << ").";

        channel->talk("", SPEAK_CHANNEL_RN, s.str());
    }
 
Back
Top