Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.82 KB | None | 0 0
  1. Battleground.c
  2.  
  3.         if( nameid && amount > 0 )
  4.         {
  5.        
  6.             short get_amount = amount;
  7.             if (sd->vipservice > timer->gettick()) // Bonus points for VIP [Cydh]
  8.                 get_amount += battle_config.bg_vip_reward;
  9.            
  10.  
  11. Battle.h
  12.     int woe_reserved_char_id;
  13. +   int bg_vip_reward; // [Cydh]
  14. } battle_config;
  15.  
  16. Battle.c
  17.     { "woe_reserved_char_id",               &battle_config.woe_reserved_char_id,            999999, 0,      INT_MAX,        },
  18. +   { "bg_vip_reward",                      &battle_config.bg_vip_reward,                   0,      0,      MAX_AMOUNT,     },
  19.     /**
  20.  
  21. Pc.c
  22.     sd->kafraPoints = pc_readaccountreg(sd,script->add_str("#KAFRAPOINTS"));
  23. +   sd->vipservice = pc_readaccountreg(sd,script->add_str("#VIPSERVICE"));
  24.  
  25.     // Cooking Exp
  26.  
  27. Pc.h
  28.     unsigned int bg_id;
  29. +   int64 vipservice;
  30.     struct battleground_data *bmaster_flag;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement