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 fix in distro script

 
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
Lagoon



Joined: 05 Mar 2006
Posts: 118
Location: Italy

PostPosted: Tue Aug 29, 2006 7:08 pm    Post subject: Small fix in distro script Reply with quote

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

Author Message
Austin
POL Developer


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

PostPosted: Wed Aug 30, 2006 7:40 pm    Post subject: Reply with quote

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.

Author Message
Lagoon



Joined: 05 Mar 2006
Posts: 118
Location: Italy

PostPosted: Wed Aug 30, 2006 8:10 pm    Post subject: Reply with quote

just reading the script, I had no idea about how it works internally, I tought having them both doubles would be the best thing Razz

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