Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 12:49

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

Advertisement



[Release] CharacterData, EntitySpawn

Discussion on [Release] CharacterData, EntitySpawn within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old 05/20/2019, 18:55   #16

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
Another mistake I found:
OwnerUniqueID & OwnerName is sent if TypeID4 != 1. (ride pet)
You should not look for these values if the COS TypeID4 is 1.
sarkoplata is offline  
Thanks
1 User
Old 05/28/2019, 21:33   #17
 
JellyBitz's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 419
Received Thanks: 941
PHP Code:
if(obj.TypeID3 == 2)
{
    
// NPC_MOB
    
1   byte   Rarity
    
if(obj.TypeID4 == || obj.TypeID4 == 3)
    {
        
1   byte   Appearance //Randomized by server.
    
}

Is this correct? All has been working as intended but on parsing NPC looks like all are "NPC_MOB" with this condition and it's having packet reading error..

I can't find some reference about this string for checking his ID's .. is not very important but I would like to keep on track everything!
JellyBitz is offline  
Old 05/28/2019, 22:54   #18
 
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 685
Quote:
Originally Posted by JellyBitz View Post
PHP Code:
if(obj.TypeID3 == 2)
{
    
// NPC_MOB
    
1   byte   Rarity
    
if(obj.TypeID4 == || obj.TypeID4 == 3)
    {
        
1   byte   Appearance //Randomized by server.
    
}

Is this correct? All has been working as intended but on parsing NPC looks like all are "NPC_MOB" with this condition and it's having packet reading error..

I can't find some reference about this string for checking his ID's .. is not very important but I would like to keep on track everything!
obj.TypeID3 == 2 is NPC_NPC where it should obviously be NPC_MOB.
I should probably delete this altogether, it's poorly transcribed and incorrect in so many places.

Code:
        if(obj.TypeID3 == 1)
        {
            //NPC_MOB
            1   byte    Monster.Rarity
            if(obj.TypeID4 == 2 || obj.TypeID4 == 3)
            {
                //NPC_MOB_TIEF, NPC_MOB_HUNTER
                1   byte    Monster.Appearance  //Randomized by server.
            }
        }
DaxterSoul is offline  
Thanks
1 User
Old 06/10/2019, 23:48   #19
 
JellyBitz's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 419
Received Thanks: 941
Working nicely, I think it's better subdivide the packet as seems on other source bots but is not my priority at the moment.

But I'm having an issue today (testing more servers) at skill ID, specificaly at Buffs loading. The skill ID is not found (not a reading problem since everything around it is parsing smooth). My though it's look for model id and extract the skill id from there, but no sounds like a solution. Where I should look apart from skilldata.txt? have something to do with skills encoded?

Nevermind, solved!
JellyBitz is offline  
Reply


Similar Threads Similar Threads
EntitySpawn (5378+)
03/26/2011 - CO2 Private Server - 7 Replies
Thank you .Kinshi, Thank you Impulse. Thank you Moderator for closing this (in advance) :D #request close.
[RELEASE] 5298 EntitySpawn Packet Structures
09/13/2010 - CO2 PServer Guides & Releases - 12 Replies
Entity Spawn: (10014) Spoiler: Offset| Type | Value 0 | Short | Size 2 | Short | Type 75 | Byte | Level 78 | Short | HairStyle 80 | Short | CharX 82 | Short | CharY 123 | int | QuizPoints



All times are GMT +1. The time now is 12:55.


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.