- Joined
- Aug 10, 2008
- Messages
- 10
- Reaction score
- 0
EDIT: I just found out this only shows up to the player using !notice, at the moment, so yeah. :|
I haven't seen anyone release this anywhere, so I thought I'd release it. (I'm sure it could be cleaned up or something but it gets the job done...)
In ChatHandler.cpp, find:
Add this after it:
Change the 0 for different effects.
0 = Default "[Notice] " blue.
1 = Box message.
2 = White "GM" notice. (NAME : MESSAGE)
5 = Red notice.
EDIT: and 3 = Smega (NAME : MESSAGE)
I haven't seen anyone release this anywhere, so I thought I'd release it. (I'm sure it could be cleaned up or something but it gets the job done...)
In ChatHandler.cpp, find:
Code:
else if(command == "horntail"){
player->getMap()->getMobs()->spawnMob(8810000, player->getPosition().x, player->getPosition().y, -1, false);
player->getMap()->getMobs()->spawnMob(8810001, player->getPosition().x, player->getPosition().y, -1, false);
player->getMap()->getMobs()->spawnMob(8810002, player->getPosition().x, player->getPosition().y, -1, false);
player->getMap()->getMobs()->spawnMob(8810003, player->getPosition().x, player->getPosition().y, -1, false);
player->getMap()->getMobs()->spawnMob(8810004, player->getPosition().x, player->getPosition().y, -1, false);
player->getMap()->getMobs()->spawnMob(8810005, player->getPosition().x, player->getPosition().y, -1, false);
player->getMap()->getMobs()->spawnMob(8810006, player->getPosition().x, player->getPosition().y, -1, false);
player->getMap()->getMobs()->spawnMob(8810007, player->getPosition().x, player->getPosition().y, -1, false);
player->getMap()->getMobs()->spawnMob(8810008, player->getPosition().x, player->getPosition().y, -1, false);
}
Add this after it:
Code:
else if(command == "notice"){
string notice;
notice = msg.substr(msg.find(" "));
player->send(PacketCreator().showMessage(notice, 0, true));
}
0 = Default "[Notice] " blue.
1 = Box message.
2 = White "GM" notice. (NAME : MESSAGE)
5 = Red notice.
EDIT: and 3 = Smega (NAME : MESSAGE)
Last edited: