Getting Carried money from a player
I noticed that if you have certain amounts of platinum that the server goes nuts over and thinks you have negative money.
Here is an example Code:
Sub EVENT_SAY Now if I am holding 2,500,000 platinum the NPC will tell me I am holding... -1,794,967,296 which I know is dealt with in copper. Is there a way to just check how much platinum a player has through a quest script? So I can avoid this limitation of the GetCarriedMoney? It seems 2,147,483,647 copper is the max it will tell you the player has before it starts going negative and GetCarriedMoney is an int64 which should go much higher than that. If anyone can shed some light on this for me it would be awesome thank you! |
Look at XS_Client_GetCarriedMoney, specifically:
Code:
int RETVAL; |
Well any idea on how to find how much platinum a player has in his inventory using Perl?
|
GetCarriedMoney() totals all carried denominations, not just platinum (and converts the total to copper value, as you already know). you'd have to modify the source to make an interface that only does platinum (or whatever denomination you chose).
|
Quote:
So in other words I can't see the total money a player holds due to the limitations of GetCarriedMoney() ? Without modifying the source that is. |
sort of. i don't think perlxs can easily deal with int64 values, which is the data type that the server source is using when calculates the value of all of the different denominations of coin carried by the client.
|
Ah that sucks ... maybe we could get a GetCarriedPlatinum() .. gold silver copper ect since those at least go up to 2billion which is more than enough.
Edited my GetCarriedMoney to only show platinum and it seemed to work just fine but doesn't help my quest since its for another server heh |
Quote:
|
All times are GMT -4. The time now is 03:09 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.