|
You last visited: Today at 04:37
Advertisement
Determining Item Owner
Discussion on Determining Item Owner within the SRO Coding Corner forum part of the Silkroad Online category.
02/06/2012, 19:24
|
#1
|
elite*gold: 0
Join Date: Dec 2006
Posts: 1,039
Received Thanks: 1,335
|
Determining Item Owner
Well I was trying to determine an item's owner in case I want my bot to pickup items that only belong to me. The item spawn packets seems to have 2 values in the end. Owner and FromOwner. FromOwner is the UID of the mob that dropped the item. Owner on the other hand doesn't seem to resemble a unique identifier so I have no idea what to do with it. Currently I'm comparing FromOwner with the UID of the last monster that gave EXP but the EXP packet isn't really the most reliable indicator. I was wondering if there might be another packet that tells me that I am actually the killer of that certain mob or if the Owner value is of any significance.
This is on vSro is that makes any difference.
|
|
|
02/06/2012, 20:39
|
#2
|
elite*gold: 0
Join Date: Jan 2009
Posts: 575
Received Thanks: 752
|
Quote:
Originally Posted by gabrola
Well I was trying to determine an item's owner in case I want my bot to pickup items that only belong to me. The item spawn packets seems to have 2 values in the end. Owner and FromOwner. FromOwner is the UID of the mob that dropped the item. Owner on the other hand doesn't seem to resemble a unique identifier so I have no idea what to do with it. Currently I'm comparing FromOwner with the UID of the last monster that gave EXP but the EXP packet isn't really the most reliable indicator. I was wondering if there might be another packet that tells me that I am actually the killer of that certain mob or if the Owner value is of any significance.
This is on vSro is that makes any difference.
|
Just log your CharData packet and some item packets. You'll notice that "Owner" id match'es with "AccountID (Others may call it different)". You can find AccountID at the end of the CharData packet (8bytes after PK/PVP flag).
|
|
|
02/07/2012, 17:05
|
#3
|
elite*gold: 0
Join Date: Dec 2006
Posts: 1,039
Received Thanks: 1,335
|
Quote:
Originally Posted by zeteris
Just log your CharData packet and some item packets. You'll notice that "Owner" id match'es with "AccountID (Others may call it different)". You can find AccountID at the end of the CharData packet (8bytes after PK/PVP flag).
|
Thanks man, really appreciated!
|
|
|
02/07/2012, 17:21
|
#4
|
elite*gold: 0
Join Date: Mar 2008
Posts: 977
Received Thanks: 75
|
Code:
//Header
a7 01 //size = 01A7(423)
13 30 //Opcode = 0x3013(vsro)
00 00 //Security & CRC
//End
//Data
///Self Info
--
8a 07 00 00 // CharType
11 // Volume
03 // level
03 // mastery can't be more than that value
9a 02 00 00 00 00 00 00 // exp
53 01 00 00 // spexp
6b 03 00 00 00 00 00 00 // gold
05 00 00 00 // sp
06 00 // aatr. pts.
04 00 00 00 00 // 5 noob icons
e4 00 00 00 // hp
f9 00 00 00 // mp
01 00 // PKDaily
00 00 // PKLVL
00 00 // Karma
00 00 // Area title(WTF?!)
//End
//Items
--
00 // ??
2d // Total item slots
0a // Used item slots
//Item1
///
00 // ItemSlot = 0 - exist?
33 05 00 00 // Item Id
01 // plus
83 b2 23 0e 00 00 00 00 // Item modifier
2a 00 00 00 // durability
04 // number of blue stats
80 00 00 00 //stat id 1
14 00 00 00 //stat value 1
50 00 00 00 //stat id 2
1e 00 00 00 //stat value 2
05 00 00 00 //stat id 3
02 00 00 00 //stat value 3
38 00 00 00 //stat id 4
01 00 00 00 //stat value 4
//Item2
///
01 // ItemSlot = 1
41 0e 00 00 // Item Id
00 //plus
00 00 00 00 00 00 00 00 // Item modifier
2a 00 00 00 //Durability
00 //Number of blue stats
//Item3
///
04 // itemSlot = 4
42 0e 00 00 // ItemId
00 //plus
00 00 00 00 00 00 00 00 //Item Modifier
28 00 00 00 //Durability
00 //Number of blue stats
//Item4
///
05 //ItemSlot
43 0e 00 00 //ItemId
00 //plus
00 00 00 00 00 00 00 00 //item Modifier
26 00 00 00 //Durability
00 //Number of blue stats
//Item5
///
06 //ItemSlot
31 0e 00 00 //itemId
00 //plus
00 00 00 00 00 00 00 00 //Item Modifier
40 00 00 00 //Durability
00 //number of blue stats
//Item6
///
07 //ItemSlot
86 2a 00 00 //ItemId
00 //plus
00 00 00 00 00 00 00 00 //Item Modifier
2c 00 00 00 //Durability
00 //number of blue stats
//Item7(EXP Helper(60%))
///
0d //ItemSlot
42 1d 00 00 //ItemId
01 00 //amount
//Item8(EXP Helper(100%))
///
0e //itemSlot
43 1d 00 00 //ItemId
01 00 //amount
//item9(20 newbie item scrolls)
///
0f //itemSlot
8e 28 00 00 //itemid
14 00 //Amount
//Item10(150 chinese arrows)
10 //ItemSlot
3e 00 00 00 //ItemId
96 00 //Amount
//EndItems
//Avatar Items
05 //Start of avatar items
00 //Number of items
//EndItems
//Mastery
00 //Start Mastery
//Mastery 1 - Bicheon
///
01 // unknown
01 // First mastery(Bicheon)
01 // Chinese mastery
00 // unknown
00 // unknown
00 // mastery level
//Mastery 2 - Heuscal
///
01 // unknown
02 // Second mastery(Heuscal)
01 // Chinese mastery
00 // unknown
00 // unknown
00 // Mastery level
//Mastery 3 - Pacheon
///
01 // unknown
03 // Third mastery(Pacheon)
01 // Chinese mastery
00 // unknown
00 // unknown
00 // mastery level
//Mastery 4 - Cold
///
01 // unknown
11 // Fourth Mastery(Cold)
01 // Chinese mastery
00 // unknown
00 // unknown
02 // mastery level
//Mastery 5 - Light
///
01 // unknown
12 // Fifth Mastery(Light)
01 // Chinese mastery
00 // unknown
00 // unknown
00 // mastery level
//Mastery 6 - Fire
///
01 // unknown
13 // Sixth Mastery(Fire)
01 // Chinese mastery
00 // unknown
00 // unknown
00 // mastery level
//Mastery 7 - Force
///
01 // unknown
14 // Seventh Mastery(Force)
01 // Chinese mastery
00 // unknown
00 // unknown
00 // mastery level
//EndMastery
//Skill list
02 00 //Start of skill list
02 //End of skill list
//EndSkill
//Questst
01 00 // 1 completed quest
01 00 00 00 // completed quest ID(you start with this)
01 // 1 active quests
02 00 00 00 // active quest ID
10 00 58 //quest data??
01 //description available <bool>
01
01
01
16 00 //quest name len
53 4e 5f 43 4f 4e 5f 51 54 55 54 4f 52 49 41 4c 5f 43 48 5f 30 31 //quest name
00
01 //npc quest <bool>
e3 07 00 00 //npc ID
00 //End of quests
//EndQuests
//PlayerID
61 cd 03 00
//Coordinate Data
aa // X Sector
60 // Y Sector
52 05 c2 42 // X Coord
53 bb 9a 41 // Z Coord
ad 5a e9 44 // Y Coord
4c 1d // Angle
00 // Moving <Bool>
01 // Walking/Running??
00 //
4c 1d // Angle
//Other char data
00 //Dead <bool>
00 //State (02=walking 03=running 04=sitting)
00 //Berserking <bool>
00 00 80 41 //Walkspeed (float)
00 00 48 42 //RunSpeed (float)
00 00 c8 42 //Berserkspeed (float)
00 //Active buffs?
09 00 //char name length
43 65 6c 65 62 72 69 74 79 //char name
//Job Data
00 00 //alias name length
00 //job type(0=none,1 = trader,2=thief,3=hunter)
01 //job lvl
00 00 00 00 //job exp
00 00 00 00
00 00 00 00
//Other Data
00 //pvp state
00 00
ff //startup popups
df
00
00 //other data
00 8a 79 1a //AccountID
00 //GM flag
00
07 //hotkeys
//End Of Packet
00 00 00 00 00 00 00 00
01 00 01
00 00
|
|
|
02/07/2012, 22:11
|
#5
|
elite*gold: 0
Join Date: Dec 2006
Posts: 1,039
Received Thanks: 1,335
|
Quote:
Originally Posted by R0bbY LoLz
Code:
//Header
a7 01 //size = 01A7(423)
13 30 //Opcode = 0x3013(vsro)
00 00 //Security & CRC
//End
//Data
///Self Info
--
8a 07 00 00 // CharType
11 // Volume
03 // level
03 // mastery can't be more than that value
9a 02 00 00 00 00 00 00 // exp
53 01 00 00 // spexp
6b 03 00 00 00 00 00 00 // gold
05 00 00 00 // sp
06 00 // aatr. pts.
04 00 00 00 00 // 5 noob icons
e4 00 00 00 // hp
f9 00 00 00 // mp
01 00 // PKDaily
00 00 // PKLVL
00 00 // Karma
00 00 // Area title(WTF?!)
//End
//Items
--
00 // ??
2d // Total item slots
0a // Used item slots
//Item1
///
00 // ItemSlot = 0 - exist?
33 05 00 00 // Item Id
01 // plus
83 b2 23 0e 00 00 00 00 // Item modifier
2a 00 00 00 // durability
04 // number of blue stats
80 00 00 00 //stat id 1
14 00 00 00 //stat value 1
50 00 00 00 //stat id 2
1e 00 00 00 //stat value 2
05 00 00 00 //stat id 3
02 00 00 00 //stat value 3
38 00 00 00 //stat id 4
01 00 00 00 //stat value 4
//Item2
///
01 // ItemSlot = 1
41 0e 00 00 // Item Id
00 //plus
00 00 00 00 00 00 00 00 // Item modifier
2a 00 00 00 //Durability
00 //Number of blue stats
//Item3
///
04 // itemSlot = 4
42 0e 00 00 // ItemId
00 //plus
00 00 00 00 00 00 00 00 //Item Modifier
28 00 00 00 //Durability
00 //Number of blue stats
//Item4
///
05 //ItemSlot
43 0e 00 00 //ItemId
00 //plus
00 00 00 00 00 00 00 00 //item Modifier
26 00 00 00 //Durability
00 //Number of blue stats
//Item5
///
06 //ItemSlot
31 0e 00 00 //itemId
00 //plus
00 00 00 00 00 00 00 00 //Item Modifier
40 00 00 00 //Durability
00 //number of blue stats
//Item6
///
07 //ItemSlot
86 2a 00 00 //ItemId
00 //plus
00 00 00 00 00 00 00 00 //Item Modifier
2c 00 00 00 //Durability
00 //number of blue stats
//Item7(EXP Helper(60%))
///
0d //ItemSlot
42 1d 00 00 //ItemId
01 00 //amount
//Item8(EXP Helper(100%))
///
0e //itemSlot
43 1d 00 00 //ItemId
01 00 //amount
//item9(20 newbie item scrolls)
///
0f //itemSlot
8e 28 00 00 //itemid
14 00 //Amount
//Item10(150 chinese arrows)
10 //ItemSlot
3e 00 00 00 //ItemId
96 00 //Amount
//EndItems
//Avatar Items
05 //Start of avatar items
00 //Number of items
//EndItems
//Mastery
00 //Start Mastery
//Mastery 1 - Bicheon
///
01 // unknown
01 // First mastery(Bicheon)
01 // Chinese mastery
00 // unknown
00 // unknown
00 // mastery level
//Mastery 2 - Heuscal
///
01 // unknown
02 // Second mastery(Heuscal)
01 // Chinese mastery
00 // unknown
00 // unknown
00 // Mastery level
//Mastery 3 - Pacheon
///
01 // unknown
03 // Third mastery(Pacheon)
01 // Chinese mastery
00 // unknown
00 // unknown
00 // mastery level
//Mastery 4 - Cold
///
01 // unknown
11 // Fourth Mastery(Cold)
01 // Chinese mastery
00 // unknown
00 // unknown
02 // mastery level
//Mastery 5 - Light
///
01 // unknown
12 // Fifth Mastery(Light)
01 // Chinese mastery
00 // unknown
00 // unknown
00 // mastery level
//Mastery 6 - Fire
///
01 // unknown
13 // Sixth Mastery(Fire)
01 // Chinese mastery
00 // unknown
00 // unknown
00 // mastery level
//Mastery 7 - Force
///
01 // unknown
14 // Seventh Mastery(Force)
01 // Chinese mastery
00 // unknown
00 // unknown
00 // mastery level
//EndMastery
//Skill list
02 00 //Start of skill list
02 //End of skill list
//EndSkill
//Questst
01 00 // 1 completed quest
01 00 00 00 // completed quest ID(you start with this)
01 // 1 active quests
02 00 00 00 // active quest ID
10 00 58 //quest data??
01 //description available <bool>
01
01
01
16 00 //quest name len
53 4e 5f 43 4f 4e 5f 51 54 55 54 4f 52 49 41 4c 5f 43 48 5f 30 31 //quest name
00
01 //npc quest <bool>
e3 07 00 00 //npc ID
00 //End of quests
//EndQuests
//PlayerID
61 cd 03 00
//Coordinate Data
aa // X Sector
60 // Y Sector
52 05 c2 42 // X Coord
53 bb 9a 41 // Z Coord
ad 5a e9 44 // Y Coord
4c 1d // Angle
00 // Moving <Bool>
01 // Walking/Running??
00 //
4c 1d // Angle
//Other char data
00 //Dead <bool>
00 //State (02=walking 03=running 04=sitting)
00 //Berserking <bool>
00 00 80 41 //Walkspeed (float)
00 00 48 42 //RunSpeed (float)
00 00 c8 42 //Berserkspeed (float)
00 //Active buffs?
09 00 //char name length
43 65 6c 65 62 72 69 74 79 //char name
//Job Data
00 00 //alias name length
00 //job type(0=none,1 = trader,2=thief,3=hunter)
01 //job lvl
00 00 00 00 //job exp
00 00 00 00
00 00 00 00
//Other Data
00 //pvp state
00 00
ff //startup popups
df
00
00 //other data
00 8a 79 1a //AccountID
00 //GM flag
00
07 //hotkeys
//End Of Packet
00 00 00 00 00 00 00 00
01 00 01
00 00
|
Yeah, I know how to parse character data, thanks though.
|
|
|
 |
