PenUltima Online

It is currently Fri Sep 05, 2008 12:16 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 fix in distro script
PostPosted: Tue Aug 29, 2006 3:08 pm 
Offline

Joined: Sun Mar 05, 2006 7:25 am
Posts: 118
Location: Italy
097\Distro\pkg\mobiles\brainAI\scripts\combat\spellCombat.ecl
Line 91

elseif ( AP_GetVital(npc, MANA) <= 10 )

should be

elseif ( AP_GetVital(npc, MANA) <= 10.0 )
or
elseif ( CInt(AP_GetVital(npc, MANA)) <= 10 )
because AP_GetVital returns a double


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 30, 2006 3:40 pm 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 405
Location: San Diego, California
Internally, I don't think they both need to be the same. Itll still check if its 0.1 above or below what its being compared to.

Did you find the bug just reading the script? Or was it actually not working when used? If the latter, ill change it.

_________________
-Austin


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 30, 2006 4:10 pm 
Offline

Joined: Sun Mar 05, 2006 7:25 am
Posts: 118
Location: Italy
just reading the script, I had no idea about how it works internally, I tought having them both doubles would be the best thing :P


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: Yahoo [Bot] 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