Limiting Summon's damage.

If you want to help us or give some corrections / codes, put it here ;)

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Limiting Summon's damage.

Postby fransh on Thu Oct 18, 2012 9:20 pm

I noticed that on a high-rate server summons do an incredible amount of damage (RevIII doesn't seem to fix it for me).I think it was about 10k, for anyone not wanting to make a big deal out of it: A limit including random amounts of damages (20 to 120) that seem reasonable for Player versus Player (Mob damages not affected)
Tested

  1.  
  2. float summonrand = GServer->RandNumber( 20, 120 );
  3. if (IsSummon());
  4.     {
  5.         if (Enemy->IsPlayer())
  6.     {
  7.             if (attack > 450);
  8.     {
  9.                 attack = 500 + summonrand;
  10.  
  11.     }
  12.     }
  13.     }
fransh
Smoulie
Smoulie
 
Posts: 34
Joined: Fri Jul 09, 2010 10:38 am

Return to Submit Code

Who is online

Users browsing this forum: No registered users and 4 guests

cron