PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
small bug

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Development Discussion
Display posts from previous:   

Author Message
DeiviD



Joined: 19 Jun 2006
Posts: 79

PostPosted: Tue Aug 08, 2006 4:04 pm    Post subject: small bug Reply with quote

running on
Code:
POL097-2006-07-28 Coregina (VS.NET 2003)
compiled on Jul 28 2006 22:34:07


most recent distro - not sure if this is an core issue but im guessing its not

this is what happens:


notice the damage i deal is displayed in the upper left corner... i couldnt find out what causes it, but happens when im attacking more than one creature...

Author Message
DeiviD



Joined: 19 Jun 2006
Posts: 79

PostPosted: Tue Aug 08, 2006 4:09 pm    Post subject: Reply with quote

oh wait

mongbats die with a single hit, so theyre prolly die'ing before the data is send, then you send it above an unexisting thing's head...

how to fix it:

on :damage:damage.inc you just change this:

Code:
function ApplyDamageEX(mobile, amount, type:=DMG_FORCED, source:=0)
   amount := CInt(amount);
   amount := CalcDamageAmount(mobile, amount, type);

   if ( amount == error )
      return 0;
   elseif ( amount < 0 )
      HealDamage(mobile, Abs(amount));
   else
      if ( source )
         SetLastDamageInfo(mobile, amount, type, source);
         SetScriptController(source);
      endif
      ApplyDamage(mobile, amount);
   endif

   var settings := DMG_GetSettingsCfgElem("Settings");
   if ( settings.DisplayDamage )
      DisplayDamage(mobile, amount, source);
   endif

   return amount;
endfunction


into this:
Code:
function ApplyDamageEX(mobile, amount, type:=DMG_FORCED, source:=0)
   amount := CInt(amount);
   amount := CalcDamageAmount(mobile, amount, type);

   var settings := DMG_GetSettingsCfgElem("Settings");
   if ( settings.DisplayDamage )
      DisplayDamage(mobile, amount, source);
   endif

   if ( amount == error )
      return 0;
   elseif ( amount < 0 )
      HealDamage(mobile, Abs(amount));
   else
      if ( source )
         SetLastDamageInfo(mobile, amount, type, source);
         SetScriptController(source);
      endif
      ApplyDamage(mobile, amount);
   endif

   return amount;
endfunction

how can i submit some kinda thing like this into the distro? (aka how do i help?)

Author Message
Austin
POL Developer


Joined: 30 Jan 2006
Posts: 354
Location: San Diego, California

PostPosted: Fri Aug 25, 2006 7:02 am    Post subject: Reply with quote

Fixed (finally)

Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Development Discussion All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty