10000 > 9500 = false?

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.

Moderator: POL Developer

Post Reply
Poi
Grandmaster Poster
Posts: 298
Joined: Fri Apr 14, 2006 9:36 am

10000 > 9500 = false?

Post by Poi »

I am at a total loss here.. In my script's if statement:
if (text > GetAmtGoldBank(bankbox))

and for testing purposes, text is 10000 and the function returns 9500(I made triple sure that there are in fact the values)
but for some (probably) simple reason its turning out false.. if I put 10000 > 9500 directly it works, so I'm assuming it has something to do with using variables, so I am wondering if there is some sort of int() or num() function I can use that converts the variables to... calculatable(for lack of a better word) numbers
mr bubbles
Grandmaster Poster
Posts: 120
Joined: Thu Jan 18, 2007 2:34 am

Re: 10000 > 9500 = false?

Post by mr bubbles »

Try this

Code: Select all

if (CInt(text) > GetAmtGoldBank(bankbox))
Poi
Grandmaster Poster
Posts: 298
Joined: Fri Apr 14, 2006 9:36 am

Re: 10000 > 9500 = false?

Post by Poi »

Aha! perfect! Thank you so much :)
Post Reply