Thread: [HELP] ~~~Explanation Needed: How to add items into my [PI] RSPS~~~

Results 1 to 6 of 6
  1. #1 [HELP] ~~~Explanation Needed: How to add items into my [PI] RSPS~~~ 
    Registered Member InBrent's Avatar
    Join Date
    Feb 2013
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    ~~~~~~~~Sorry if this is in the wrong section, first "help" thread~~~~~~~~

    Hey Guys,

    I'm working with the [PI] 317 Source (Fixed Dupes), and, I am looking to add in Items (e.g. Torva, AGS and the such), I have been reading tutorials for about an hour and they all say about ints and models and all that great stuff...But, I'm not comprehending what they are doing...

    So...
    I would really appreciate anyone that can help in the matter, over the forums or over skype (so I can ask questions) (skype: InBrent)

    Thanks,
    Brent
    ***Highly Important Note To Life***
    That's the way the cookie crumbles


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Apr 2012
    Posts
    3,259
    Thanks given
    2,554
    Thanks received
    832
    Rep Power
    0
    Models, put them in your Cache's 'Raw' folder.
    Put the so known "ints" in your client's ItemDef class (.java).
    Rename if required, compile -> re-run
    You're done client-sided.

    Hurr durr.

    The server-sided part is even easier.
    Reply With Quote  
     

  3. #3  
    Registered Member InBrent's Avatar
    Join Date
    Feb 2013
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Explain Master Grasshopper
    Where do I put the int's within the "itemDef"

    What has to happen Server side?
    ***Highly Important Note To Life***
    That's the way the cookie crumbles


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Donator
    dat orange's Avatar
    Join Date
    Jan 2013
    Age
    27
    Posts
    148
    Thanks given
    7
    Thanks received
    17
    Rep Power
    11
    Quote Originally Posted by InBrent View Post
    Explain Master Grasshopper
    Where do I put the int's within the "itemDef"

    What has to happen Server side?
    Do you have ItemDef_2.java also or just ItemDef.java and nothing else? :O

    Well anyways It doesn't matter, if you have ItemDef_2 also then you put the ints there.

    So when you open up ItemDef.java, scroll down and you'll see other items hardcoded there

    Like this:

    Code:
            if(i == 19111)
            {
                itemdef.name = "TokHaar-Kal";
                ItemDef _tmp = itemdef;
                itemdef.value = 60000;
                itemdef.anInt165 = 62575;
                itemdef.anInt200 = 62582;
                itemdef.groundActions = new String[5];
                itemdef.groundActions[2] = "Take";
                itemdef.modelOffset1 = -4;
                itemdef.modelID = 62592;
                itemdef.stackable = false;
                itemdef.description = "A cape made of ancient, enchanted obsidian.";
                itemdef.modelZoom = 2086;
                itemdef.itemActions = new String[5];
                itemdef.itemActions[1] = "Wear";
                itemdef.itemActions[4] = "Drop";
                itemdef.modelOffset2 = 0;
                itemdef.modelRotation1 = 533;
                itemdef.modelRotation2 = 333;
            }
    And if you want to add new ints, put them directly under the last bracket of the previous item and by bracket i mean this
    }
    hope this helps a bit
    Reply With Quote  
     

  5. #5  
    Registered Member InBrent's Avatar
    Join Date
    Feb 2013
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by dat orange View Post
    Do you have ItemDef_2.java also or just ItemDef.java and nothing else? :O

    Well anyways It doesn't matter, if you have ItemDef_2 also then you put the ints there.

    So when you open up ItemDef.java, scroll down and you'll see other items hardcoded there

    Like this:

    Code:
            if(i == 19111)
            {
                itemdef.name = "TokHaar-Kal";
                ItemDef _tmp = itemdef;
                itemdef.value = 60000;
                itemdef.anInt165 = 62575;
                itemdef.anInt200 = 62582;
                itemdef.groundActions = new String[5];
                itemdef.groundActions[2] = "Take";
                itemdef.modelOffset1 = -4;
                itemdef.modelID = 62592;
                itemdef.stackable = false;
                itemdef.description = "A cape made of ancient, enchanted obsidian.";
                itemdef.modelZoom = 2086;
                itemdef.itemActions = new String[5];
                itemdef.itemActions[1] = "Wear";
                itemdef.itemActions[4] = "Drop";
                itemdef.modelOffset2 = 0;
                itemdef.modelRotation1 = 533;
                itemdef.modelRotation2 = 333;
            }
    And if you want to add new ints, put them directly under the last bracket of the previous item and by bracket i mean this


    hope this helps a bit
    Hey Man,
    I only have itemdef.java/class, so, what do I do with the ints there than?
    And do I have to do the model loading in game? I remember see-ing that happen somewhere, if you have skype, I'd love to be able to ask some more question
    ***Highly Important Note To Life***
    That's the way the cookie crumbles


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #6  
    Donator
    dat orange's Avatar
    Join Date
    Jan 2013
    Age
    27
    Posts
    148
    Thanks given
    7
    Thanks received
    17
    Rep Power
    11
    Quote Originally Posted by InBrent View Post
    Hey Man,
    I only have itemdef.java/class, so, what do I do with the ints there than?
    And do I have to do the model loading in game? I remember see-ing that happen somewhere, if you have skype, I'd love to be able to ask some more question
    yeah add me on skype: mikael___hs (My name is Mikael Tuomilehto)
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 4
    Last Post: 02-17-2013, 12:41 AM
  2. Replies: 6
    Last Post: 02-16-2013, 08:47 PM
  3. Replies: 6
    Last Post: 01-16-2013, 12:08 PM
  4. RSPS help needed
    By buttaz in forum Help
    Replies: 5
    Last Post: 02-17-2011, 06:50 PM
  5. An Explanation Needed
    By lipkin in forum Help
    Replies: 1
    Last Post: 08-16-2010, 06:50 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •