NatedogEZ
01-19-2013, 05:21 AM
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
Sub EVENT_SAY
{
my $plat = $client->GetCarriedMoney();
if($text=~/Hail/i)
{
$client->Message(315, "$plat");
}
}
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!
Here is an example
Sub EVENT_SAY
{
my $plat = $client->GetCarriedMoney();
if($text=~/Hail/i)
{
$client->Message(315, "$plat");
}
}
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!