Re: Warehouse (.war) files
Sorry i not got it very well... you want change the values of gold saved in warehouse? :?:
Re: Warehouse (.war) files
I could use that too, but in fact I just want to understand how to read my gold value written in the .war file.
The character.dat(userdata) is really easy to understand(hex), but I'm not getting how its done in the warehouse file.
Re: Warehouse (.war) files
http://forum.ragezone.com/f286/war-s...3/#post5724387
Read the words of the master young padwan. :wink:
Also, a search before asking would help. :lol:
Re: Warehouse (.war) files
I've tried searching for ".war files" ".war warehouse files" "warehouse files" and none of them linked me to that topic.
Thanks =)
Edit: the information given by Gregoory couldn't fill my need about the gold values. The topic seems to be about items only. Any ideas ? :\
The gold value should be easier to read, shouldn't it ?
Re: Warehouse (.war) files
That's funny, because before your new thread This Search would have had it as the first item on the list, and you'd have struck gold if you said "I'm feeling lucky" :wink: Sadly, that is no longer the case, as you've made the top of Googles hit list. (boo hiss:thumbdown: jk)
I'll have a look. The last item seems too big.
Re: Warehouse (.war) files
I've put 1 (one) gold into my warehouse, then added another one (making it 2) to check what exactly would be modified.
It looks like it's not that simple, at least to me, compared to reading the gold value from .dat files.
If necessary, I can attach the war files here.
Basically, I just want this information to make a tool that can mass-read the gold from all users, and if necessary, edit them.
Thanks.
Re: Warehouse (.war) files
I believe the XPT Account Manager has a similar facility? I don't think it works "on mass" but does allow you to go in and change the WH Gold from your browser.
(I could be wrong, I've never had it running, just looked at the source)
Re: Warehouse (.war) files
Oh. I'll take a look.
I know XPT A.M has a lot of reading on .dat files. I'll check if theres something related to the warehouse.
Even if it there isnt a 'mass' tool, my point here is understand how it reads the gold value so I can work on my own tool.
Thanks for your time.
Edit: Humm, just looked at xpt account manager, sadly it has nothing to do with war files =\
Re: Warehouse (.war) files
EditionPK Painel has this in Painel\banco\banco.inc.php
PHP Code:
if (!$_SESSION["charDir"]) {
echo "";
} else {
$fOpen = fopen($_SESSION["charDir"], "r");
$fRead =fread($fOpen,4096);
@fclose($fOpen);
// details
$gold1 = bin2hex(substr($fRead,0x154,1));
$gold2 = bin2hex(substr($fRead,0x155,1));
$gold3 = bin2hex(substr($fRead,0x156,1));
$gold4 = bin2hex(substr($fRead,0x157,1));
$gold = hexdec("$gold4"."$gold3"."$gold2"."$gold1");
$goldkk = $gold/1000000;
$goldkk = round($goldkk, 2);
}
But it doesn't look right. As if it's decoding the .war to the "banco.dat" file first, and then reading that.
Painel\bau\bau.inc.php seems to allow a player to switch between 1 of 3 different warehouses. :s
Re: Warehouse (.war) files
Yes, those are for the dat files, which are not the same as the war file =\
I hope Gregoo (or someone else) knows how to read the gold value.
Thanks for your help.
Re: Warehouse (.war) files