[Tut] Item on Object [DODIAN]

Results 1 to 5 of 5
  1. #1
    Apprentice deejaysl3ak is offline
    MemberRank
    Jan 2006 Join Date
    Sydney, AustraliaLocation
    5Posts

    [Tut] Item on Object [DODIAN]

    Purpose: Use an item on object

    Difficulty: 1/10

    Assumed Knowledge: Ctrl + F & Basic code editing

    Server Base: Dodian/Devolution

    Classes Modified: Client.java

    Procedure
    Step 1: Open your client.java & search for "case 192".
    It should have something like;
    Code:
    			// Use an item on an object
    			junk = inStream.readSignedWordBigEndianA();
    			int UsedOnObjectID = inStream.readUnsignedWordBigEndian();
    			int UsedOnY = inStream.readSignedWordBigEndianA();
    			int ItemSlot = (inStream.readSignedWordBigEndianA() - 128);
    			int UsedOnX = inStream.readUnsignedWordBigEndianA();
    			int ItemID = inStream.readUnsignedWord();
    			if (!playerHasItem(ItemID))
    				break;
    Step 2: To make an item be used on an object hit enter after the "break"

    Step 3: Then add in
    Code:
    else if(ItemID == #### && UsedOnObjectID == ####) 
    deleteItem(####,getItemSlot(####), 1);
    addItem(####, 1);
    This is when you use an item on an object it will delete an item from your inventory & add a new item.

    Lets say you wanted to use Crystal Key (989) on Crystal Chest (ID 172) (x=2914 y=3451) you'd use.

    Code:
    else if(ItemID == 989 && UsedOnObjectID == 172)
    deleteItem(989,getItemSlot(989), 1);
    addItem(1615, 1);
    Now you'd add that code underneath the following in Case 192
    Code:
    			if (!playerHasItem(ItemID))
    				break;
    So when you use Crystal Key on the Crystal Chest.
    It removes the Crystal Key from your inventory.
    Then you receive a Dragonstone.

    Step 4: Compile & Run!

    Credits: Myself & Devolution Source!

    Hope this helps alot of people as it took me a while to work it out. And it's very useful.


  2. #2
    Account Upgraded | Title Enabled! Mayflair is offline
    MemberRank
    Jul 2007 Join Date
    Tilburg - HollandLocation
    206Posts

    Re: [TUT] Item on Object [DODIAN]

    Mod, he didnt write TUT himself, if u look at his other threads in the last hour, he wrote like 5 threads in 3 mins. He copied/pasted from somewhere?

  3. #3
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: [TUT] Item on Object [DODIAN]

    Quote Originally Posted by Mayflair View Post
    Mod, he didnt write TUT himself, if u look at his other threads in the last hour, he wrote like 5 threads in 3 mins. He copied/pasted from somewhere?
    Did you really need to post that in each thread? You could have just reported one and then asked for them all to be checked... or whatever, but as my last reply stands, get proof before you make accusations.

  4. #4
    Account Upgraded | Title Enabled! Mayflair is offline
    MemberRank
    Jul 2007 Join Date
    Tilburg - HollandLocation
    206Posts

    Re: [TUT] Item on Object [DODIAN]

    Quote Originally Posted by -fedexer- View Post
    Did you really need to post that in each thread? You could have just reported one and then asked for them all to be checked... or whatever, but as my last reply stands, get proof before you make accusations.
    What do you mean in ''each'' thread? I only did in 2. And as I already said,
    It seems pretty obvious to me that its not written by himself, but I could be wrong.


    Mayflair.

  5. #5
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: [TUT] Item on Object [DODIAN]

    You're likely right, but we can't make the accusations, as far as i see it, unless someone else wants to claim it as their code, then this is just another piece of material for people to learn from, be it his or not.



Advertisement