Items on TW version

Page 2 of 3 FirstFirst 123 LastLast
Results 26 to 50 of 62
  1. #26
    Member Xanu is offline
    MemberRank
    Mar 2014 Join Date
    33Posts

    Re: Items on TW version

    the struct to spawn player is diferent, i havent the struct complete, i´m working on this now
    2pjs.jpg

  2. #27
    Member as83426187z is offline
    MemberRank
    Jun 2014 Join Date
    95Posts

    Re: Items on TW version

    Quote Originally Posted by Xanu View Post
    the struct to spawn player is diferent, i havent the struct complete, i´m working on this now
    2pjs.jpg
    which struct ?
    i want to try,and the struct how to find the correct data,can you tell me the way?


    - - - Updated - - -

    Quote Originally Posted by luiz45 View Post
    sorry i'm not Xanu, but you need send GU_OBJECT_CREATE to all conected clients.
    Example:
    When Client A connects
    Store Player info(sPC_PROFILE or whatever struct you are using)
    Send GU_OBJECT_CREATE
    When Client B Connects
    Store Player info
    Send GU_OBJECT_CREATE
    AND
    Send GU_OBJECT_CREATE from Client A(Previous Player)
    remember, if both players has the same "handle"(HOBJECT) the client may crash because he will think it is a duplicated object
    ok,think you

  3. #28
    Member Szczeepan is offline
    MemberRank
    May 2014 Join Date
    54Posts

    Re: Items on TW version

    Quote Originally Posted by luiz45 View Post
    sorry i'm not Xanu, but you need send GU_OBJECT_CREATE to all conected clients.
    Example:
    When Client A connects
    Store Player info(sPC_PROFILE or whatever struct you are using)
    Send GU_OBJECT_CREATE
    When Client B Connects
    Store Player info
    Send GU_OBJECT_CREATE
    AND
    Send GU_OBJECT_CREATE from Client A(Previous Player)
    remember, if both players has the same "handle"(HOBJECT) the client may crash because he will think it is a duplicated object
    I know how sends packets shoud now, but can someone tell me how to fill the sPC_PROFILE or packet structure which is needed to send? @Xanu, @luiz45 ?

  4. #29
    Member Sid Viciouss is offline
    MemberRank
    May 2014 Join Date
    58Posts

    Re: Items on TW version

    @luiz45 ye that guy is me,can i add you in fb?i dont care of money back but i will love to help u guys testing

  5. #30
    Member Szczeepan is offline
    MemberRank
    May 2014 Join Date
    54Posts

    Re: Items on TW version

    Man this topic will be a little mess in the future.
    Btw structure to spawn player/mob/npc/pet etc its sOBJECT_INFO
    its a union of:
    Code:
    struct sOBJECT_INFO
    {
        BYTE                    objType;
    
    
        union
        {
            struct // pc
            {
                sPC_BRIEF        pcBrief;
                sCHARSTATE        pcState;
            };
            struct // npc
            {
                sNPC_BRIEF        npcBrief;
                sCHARSTATE        npcState;
            };
            struct // mob
            {
                sMOB_BRIEF        mobBrief;
                sCHARSTATE        mobState;
            };
            struct // summon pet
            {
                sSUMMON_PET_BRIEF        summonPetBrief;
                sCHARSTATE                summonPetState;
            };
            struct // item pet
            {
                sITEM_PET_BRIEF            itemPetBrief;
                sCHARSTATE                itemPetState;
            };
            struct // item
            {
                sITEM_BRIEF        itemBrief;
                sITEM_STATE        itemState;
            };
            struct // money
            {
                sMONEY_BRIEF    moneyBrief;
                sMONEY_STATE    moneyState;
            };
            struct // trigger object
            {
                sTOBJECT_BRIEF    tobjectBrief;
                sTOBJECT_STATE    tobjectState;
            };
            struct // dynamic object
            {
                sDYNAMIC_OBJECT_BRIEF    dynamicObjBrief;
                sDYNAMIC_OBJECT_STATE    dynamicObjState;
            };
        };
    };
    and propably depends which to use by objType

    but i still dont know what is bad here because i got nothnk to spawn or crash

  6. #31
    Member as83426187z is offline
    MemberRank
    Jun 2014 Join Date
    95Posts

    Re: Items on TW version

    @luiz45 can you tell how to Decryption the .edf for tw

  7. #32
    Member Szczeepan is offline
    MemberRank
    May 2014 Join Date
    54Posts

    Re: Items on TW version

    i know how to. I upload some decrypted TW tables into mine project in github today on evening.

  8. #33
    Member as83426187z is offline
    MemberRank
    Jun 2014 Join Date
    95Posts

    Re: Items on TW version

    how?

    - - - Updated - - -

    2016-07-13-14-11-aafter i change{ enum eEQUIP_SLOT_TYPE } and {enum eEQUIP_SLOT_FLAG}in NtlItem.h,but still can not count slot 12-16,why?
    ----------------------------------------------------------------------------------------
    enum eEQUIP_SLOT_TYPE
    {
    EQUIP_SLOT_TYPE_HAND,
    EQUIP_SLOT_TYPE_SUB_WEAPON,
    EQUIP_SLOT_TYPE_JACKET,
    EQUIP_SLOT_TYPE_PANTS,
    EQUIP_SLOT_TYPE_BOOTS,
    EQUIP_SLOT_TYPE_SCOUTER,
    EQUIP_SLOT_TYPE_COSTUME,
    EQUIP_SLOT_TYPE_NECKLACE,
    EQUIP_SLOT_TYPE_EARRING_1,
    EQUIP_SLOT_TYPE_EARRING_2,
    EQUIP_SLOT_TYPE_RING_1,
    EQUIP_SLOT_TYPE_RING_2,
    EQUIP_SLOT_TYPE_DOGI,
    EQUIP_SLOT_TYPE_HAIR,
    EQUIP_SLOT_TYPE_ACCESSORY_1,
    EQUIP_SLOT_TYPE_ACCESSORY_2,
    EQUIP_SLOT_TYPE_ACCESSORY_3,


    EQUIP_SLOT_TYPE_COUNT,
    EQUIP_SLOT_TYPE_UNKNOWN = 0xFF,


    EQUIP_SLOT_TYPE_FIRST = EQUIP_SLOT_TYPE_HAND,
    EQUIP_SLOT_TYPE_LAST = EQUIP_SLOT_TYPE_COUNT - 1,
    };
    -------------------------------------------------------------------------------------------------
    enum eEQUIP_SLOT_FLAG
    {
    EQUIP_SLOT_FLAG_HAND = 0x01 << EQUIP_SLOT_TYPE_HAND,
    EQUIP_SLOT_FLAG_SUB_WEAPON = 0x01 << EQUIP_SLOT_TYPE_SUB_WEAPON,
    EQUIP_SLOT_FLAG_JACKET = 0x01 << EQUIP_SLOT_TYPE_JACKET,
    EQUIP_SLOT_FLAG_PANTS = 0x01 << EQUIP_SLOT_TYPE_PANTS,
    EQUIP_SLOT_FLAG_BOOTS = 0x01 << EQUIP_SLOT_TYPE_BOOTS,
    EQUIP_SLOT_FLAG_SCOUTER = 0x01 << EQUIP_SLOT_TYPE_SCOUTER,
    EQUIP_SLOT_FLAG_COSTUME = 0x01 << EQUIP_SLOT_TYPE_COSTUME,
    EQUIP_SLOT_FLAG_NECKLACE = 0x01 << EQUIP_SLOT_TYPE_NECKLACE,
    EQUIP_SLOT_FLAG_EARRING_1 = 0x01 << EQUIP_SLOT_TYPE_EARRING_1,
    EQUIP_SLOT_FLAG_EARRING_2 = 0x01 << EQUIP_SLOT_TYPE_EARRING_2,
    EQUIP_SLOT_FLAG_RING_1 = 0x01 << EQUIP_SLOT_TYPE_RING_1,
    EQUIP_SLOT_FLAG_RING_2 = 0x01 << EQUIP_SLOT_TYPE_RING_2,
    EQUIP_SLOT_FLAG_DOGI = 0x01 << EQUIP_SLOT_TYPE_DOGI,
    EQUIP_SLOT_FLAG_HAIR = 0x01 << EQUIP_SLOT_TYPE_HAIR,
    EQUIP_SLOT_FLAG_ACCESSORY_1 = 0x01 << EQUIP_SLOT_TYPE_ACCESSORY_1,
    EQUIP_SLOT_FLAG_ACCESSORY_2 = 0x01 << EQUIP_SLOT_TYPE_ACCESSORY_2,
    EQUIP_SLOT_FLAG_ACCESSORY_3 = 0x01 << EQUIP_SLOT_TYPE_ACCESSORY_3,
    };

    !!?

  9. #34
    Member Adri1998 is offline
    MemberRank
    Oct 2015 Join Date
    BarcelonaLocation
    48Posts

    Re: Items on TW version

    where do you find all of code DBO tw?

    as I can get the files?


  10. #35
    Member Szczeepan is offline
    MemberRank
    May 2014 Join Date
    54Posts

    Re: Items on TW version

    Quote Originally Posted by Adri1998 View Post
    where do you find all of code DBO tw?

    as I can get the files?

    Code in TW is similar, just more OPCODES and changes in structures and EDF/RDF.

  11. #36
    Member Adri1998 is offline
    MemberRank
    Oct 2015 Join Date
    BarcelonaLocation
    48Posts

    Re: Items on TW version

    someone i know when will the server dbo tw files for download with more things i npc?

  12. #37
    Member as83426187z is offline
    MemberRank
    Jun 2014 Join Date
    95Posts

    Re: Items on TW version

    someone know for multiplayer is which structs?someone can tell me?

  13. #38
    Member Szczeepan is offline
    MemberRank
    May 2014 Join Date
    54Posts

    Re: Items on TW version

    Quote Originally Posted by as83426187z View Post
    someone know for multiplayer is which structs?someone can tell me?

    sOBJECT_INFO, below is all union (but all structure is much bigger just check out fields).

    Code:
    struct sOBJECT_INFO
    {
        BYTE                    objType;
    
    
        union
        {
            struct // pc
            {
                sPC_BRIEF        pcBrief;
                sCHARSTATE        pcState;
            };
            struct // npc
            {
                sNPC_BRIEF        npcBrief;
                sCHARSTATE        npcState;
            };
            struct // mob
            {
                sMOB_BRIEF        mobBrief;
                sCHARSTATE        mobState;
            };
            struct // summon pet
            {
                sSUMMON_PET_BRIEF        summonPetBrief;
                sCHARSTATE                summonPetState;
            };
            struct // item pet
            {
                sITEM_PET_BRIEF            itemPetBrief;
                sCHARSTATE                itemPetState;
            };
            struct // item
            {
                sITEM_BRIEF        itemBrief;
                sITEM_STATE        itemState;
            };
            struct // money
            {
                sMONEY_BRIEF    moneyBrief;
                sMONEY_STATE    moneyState;
            };
            struct // trigger object
            {
                sTOBJECT_BRIEF    tobjectBrief;
                sTOBJECT_STATE    tobjectState;
            };
            struct // dynamic object
            {
                sDYNAMIC_OBJECT_BRIEF    dynamicObjBrief;
                sDYNAMIC_OBJECT_STATE    dynamicObjState;
            };
        };
    };
    

  14. #39
    Member Szczeepan is offline
    MemberRank
    May 2014 Join Date
    54Posts

    Re: Items on TW version

    Quote Originally Posted by Xanu View Post
    the struct to spawn player is diferent, i havent the struct complete, i´m working on this now
    2pjs.jpg
    i am working on mob spawns



    also items


  15. #40
    Member as83426187z is offline
    MemberRank
    Jun 2014 Join Date
    95Posts

    Re: Items on TW version

    good

    which version are you woring on?C#?or C++?
    Last edited by as83426187z; 26-07-16 at 11:22 AM.

  16. #41
    Member Xanu is offline
    MemberRank
    Mar 2014 Join Date
    33Posts

    Re: Items on TW version

    Quote Originally Posted by Szczeepan View Post
    i am working on mob spawns



    also items

    Only one mob? Bitch please.... :P :P

    please1.jpgplease2.jpg

  17. #42
    Sorcerer Supreme Nicolas321 is offline
    Member +Rank
    May 2014 Join Date
    482Posts

    Re: Items on TW version

    Wasn't my server -.-
    Last edited by Nicolas321; 27-07-16 at 09:34 AM. Reason: Spam

  18. #43
    Member as83426187z is offline
    MemberRank
    Jun 2014 Join Date
    95Posts

    Re: Items on TW version

    @Xanu@Nicolas321

    Fixed,but also can not add new skill In db
    -------------------------->i using akcore file for tw!
    can yours tell me how to fix?
    Last edited by as83426187z; 29-07-16 at 03:51 PM.

  19. #44
    Member Szczeepan is offline
    MemberRank
    May 2014 Join Date
    54Posts

    Re: Items on TW version

    how is going guys?

  20. #45
    Newbie ezecapo99 is offline
    MemberRank
    Jul 2016 Join Date
    6Posts

    Re: Items on TW version

    I need help please guys ..... I 'm looking for the file dbo_common.h
    I 'm looking for the file dbo_common.h

  21. #46
    Member Szczeepan is offline
    MemberRank
    May 2014 Join Date
    54Posts

    Re: Items on TW version

    hello guys.
    How to find data for base stat of items and bonus from upgrade


    This jacket got 14 M. Def +2 and 41 Energy Def + 4.
    Where i can find that data in packet/structure/edf? Its ItemOption data related to items?

  22. #47
    Member marcomurta is offline
    MemberRank
    May 2014 Join Date
    94Posts

    Re: Items on TW version

    hi all
    im done Item/skills funcion can load items/skills from db change slots and add items by comand GM...

    i try spawn mob and players but all times my client crash can someone help me ? i work on akcore code Tw


  23. #48
    Member Xanu is offline
    MemberRank
    Mar 2014 Join Date
    33Posts

    Re: Items on TW version

    the client crash because you send the wrong structure, try to send everything with 0 and go testing byte to byte, do the tests in the position 0,0,0
    Sorry for my english.
    bolasdragon.jpg

  24. #49
    Member marcomurta is offline
    MemberRank
    May 2014 Join Date
    94Posts

    Re: Items on TW version

    like that?

    CNtlPacket packet(sizeof(sGU_OBJECT_CREATE));
    sGU_OBJECT_CREATE * res = (sGU_OBJECT_CREATE *)packet.GetPacketData();


    res->wOpCode = GU_OBJECT_CREATE;
    res->sObjectInfo.objType = OBJTYPE_MOB;
    res->handle = 0;
    res->sObjectInfo.mobState.sCharStateBase.vCurLoc.x = 0;
    res->sObjectInfo.mobState.sCharStateBase.vCurLoc.y = 0;
    res->sObjectInfo.mobState.sCharStateBase.vCurLoc.z = 0;
    res->sObjectInfo.mobState.sCharStateBase.vCurDir.x = 0;
    res->sObjectInfo.mobState.sCharStateBase.vCurDir.y = 0;
    res->sObjectInfo.mobState.sCharStateBase.vCurDir.z = 0;
    res->sObjectInfo.mobState.sCharStateBase.byStateID = CHARSTATE_SPAWNING;
    res->sObjectInfo.mobState.sCharStateBase.bFightMode = false;
    res->sObjectInfo.mobBrief.tblidx = 0;
    res->sObjectInfo.mobBrief.wCurEP = 0;
    res->sObjectInfo.mobBrief.wMaxEP = 0;
    res->sObjectInfo.mobBrief.wCurLP = 0;
    res->sObjectInfo.mobBrief.wMaxLP = 0;
    res->sObjectInfo.mobBrief.fLastRunningSpeed =0;
    res->sObjectInfo.mobBrief.fLastWalkingSpeed = 0;
    pSession->myCCSession->InsertIntoMyMonsterList(res->handle, curpos, uiMobId);


    packet.SetPacketLen(sizeof(sGU_OBJECT_CREATE));
    g_pApp->Send(pSession->GetSession(), &packet);

  25. #50
    Member Xanu is offline
    MemberRank
    Mar 2014 Join Date
    33Posts

    Re: Items on TW version

    yes but send any mobid
    if client crash see dbolog.txt



Page 2 of 3 FirstFirst 123 LastLast

Advertisement