Guest User

Untitled

a guest
May 16th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. void world_timedmessage(void *world_void)
  2. {
  3. World *world = static_cast<World *>(world_void);
  4. UTIL_PTR_VECTOR_FOREACH(world->characters, Character, ch)
  5. {
  6. std::string mess;
  7. int r = util::rand(1,3);
  8. if(r == 1){mess = " Be sure to #save after getting items and lvls! "; }
  9. else if (r == 2){mess = " Be sure to checkout the forum! "; }
  10. else if (r == 3){mess = " Remember, Server is still in development so bare with us! "; }
  11. PacketBuilder builder(PACKET_TALK, PACKET_ANNOUNCE);
  12. builder.AddBreakString(0 ?"serverbot" : "Serverbot");
  13. builder.AddBreakString(mess);
  14. character->player->client->SendBuilder(builder);
  15. }
  16. }
Add Comment
Please, Sign In to add comment