PenUltima Online

It is currently Fri Oct 10, 2008 10:52 am

All times are UTC - 8 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: small bug
PostPosted: Tue Aug 08, 2006 12:04 pm 
Offline

Joined: Mon Jun 19, 2006 4:48 pm
Posts: 79
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:
Image

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...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 08, 2006 12:09 pm 
Offline

Joined: Mon Jun 19, 2006 4:48 pm
Posts: 79
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?)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 25, 2006 3:02 am 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 420
Location: San Diego, California
Fixed (finally)

_________________
-Austin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl