Thread: [PI] - Dragon History item switching error fix

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 [PI] - Dragon History item switching error fix 
    i just come online to contribute to spam

    woof woof bish's Avatar
    Join Date
    May 2011
    Posts
    2,450
    Thanks given
    2,209
    Thanks received
    923
    Rep Power
    5000
    I was helping someone and saw when he switched an item it always gave him errors in the cmd so ya heres the fix

    Replace your MoveItems class with this

    Code:
    package server.model.players.packets;
    
    import server.model.players.Client;
    import server.model.players.PacketType;
    
    
    public class MoveItems implements PacketType {
    
    //@Editor Young 1/13/12
    
    	@Override
    	public void processPacket(Client c, int packetType, int packetSize) {
    		int somejunk = c.getInStream().readUnsignedWordA(); 
    		int itemFrom =  c.getInStream().readUnsignedWordA();
    		int itemTo = (c.getInStream().readUnsignedWordA() -128);
    
    		if(c.inTrade) {
    			c.getTradeAndDuel().declineTrade();
                                 		return;
                            	}
    		if(c.tradeStatus == 1) {
    			c.getTradeAndDuel().declineTrade();
                                 		return;
                            	}
    		if(c.duelStatus == 1) {
    			c.getTradeAndDuel().declineDuel();
    			return;
    		}
    		c.getItems().moveItems(itemFrom, itemTo, somejunk);
    	}
    }
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Registered Member Da D4v1nci C0de's Avatar
    Join Date
    Jul 2010
    Posts
    423
    Thanks given
    128
    Thanks received
    30
    Rep Power
    56
    Cool

    Quote Originally Posted by atsiv3 View Post
    When I see your name login to my server, I will ban you.
    Reply With Quote  
     

  4. #3  
    Carpet Developer


    Join Date
    Sep 2010
    Posts
    790
    Thanks given
    48
    Thanks received
    145
    Rep Power
    403
    He did this for me. Works 100% Thank you.
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    Oct 2010
    Age
    27
    Posts
    612
    Thanks given
    20
    Thanks received
    7
    Rep Power
    9
    Thank you. REPPED
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #5  
    i just come online to contribute to spam

    woof woof bish's Avatar
    Join Date
    May 2011
    Posts
    2,450
    Thanks given
    2,209
    Thanks received
    923
    Rep Power
    5000
    Np gonna post the bank fix soon
    Reply With Quote  
     

  7. #6  
    Registered Member
    Join Date
    Oct 2010
    Age
    27
    Posts
    612
    Thanks given
    20
    Thanks received
    7
    Rep Power
    9
    what bank fix? and btw could you look up the duel interface it has some text missing
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #7  
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,830
    Thanks given
    893
    Thanks received
    1,439
    Discord
    View profile
    Rep Power
    2924
    Good snippet Thanks
    Reply With Quote  
     

  9. #8  
    i just come online to contribute to spam

    woof woof bish's Avatar
    Join Date
    May 2011
    Posts
    2,450
    Thanks given
    2,209
    Thanks received
    923
    Rep Power
    5000
    Thanks

    and eric, when you open bank ect it gives a error in cmd and when u right click and use an item too
    Reply With Quote  
     

  10. #9  
    Registered Member
    Join Date
    Dec 2011
    Posts
    109
    Thanks given
    20
    Thanks received
    4
    Rep Power
    13
    Can u fix the bank and the logging in error? Thanks.
    Reply With Quote  
     

  11. #10  
    i just come online to contribute to spam

    woof woof bish's Avatar
    Join Date
    May 2011
    Posts
    2,450
    Thanks given
    2,209
    Thanks received
    923
    Rep Power
    5000
    enjoy - [Only registered and activated users can see links. ]
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. [PI] Dragon-History [Aintaro]
    By Aintaro. in forum Downloads
    Replies: 234
    Last Post: 06-26-2013, 01:01 PM
  2. Replies: 0
    Last Post: 01-18-2010, 12:36 AM
  3. Replies: 0
    Last Post: 01-15-2010, 05:00 PM
  4. Dragon item fix
    By Dunea in forum Tutorials
    Replies: 7
    Last Post: 01-25-2009, 02:24 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •