##### Newbie Spellweaver

- Joined
- Aug 31, 2012

- Messages
- 77

- Reaction score
- 1

e.g

Romel (Account) - "PostBox/123/romel.dat"

The question is where or how to find the "123" name of the folder.

Thanks.

Join our community of MMORPG enthusiasts and private server developers! By registering, you'll gain access to in-depth discussions on source codes, binaries, and the latest developments in MMORPG server files. Collaborate with like-minded individuals, explore tutorials, and share insights on building and optimizing private servers. Join us today and unlock the full potential of MMORPG server development!

Join Today!You should upgrade or use an alternative browser.

- Thread starter rdcodester
- Start date

- Joined
- Aug 31, 2012

- Messages
- 77

- Reaction score
- 1

e.g

Romel (Account) - "PostBox/123/romel.dat"

The question is where or how to find the "123" name of the folder.

Thanks.

e.g

Romel (Account) - "PostBox/123/romel.dat"

The question is where or how to find the "123" name of the folder.

Thanks.

you can use this to return the folder number

Code:

```
function numDir($name)
{
$character=array
(
"0"=>"48",
"1"=>"49",
"2"=>"50",
"3"=>"51",
"4"=>"52",
"5"=>"53",
"6"=>"54",
"7"=>"55",
"8"=>"56",
"9"=>"57",
"a"=>"65",
"b"=>"66",
"c"=>"67",
"d"=>"68",
"e"=>"69",
"f"=>"70",
"g"=>"71",
"h"=>"72",
"i"=>"73",
"j"=>"74",
"k"=>"75",
"l"=>"76",
"m"=>"77",
"n"=>"78",
"o"=>"79",
"p"=>"80",
"q"=>"81",
"r"=>"82",
"s"=>"83",
"t"=>"84",
"u"=>"85",
"v"=>"86",
"w"=>"87",
"x"=>"88",
"y"=>"89",
"z"=>"90",
"A"=>"65",
"B"=>"66",
"C"=>"67",
"D"=>"68",
"E"=>"69",
"F"=>"70",
"G"=>"71",
"H"=>"72",
"I"=>"73",
"J"=>"74",
"K"=>"75",
"L"=>"76",
"M"=>"77",
"N"=>"78",
"O"=>"79",
"P"=>"80",
"Q"=>"81",
"R"=>"82",
"S"=>"83",
"T"=>"84",
"U"=>"85",
"V"=>"86",
"W"=>"87",
"X"=>"88",
"Y"=>"89",
"Z"=>"90",
);
for($i=0;$i<strlen($name);$i++)
{
$total+=$character[$name[$i]];
if($total>=256)
$total=$total-256;
}
return $total;
}
```

- Joined
- Aug 31, 2012

- Messages
- 77

- Reaction score
- 1

you can use this to return the folder number

Code:`function numDir($name) { $character=array ( "0"=>"48", "1"=>"49", "2"=>"50", "3"=>"51", "4"=>"52", "5"=>"53", "6"=>"54", "7"=>"55", "8"=>"56", "9"=>"57", "a"=>"65", "b"=>"66", "c"=>"67", "d"=>"68", "e"=>"69", "f"=>"70", "g"=>"71", "h"=>"72", "i"=>"73", "j"=>"74", "k"=>"75", "l"=>"76", "m"=>"77", "n"=>"78", "o"=>"79", "p"=>"80", "q"=>"81", "r"=>"82", "s"=>"83", "t"=>"84", "u"=>"85", "v"=>"86", "w"=>"87", "x"=>"88", "y"=>"89", "z"=>"90", "A"=>"65", "B"=>"66", "C"=>"67", "D"=>"68", "E"=>"69", "F"=>"70", "G"=>"71", "H"=>"72", "I"=>"73", "J"=>"74", "K"=>"75", "L"=>"76", "M"=>"77", "N"=>"78", "O"=>"79", "P"=>"80", "Q"=>"81", "R"=>"82", "S"=>"83", "T"=>"84", "U"=>"85", "V"=>"86", "W"=>"87", "X"=>"88", "Y"=>"89", "Z"=>"90", ); for($i=0;$i<strlen($name);$i++) { $total+=$character[$name[$i]]; if($total>=256) $total=$total-256; } return $total; }`

Thank you man. now i can get the folder number.

you can use this to return the folder number

Code:`function numDir($name) { $character=array ( "0"=>"48", "1"=>"49", "2"=>"50", "3"=>"51", "4"=>"52", "5"=>"53", "6"=>"54", "7"=>"55", "8"=>"56", "9"=>"57", "a"=>"65", "b"=>"66", "c"=>"67", "d"=>"68", "e"=>"69", "f"=>"70", "g"=>"71", "h"=>"72", "i"=>"73", "j"=>"74", "k"=>"75", "l"=>"76", "m"=>"77", "n"=>"78", "o"=>"79", "p"=>"80", "q"=>"81", "r"=>"82", "s"=>"83", "t"=>"84", "u"=>"85", "v"=>"86", "w"=>"87", "x"=>"88", "y"=>"89", "z"=>"90", "A"=>"65", "B"=>"66", "C"=>"67", "D"=>"68", "E"=>"69", "F"=>"70", "G"=>"71", "H"=>"72", "I"=>"73", "J"=>"74", "K"=>"75", "L"=>"76", "M"=>"77", "N"=>"78", "O"=>"79", "P"=>"80", "Q"=>"81", "R"=>"82", "S"=>"83", "T"=>"84", "U"=>"85", "V"=>"86", "W"=>"87", "X"=>"88", "Y"=>"89", "Z"=>"90", ); for($i=0;$i<strlen($name);$i++) { $total+=$character[$name[$i]]; if($total>=256) $total=$total-256; } return $total; }`

this is over complicated. each characters value is its ascii value.

Code:

```
function numDir($name){
$total = 0;
for($i=0;$i<strlen($name);$i++) {
$total+=ord(strtoupper($name[$i]));
if($total>=256) {
$total=$total-256;
}
}
return $total;
}
```

I have a php script that does it all, will share here shortly

edit: here is the complete functional script.

I have stripped out my security protections for obvious reasons so you should add some to stop players sending themselves gifts.

To view the content, you need to sign in or register

About: Takes

5/6 GET/POST values:

user (account), chName (character, use *** if its for any char on the account), itCode (item code, use gg101/gg102 for gold and exp), spec (item spec, or qty for gold/exp), msg (what it shows as the message with the item) and val (use for value for gold/exp, will overwrite spec if its set)

Will check if the character exists on that account (if you specify the char name),

also logs all events of use.

returns the message in json format so that its easy to use with AJAX.

Last edited:

- Joined
- Aug 31, 2012

- Messages
- 77

- Reaction score
- 1

Just a fun little side note, you can also add a password to the postbox, so you can not get the item unless you have it

Password goes at the end.

oohh hahahaha this is nice a little verification code.

RaGEZONE® is the top forum for MMO, MMORPG, and mobile game development. We provide binaries, source codes, and tutorials for your favorite games, making it the go-to resource for developers and fans. You can also find and share private servers, fostering a vibrant gamer community.

- Members online
- 940

- Guests online
- 3,281

- Total visitors
- 4,221

Totals may include hidden visitors.