Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Help!]MU PHP : reward exchange and item check counts in warehouse.

Newbie Spellweaver
Joined
May 9, 2020
Messages
37
Reaction score
10
Hello everyone, I have a question about developing PHP for rewards.
such as

#Subject: 1 to 3 i'm fixed#
1. Check if there are 120 "Box of Luck" in this user's warehouse.
2. If true, rewards can be redeemed for 1 box "GM Gift" but if not true, the rewards button cannot be pressed.
2.1 Or, if true, rewards can be exchanged for "100 Credits" but if not true they cannot hit the rewards button.
3. How to check the amount of "Box of Luck" and show it on the web page that "Box of Luck" in the warehouse, how many pieces?

We2GRaX - [Help!]MU PHP : reward exchange and item check counts in warehouse. - RaGEZONE Forums



z7Exa1P - [Help!]MU PHP : reward exchange and item check counts in warehouse. - RaGEZONE Forums


** What kind of code do I have to write? // Thank you very much. **
 

Attachments

You must be registered for see attachments list
Last edited:
Joined
Oct 8, 2006
Messages
740
Reaction score
289
zipper20032 looks nice man :)I think you are missing jewel of guardian options there in pink.0B 00 00 12 34 56 78 00 00 E0 00 00 00 00 00 00 --> Box Of Luck - Serial manually setRed - Item IDOrange - Item LevelOrange- Item DurabilityGreen - Item SerialTurquoise - Excellent Item Info Pink - Ancient Item InfoPink - Item TypeGrey - Guardian OptionBlue - Harmony OptionBlue - Harmony LevelBlack - Sockets
Nice mate!!! Thanks for the details for the item serial. xDD
 
Upvote 0
Joined
Oct 8, 2006
Messages
740
Reaction score
289
@zipper20032 actually still have to dig into that ))

I've understood how the positions are set into the warehouse.

Total 32 bytes chunks splitted are 239 starting from 0 cause it's an array.
Why 239(240 actually), cause it's taking in consideration even the Extended Warehouse, so there are 120 + 120 positions.

First 32 bytes = POS 0(slot position 1)
Next 32 bytes = POS 1(slot position 2)
Next 64 + 32 bytes = POS 2(slot position 3)
.......................................
Last 207 + 32 bytes = POS 239(slot position 240) - Last slot from the Extended Warehouse, not main warehouse.
 
Upvote 0
Newbie Spellweaver
Joined
May 9, 2020
Messages
37
Reaction score
10
Upvote 0
Joined
Oct 8, 2006
Messages
740
Reaction score
289
That's very cool. Good sources. But I'm more used to zTeam S6E3(Exodus) xD


@volchok

Found the Inventory :thumbup: and slots for main hand and off hand

First 12 blocks of 16 bytes each are the equipped items. 236 chunks of 16 bytes.


8x8 main inventory = 64 slots
Equipment = 12 equipment slots
ExtendedInventory 1 = 32 slots
ExtendedInventory 2 = 32 slots

Code:
[B]//Equipped Items[/B]
0F18FF0000000000004000FFFFFFFFFF - Main Hand - 0
0085140000000000004000FFFFFFFFFF - Off Hand - 1
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 2
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 3
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 4
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 5
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 6
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 7
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 8
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 9
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 10
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 11

[B]//Inventory starts here[/B]
14081E000000000000D000FFFFFFFFFF - 12
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
14101E000000000000D000FFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
0A9D220000000000004000FFFFFFFFFF - Here it's a 2 x 2 item
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
0718FF0000000000004000FFFFFFFFFF
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Feb 11, 2021
Messages
17
Reaction score
15
That's very cool. Good sources. But I'm more used to zTeam S6E3(Exodus) xD


@volchok

Found the Inventory :thumbup: and slots for main hand and off hand

First 12 blocks of 16 bytes each are the equipped items. 236 chunks of 16 bytes.


8x8 main inventory = 64 slots
Equipment = 12 equipment slots
ExtendedInventory 1 = 32 slots
ExtendedInventory 2 = 32 slots

Code:
[B]//Equipped Items[/B]
0F18FF0000000000004000FFFFFFFFFF - Main Hand - 0
0085140000000000004000FFFFFFFFFF - Off Hand - 1
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 2
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 3
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 4
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 5
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 6
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 7
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 8
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 9
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 10
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - 11

[B]//Inventory starts here[/B]
14081E000000000000D000FFFFFFFFFF - 12
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
14101E000000000000D000FFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
0A9D220000000000004000FFFFFFFFFF - Here it's a 2 x 2 item
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
0718FF0000000000004000FFFFFFFFFF

Nice work man, saving this for future reference ))
 
Upvote 0
Joined
Oct 8, 2006
Messages
740
Reaction score
289
@muonline1996 I found that Box Of Luck having Level 1(like Box of Luck +1) is not Box of Luck +1 but other boxes items.(Fireworks, Heart of Lord, etc). So item type must be 0B 00 00 12 34 56 78 00 00 E0 00 00 00. In this moment, if you try to put a Firework, the script will see it as Box of Luck.I will readapt the PHP script.
 
Upvote 0
Back
Top