Adding ozj/bmd to a new custom item?

Results 1 to 19 of 19
  1. #1
    c# Programmer martinx09 is offline
    MemberRank
    Aug 2008 Join Date
    391Posts

    Adding ozj/bmd to a new custom item?

    Hi,

    I just created a new item for my server,
    its a scroll (group 15) and it works fine,
    it just changes the skin of the character upon right clicking it,
    I can use it, but it is visually blank, because I just don't know how to add a texture to it.
    I tried with book29/30/31 (its id 30). But nope. :/

    This is how it looks: http://i.imgur.com/Va2lb18.png


  2. #2

    Re: Adding ozj/bmd to a new custom item?

    well a MODEL needs to have texture (obviously) then you export it to .SMA with the correct texture resources
    and with pentium tools you convert .SMA to .BMD and it should show it.
    if not then its another issue, maybe texture is too big, maybe u have texture limit issue on main.
    not sure.

  3. #3
    c# Programmer martinx09 is offline
    MemberRank
    Aug 2008 Join Date
    391Posts

    Re: Adding ozj/bmd to a new custom item?

    Yeah, but how does the client know the model is for that specific item?
    I don't know how to name it or so..

  4. #4

    Re: Adding ozj/bmd to a new custom item?

    Client reads the texture that u create with the model, then it reads from image file name.



    Sent from my iPhone.

  5. #5
    c# Programmer martinx09 is offline
    MemberRank
    Aug 2008 Join Date
    391Posts

    Re: Adding ozj/bmd to a new custom item?

    You are not getting my point,
    how does the game know that "Book30.bmd" is the bmd of Item 15, 30?

  6. #6

    Re: Adding ozj/bmd to a new custom item?

    Quote Originally Posted by martinx09 View Post
    You are not getting my point,
    how does the game know that "Book30.bmd" is the bmd of Item 15, 30?
    you just said it.
    15 , 30
    15 = the category of the item in your item.txt
    30 = item id in item.txt

  7. #7
    c# Programmer martinx09 is offline
    MemberRank
    Aug 2008 Join Date
    391Posts

    Re: Adding ozj/bmd to a new custom item?

    ...

    I know its group 15, id 30, that's what I just said.
    The thing is how do I know what to name the bmd file to,
    because book30 is not working.

  8. #8

    Re: Adding ozj/bmd to a new custom item?

    @DragonSeth , @natzugen
    please explain to him if you can :)

    for 15,30 to work it has to be in client side item.bmd aswell.

    what files u use?/client?

  9. #9
    (づ。◕‿‿◕。) Natzugen is offline
    MemberRank
    Jun 2014 Join Date
    ElbelandLocation
    1,858Posts

    Re: Adding ozj/bmd to a new custom item?

    just search for the item id in your main with olly and look for something that loads the texture.

    (item catgory*512) +itemId + ItemAtray

  10. #10

    Re: Adding ozj/bmd to a new custom item?

    Quote Originally Posted by natzugen View Post
    just search for the item id in your main with olly and look for something that loads the texture.

    (item catgory*512) +itemId + ItemAtray
    better example for him to understand :D

    15 x 512 +30 = 7710 + ItemAtray, not sure whats that about :D

  11. #11
    c# Programmer martinx09 is offline
    MemberRank
    Aug 2008 Join Date
    391Posts

    Re: Adding ozj/bmd to a new custom item?

    Quote Originally Posted by natzugen View Post
    just search for the item id in your main with olly and look for something that loads the texture.

    (item catgory*512) +itemId + ItemAtray
    What is ItemAtray?

  12. #12

    Re: Adding ozj/bmd to a new custom item?

    Quote Originally Posted by martinx09 View Post
    What is ItemAtray?
    maybe is not necessary, cus i remember those item codes on client side rows have 4 numbers.

  13. #13
    (づ。◕‿‿◕。) Natzugen is offline
    MemberRank
    Jun 2014 Join Date
    ElbelandLocation
    1,858Posts

    Re: Adding ozj/bmd to a new custom item?

    this is the item array for main 1.03k

    Code:
    005D81D4  |> 8B45 E4        /MOV EAX,DWORD PTR SS:[EBP-1C]
    005D81D7  |. 83C0 01        |ADD EAX,1
    005D81DA  |. 8945 E4        |MOV DWORD PTR SS:[EBP-1C],EAX
    005D81DD  |> 837D E4 11      CMP DWORD PTR SS:[EBP-1C],11
    005D81E1  |. 7D 25          |JGE SHORT main-cra.005D8208
    005D81E3  |. 8B4D E4        |MOV ECX,DWORD PTR SS:[EBP-1C]
    005D81E6  |. 83C1 01        |ADD ECX,1
    005D81E9  |. 51             |PUSH ECX                                ; /Arg4
    005D81EA  |. 68 1C6D8C00    |PUSH main-cra.008C6D1C                  ; |Arg3 = 008C6D1C ASCII "Sword"
    005D81EF  |. 68 246D8C00    |PUSH main-cra.008C6D24                  ; |Arg2 = 008C6D24 ASCII "Data\Item\"
    005D81F4  |. 8B55 E4        |MOV EDX,DWORD PTR SS:[EBP-1C]           ; |
    005D81F7  |. 81C2 42030000  |ADD EDX,342                             ; |  Item Array -> 834 in decimal
    005D81FD  |. 52             |PUSH EDX                                ; |Arg1
    005D81FE  |. E8 C0DBFFFF    |CALL main-cra.005D5DC3                  ; \main-cra.005D5DC3
    005D8203  |. 83C4 10        |ADD ESP,10
    005D8206  |.^EB CC          \JMP SHORT main-cra.005D81D4

  14. #14
    c# Programmer martinx09 is offline
    MemberRank
    Aug 2008 Join Date
    391Posts

    Re: Adding ozj/bmd to a new custom item?

    Quote Originally Posted by natzugen View Post
    this is the item array for main 1.03k

    Code:
    005D81D4  |> 8B45 E4        /MOV EAX,DWORD PTR SS:[EBP-1C]
    005D81D7  |. 83C0 01        |ADD EAX,1
    005D81DA  |. 8945 E4        |MOV DWORD PTR SS:[EBP-1C],EAX
    005D81DD  |> 837D E4 11      CMP DWORD PTR SS:[EBP-1C],11
    005D81E1  |. 7D 25          |JGE SHORT main-cra.005D8208
    005D81E3  |. 8B4D E4        |MOV ECX,DWORD PTR SS:[EBP-1C]
    005D81E6  |. 83C1 01        |ADD ECX,1
    005D81E9  |. 51             |PUSH ECX                                ; /Arg4
    005D81EA  |. 68 1C6D8C00    |PUSH main-cra.008C6D1C                  ; |Arg3 = 008C6D1C ASCII "Sword"
    005D81EF  |. 68 246D8C00    |PUSH main-cra.008C6D24                  ; |Arg2 = 008C6D24 ASCII "Data\Item\"
    005D81F4  |. 8B55 E4        |MOV EDX,DWORD PTR SS:[EBP-1C]           ; |
    005D81F7  |. 81C2 42030000  |ADD EDX,342                             ; |  Item Array -> 834 in decimal
    005D81FD  |. 52             |PUSH EDX                                ; |Arg1
    005D81FE  |. E8 C0DBFFFF    |CALL main-cra.005D5DC3                  ; \main-cra.005D5DC3
    005D8203  |. 83C4 10        |ADD ESP,10
    005D8206  |.^EB CC          \JMP SHORT main-cra.005D81D4
    So, 7710 + 834 = 8544, thats the number I need to search for?
    But search where?

  15. #15
    (づ。◕‿‿◕。) Natzugen is offline
    MemberRank
    Jun 2014 Join Date
    ElbelandLocation
    1,858Posts

    Re: Adding ozj/bmd to a new custom item?

    right click in olly -> search for all constants

  16. #16

    Re: Adding ozj/bmd to a new custom item?

    Quote Originally Posted by martinx09 View Post
    So, 7710 + 834 = 8544, thats the number I need to search for?
    But search where?
    use this
    Decimal to Hexadecimal Converter

    and convert decimal to hex
    and hex to decimal if needed

    decimal = normal number
    so 8544 decimal to hex = 2160

  17. #17
    c# Programmer martinx09 is offline
    MemberRank
    Aug 2008 Join Date
    391Posts

    Re: Adding ozj/bmd to a new custom item?

    Searching for 2160 results in this:



    Searching for 8544 results in this:



    No idea what to do with that tho :/

  18. #18
    (づ。◕‿‿◕。) Natzugen is offline
    MemberRank
    Jun 2014 Join Date
    ElbelandLocation
    1,858Posts

    Re: Adding ozj/bmd to a new custom item?

    if you wanna add a new model wich isnt any kind of equipment you can use the new jewels way http://forum.ragezone.com/f508/jewel...in-1-a-815717/

  19. #19
    c# Programmer martinx09 is offline
    MemberRank
    Aug 2008 Join Date
    391Posts

    Re: Adding ozj/bmd to a new custom item?

    Alright that code works,
    but just a little detail now, the item does not rotate, I mean when hovering the item with the cursor the model does not rotate like all the other items.
    Any idea why?

    Edit:

    It will only rotate if the item is in any of the slots marked with red:



    But on the other slots it will be static.



Advertisement