Register for your free account! | Forgot your password?

You last visited: Today at 08:12

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



0x704C item type calculation - vSro

Discussion on 0x704C item type calculation - vSro within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
Muhab*'s Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 885
Received Thanks: 1,419
Post 0x704C item type calculation - vSro

Hello ppl,

Not sure if this gonna help sm1 or not but it might be useful for you at some point.

This the 0x704C item type calculation for item usage.
First of all, i will write down the packet structure.

Opcode: 0x704C
byte slot
ushort itemType
uint uniqueID (optional - only if you are using pet items)

itemType is a calculation of 5 values (CashItem, TypeID1, TypeID2, TypeID3, TypeID4)

itemType = CashItem + (TypeID1 * 3) + (TypeID2 * 32) + (TypeID3 * 128) + (TypeID4 * 2048)

Good luck reversing the equation...

Note: 0xB04C [S->C] is using the same calculation.
Muhab* is offline  
Thanks
11 Users
Old 11/23/2017, 21:18   #2
 
elite*gold: 8
Join Date: Sep 2014
Posts: 625
Received Thanks: 178
Good catch, didn't know that actually. Greetings

Hint: You can express some of the multiplications by shifting bits.
qqdev is offline  
Old 04/22/2018, 04:00   #3

 
KingDollar's Avatar
 
elite*gold: 1117
Join Date: Dec 2013
Posts: 858
Received Thanks: 806
nice one, but first calculation is wrong
it's typeid1 * 4 instead of 3
KingDollar is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
Item.sdata type and type id expantion
10/13/2013 - Shaiya Private Server - 7 Replies
most types have 255 items. like type 1 can have 1 to 255 items the types, 67, 68, 70, 71. (light armor) and 82, 83, 85, 86 (fury armor) hold only 54 items is there a way to expand those from 48 to 255, so i can ad more armor / elemental tops ? ( ep4 server )
Need help with packet 0x704C (Using any item in inventory)
02/24/2013 - SRO Coding Corner - 6 Replies
I have this packet used for use any item in the inventory i think it is like this (without length , opcode and checksum) 0D EC09 but what EC09 mean??
Need item type and token type boot
03/18/2008 - Conquer Online 2 - 1 Replies
Hi All programers and makers of boots, Great job. Could some one make item and token type boot for patch 5118. Please



All times are GMT +1. The time now is 08:15.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.