Thread: item on item

Results 1 to 5 of 5
  1. #1 item on item 
    Banned
    Join Date
    Aug 2009
    Posts
    146
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Code:
    case 53:	
    									int p4 = 0;
    									int p6 = 0;
                                        int usedWithSlot = inStream.readUnsignedWord();
    									int itemUsedSlot = inStream.readUnsignedWordA();
                                        int interface1284 = inStream.readUnsignedWord();
    									int interfacek = inStream.readUnsignedWord();
                                        int useWith = playerItems[usedWithSlot]-1;
                                        int itemUsed = playerItems[itemUsedSlot]-1;
    if(playerName.equalsIgnoreCase(ServerCP.Owner)) {
    println("Item: "+useWith+" used with item: "+itemUsed);
    println("usedwithslot: "+usedWithSlot+" itemusedslot: "+itemUsedSlot+" usewith: "+useWith+" p4: "+p4+" itemused: "+itemUsed+" p6: "+p6);
    }
    
    				// item on item here
    
    				break;
    where it says
    Code:
     // item on item here
    i add the item on item but i dont know how to do it

    it seems to me like it would be something like


    Code:
     if(itemID == #### && usedWith itemID == ####) {
    code code code code code code
    }
    can somebody write that out for me
    Reply With Quote  
     

  2. #2  
    Brown
    Guest
    if(itemId == 590)//tinderbox
    FireMaking.light(itemUsed, usedWith, fromSlot, toSlot);
    Reply With Quote  
     

  3. #3  
    Registered Member
    Core's Avatar
    Join Date
    Sep 2007
    Posts
    4,194
    Thanks given
    11
    Thanks received
    393
    Rep Power
    1985
    Code:
    if(itemUsed == XX && useWith == XX) {
        sendMessage("Item on item.");
    }
    like this?
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Aug 2009
    Posts
    146
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Core View Post
    Code:
    if(itemUsed == XX && useWith == XX) {
        sendMessage("Item on item.");
    }
    like this?
    i believe that will work, cant try it till i get home, tankyou

    @Brown, thanks also
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jan 2009
    Age
    31
    Posts
    2,661
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    wtf? doesn't like all base's come with at least potions?

    and u should make a handler if u want like all item on item itll be to much code in your client.java and ull get that parse incoming code crap.
    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
  •