Small fix in distro script

Archive of posts related to former distro versions. Be aware that posts here do not refer to the current distro and may not work.
Locked
Lagoon
Grandmaster Poster
Posts: 118
Joined: Sun Mar 05, 2006 7:25 am

Small fix in distro script

Post by Lagoon »

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
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

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.
Lagoon
Grandmaster Poster
Posts: 118
Joined: Sun Mar 05, 2006 7:25 am

Post by Lagoon »

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
Locked