Advertisement
Guest User

Untitled

a guest
May 26th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. int EEffect, EX, EY,MAP;
  2. for(int i = 0 ; i < static_cast<int>(this->server->world->effect_config["LocationAmount"]) ; i++){
  3. EEffect = static_cast<int>(this->server->world->effect_config[util::to_string(i+1) + ".effect"]);
  4. EX = static_cast<int>(this->server->world->effect_config[util::to_string(i+1) + ".x"]);
  5. EY = static_cast<int>(this->server->world->effect_config[util::to_string(i+1) + ".y"]);
  6. MAP = static_cast<int>(this->server->world->effect_config[util::to_string(i+1) + ".mapid"]);
  7. if (this->player->character->paperdoll[Character::Weapon] == 510 && this->player->character->mapid == MAP)
  8. {
  9. for(int i = 0; i< 10; i++)
  10. {
  11. for(int j = 0; j < 10;i++)
  12. {
  13. reply.SetID(PACKET_EFFECT, PACKET_AGREE);
  14. reply.AddChar(EX); // x
  15. reply.AddChar(EY); // y
  16. reply.AddShort(EEffect); // effect
  17. CLIENT_SEND(reply);
  18. UTIL_PTR_LIST_FOREACH(this->player->character->map->characters, Character, character)
  19. {
  20. if (*character != this->player->character && this->player->character->InRange(*character))
  21. {
  22. character->player->client->SendBuilder(reply);
  23. }
  24. }
  25. }
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement