Code:
if(tmpStrValue == "warning")
m_messageType = MSG_STATUS_WARNING;
else if(tmpStrValue == "event")
m_messageType = MSG_EVENT_ADVANCE;
else if(tmpStrValue == "default")
m_messageType = MSG_EVENT_DEFAULT;
else if(tmpStrValue == "description")
m_messageType = MSG_INFO_DESCR;
else if(tmpStrValue == "status")
m_messageType = MSG_STATUS_SMALL;
else if(tmpStrValue == "blue")
m_messageType = MSG_STATUS_CONSOLE_BLUE;
else if(tmpStrValue == "red")
m_messageType = MSG_STATUS_CONSOLE_RED;
RaidEvent* event;
if(!xmlStrcmp(eventNode->name, (const xmlChar*)"announce"))
event = new AnnounceEvent(this, ref);
else if(!xmlStrcmp(eventNode->name, (const xmlChar*)"effect"))
event = new EffectEvent(this, ref);
else if(!xmlStrcmp(eventNode->name, (const xmlChar*)"itemspawn"))
event = new ItemSpawnEvent(this, ref);
else if(!xmlStrcmp(eventNode->name, (const xmlChar*)"singlespawn"))
event = new SingleSpawnEvent(this, ref);
else if(!xmlStrcmp(eventNode->name, (const xmlChar*)"areaspawn"))
event = new AreaSpawnEvent(this, ref);
else if(!xmlStrcmp(eventNode->name, (const xmlChar*)"script"))
event = new ScriptEvent(this, ref);
else
{
zajrzałem do rajdu to mi sie przyda xD
announce to czas czyli effect to effekt hmmm