Similar Threads
|
Determining DMap coordinate access validity.
02/05/2011 - CO2 Programming - 5 Replies
I've asked this before, but I think I was drunk when I asked so I'm going to make it clearer this time around...
I'm attempting to compress DMap data for my private server. I've already gotten the DMaps into the structure I want (only containing coordinate access validity and portal data), but some valid coordinates are being marked as invalid. I believe this is due to me not calculating scene and puzzle files into the final DMap product. Is this true? If so, does anyone have the correct...
|
Guide: Determining Serversidedness
07/05/2010 - Mabinogi Hacks, Bots, Cheats & Exploits - 0 Replies
NobodyNobody
I have received a plethora or PM's on epvp that all seem to say the same thing; "Oh great and powerful Bishop, how do we as modders know whether or not a function or edit will be checked by the server?". Ok so they didn't exactly say that first part, but they do ask how we can, as modders make an educated guess as to the viability of a mod based on it being server sided, or client sided. So in response I present to you a quick guide about the servers functionality and 3 quick...
|
Determining Drop Rates ?
04/25/2009 - Florensia - 12 Replies
Hey, I have no idea if this is possible for Florensia.
I've seen in other games, that people were able to determine drop rates from the game files.
I don't have much of an idea about this kind of thing, but I'm just thinking it would be interesting to look into Florensia's drop rates, maybe it's worth a thought for those of you who have the programming knowledge to do it, if it even is in any of the client files at all.
|
New Owner
11/16/2007 - Conquer Online 2 - 2 Replies
I am new member of this account. I got it from my friend cuz I didnt feel like making a new one. so hi..
|
All times are GMT +1. The time now is 04:39.
|
|