-
Posted by andywagner59 on Fri, 09 Jan 2009 06:15:54
Hello James, Bryan & Matthew,
i have recently bought your "World of Warcraft Programming" and am delighted...Money well spent I say...Thank you very much....
However since I am speaking of money, I have noticed that the reference to the getMoney function on your website is full of bugs and doesn't work as it is depicted....
Here is the correct version of the code
money = GetMoney()
gold = floor(abs(money / 10000))
silver = floor(abs(mod( money / 100, 100)))
copper = floor(abs(mod(money,100)))Hope this helps....
Andy
-
Posted by andywagner59 on Fri, 09 Jan 2009 06:15:54
Hello James, Bryan & Matthew,
i have recently bought your "World of Warcraft Programming" and am delighted...Money well spent I say...Thank you very much....
However since I am speaking of money, I have noticed that the reference to the getMoney function on your website is full of bugs and doesn't work as it is depicted....
Here is the correct version of the code
money = GetMoney()
gold = floor(abs(money / 10000))
silver = floor(abs(mod( money / 100, 100)))
copper = floor(abs(mod(money,100)))Hope this helps....
Andy
-
Posted by jnwhiteh on Fri, 09 Jan 2009 10:57:28
Thanks for the update. All of these pages are are editable by any logged in user so feel free to edit them next time! I've changed the example in this case.
-
Posted by andywagner59 on Fri, 09 Jan 2009 14:30:05
Olla,
i did not realise I could do that, but i will sure to change anything i come across....
thanks again for the great book...
Andy