Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void world_timedmessage(void *world_void)
- {
- World *world = static_cast<World *>(world_void);
- UTIL_PTR_VECTOR_FOREACH(world->characters, Character, ch)
- {
- std::string mess;
- int r = util::rand(1,3);
- if(r == 1){mess = " Be sure to #save after getting items and lvls! "; }
- else if (r == 2){mess = " Be sure to checkout the forum! "; }
- else if (r == 3){mess = " Remember, Server is still in development so bare with us! "; }
- PacketBuilder builder(PACKET_TALK, PACKET_ANNOUNCE);
- builder.AddBreakString(0 ?"serverbot" : "Serverbot");
- builder.AddBreakString(mess);
- character->player->client->SendBuilder(builder);
- }
- }
Add Comment
Please, Sign In to add comment