Thread: How do I add items to galkon's refactored client?

Results 1 to 2 of 2
  1. #1 How do I add items to galkon's refactored client? 
    Registered Member

    Join Date
    Aug 2008
    Posts
    2,823
    Thanks given
    362
    Thanks received
    447
    Rep Power
    965
    When i try to use the format he uses, I get this:
    Code:
    ItemDef.java:227: non-static method actionData(int,java.lang.String) cannot be r
    eferenced from a static context
                            actionData(5, "Wear");
                            ^
    ItemDef.java:228: non-static method itemData(java.lang.String,java.lang.String)
    cannot be referenced from a static context
                            itemData("Corrupted dragon battle axe", "It's dragon...b
    ut corrupted?");
                            ^
    ItemDef.java:229: non-static method totalColors(int) cannot be referenced from a
     static context
                            totalColors(0);
                            ^
    ItemDef.java:231: non-static method models(int,int,int,int,int) cannot be refere
    nced from a static context
                            models(9229, 9230, 9230, -1, -1);
                            ^
    ItemDef.java:232: non-static method modelData(int,int,int,int,int) cannot be ref
    erenced from a static context
                            modelData(1600, 498, 400, -1, -1);
                            ^
    5 errors
    Press any key to continue . . .
    Here is my code:
    Code:
            if(i == 9030)
            {
                actionData(5, "Wear");
                itemData("Corrupted dragon battle axe", "It's dragon...but corrupted?");
                totalColors(0);
                //colors(id, original, modified);
                models(9229, 9230, 9230, -1, -1);
                modelData(1600, 498, 400, -1, -1);
            }
    Reply With Quote  
     

  2. #2  
    Registered Member
    A nipple's Avatar
    Join Date
    Apr 2009
    Age
    28
    Posts
    426
    Thanks given
    34
    Thanks received
    22
    Rep Power
    193
    Here's an example of my Ags using his client. Hope it helps.

    Code:
    	if(i == 15336){
     		itemDef.actions = new String[5];
     		itemDef.actions[1] = "Wear";
     		itemDef.modifiedModelColors = new int[0];
     		itemDef.originalModelColors = new int[0];
     		itemDef.modelID = 7212;
     		itemDef.modelZoom = 1957;
     		itemDef.modelRotation1 = 498;
     		itemDef.modelRotation2 = 484;
     		itemDef.anInt204 = 0;
     		itemDef.modelOffset1 = -1;
     		itemDef.modelOffset2 = -1;
     		itemDef.maleEquip1 = 7209;
     		itemDef.maleEquip1 = 7209;
     		itemDef.stackable = false;
     		itemDef.name = "Armadyl Godsword";
     		itemDef.description = "A beautiful, heavy sword.".getBytes(); 
    		}
    Java is C++ without the guns, knives, and clubs
    [Only registered and activated users can see links. ]
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •