Thread: Can someone tell me what Chatbox ID this chatbox is please?

Results 1 to 9 of 9
  1. #1 Can someone tell me what Chatbox ID this chatbox is please? 
    Registered Member
    Join Date
    Aug 2015
    Posts
    86
    Thanks given
    21
    Thanks received
    13
    Rep Power
    37
    So I am currently trying to create full DFS creation and I cant find the correct Chatbox ID for this layout. I have tried the NPC Dialogue frames but it isn't correct as it asks for NPC ID at the top. I have tried several others but Cant seem to find it. Please help



    bumppp
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jan 2014
    Posts
    1,652
    Thanks given
    428
    Thanks received
    501
    Rep Power
    221
    Quote Originally Posted by Genisys View Post
    So I am currently trying to create full DFS creation and I cant find the correct Chatbox ID for this layout. I have tried the NPC Dialogue frames but it isn't correct as it asks for NPC ID at the top. I have tried several others but Cant seem to find it. Please help



    bumppp
    It's an item dialogue.

    Code:
    player.getPackets().sendItemOnIComponent(244, 2, 11286, -1);
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2015
    Posts
    86
    Thanks given
    21
    Thanks received
    13
    Rep Power
    37
    [QUOTE=Joris;5061070]It's an item dialogue.

    [code]
    player.getPackets().sendItemOnIComponent(244, 2, 11286,

    Brilliant thanks, do you have the frame please?

    Hmm I got it to work but now the item id shows up small and it still asks for the NPC id up top?


    Edit 2:

    Fixed the 'Name' on the top but cant seem to fix the item being so small?

    Reply With Quote  
     

  4. #4  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    [QUOTE=Genisys;5061275]
    Quote Originally Posted by Joris View Post
    It's an item dialogue.

    [code]
    player.getPackets().sendItemOnIComponent(244, 2, 11286,

    Brilliant thanks, do you have the frame please?

    Hmm I got it to work but now the item id shows up small and it still asks for the NPC id up top?


    Edit 2:

    Fixed the 'Name' on the top but cant seem to fix the item being so small?

    Try changing the "2" for the component to any number from 0 to 10. Usually there's 1 componentId for small and one for large icons.
    Project thread
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2015
    Posts
    86
    Thanks given
    21
    Thanks received
    13
    Rep Power
    37
    [QUOTE=clem585;5061376]
    Quote Originally Posted by Genisys View Post

    Try changing the "2" for the component to any number from 0 to 10. Usually there's 1 componentId for small and one for large icons.
    Hmm if I change the 2, it changes the Item into text onto the chatbox.
    Reply With Quote  
     

  6. #6  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    [QUOTE=Genisys;5061446]
    Quote Originally Posted by clem585 View Post

    Hmm if I change the 2, it changes the Item into text onto the chatbox.
    Huh it's sendItemOnIComponent so it should only send the item to a different place. You probably did something wrong. I'm talking about this 2:

    Code:
    player.getPackets().sendItemOnIComponent(244, 2, 11286, -1);
    And btw you can just use the blue "quote" button to quote someone.
    Project thread
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Aug 2015
    Posts
    86
    Thanks given
    21
    Thanks received
    13
    Rep Power
    37
    [QUOTE=clem585;5061455]
    Quote Originally Posted by Genisys View Post

    Huh it's sendItemOnIComponent so it should only send the item to a different place. You probably did something wrong. I'm talking about this 2:

    Code:
    player.getPackets().sendItemOnIComponent(244, 2, 11286, -1);
    And btw you can just use the blue "quote" button to quote someone.
    I'm using a frame called 'addInterfaceItem' im using 508 pali source so probably explains it. Do you have the frame method at all? this is the method im using:

    My itemonobject:
    Code:
    				p.frames.showChatboxInterface(p, 244);
    				p.frames.addInterfaceItem(p, 244, 2, -1, 11286);
    				p.frames.setString(p, "    ", 244, 3);
    				p.frames.setString(p, "You set to work, trying to attach the ancient draconic", 244, 4);
    				p.frames.setString(p, "visage to your anti-dragonbreath shield. It's not easy to", 244, 5);
    				p.frames.setString(p, "work with the ancient artifact and it takes all of your", 244, 6);
    		        p.frames.setString(p, "skill as a master smith.", 244, 7);
    and my addInterfaceItem frame:

    Code:
        public void addInterfaceItem(Player p, int interfaceid, int child, int itemsize, int itemid) {
    	if (p == null || p.stream == null)
    		return;
    	int inter = ((interfaceid * 65536) + child);
    	p.stream.createFrame(35);
    	p.stream.writeDWord_v2(inter);
    	p.stream.writeDWordBigEndian(itemsize);
    	p.stream.writeWordBigEndianA(itemid);
        }
    Reply With Quote  
     

  8. #8  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by Genisys View Post

    I'm using a frame called 'addInterfaceItem' im using 508 pali source so probably explains it. Do you have the frame method at all? this is the method im using:

    My itemonobject:
    Code:
    				p.frames.showChatboxInterface(p, 244);
    				p.frames.addInterfaceItem(p, 244, 2, -1, 11286);
    				p.frames.setString(p, "    ", 244, 3);
    				p.frames.setString(p, "You set to work, trying to attach the ancient draconic", 244, 4);
    				p.frames.setString(p, "visage to your anti-dragonbreath shield. It's not easy to", 244, 5);
    				p.frames.setString(p, "work with the ancient artifact and it takes all of your", 244, 6);
    		        p.frames.setString(p, "skill as a master smith.", 244, 7);
    and my addInterfaceItem frame:

    Code:
        public void addInterfaceItem(Player p, int interfaceid, int child, int itemsize, int itemid) {
    	if (p == null || p.stream == null)
    		return;
    	int inter = ((interfaceid * 65536) + child);
    	p.stream.createFrame(35);
    	p.stream.writeDWord_v2(inter);
    	p.stream.writeDWordBigEndian(itemsize);
    	p.stream.writeWordBigEndianA(itemid);
        }
    Have you tried messing with this?

    Code:
    p.frames.addInterfaceItem(p, 244, 2, -1, 11286);//itemsize idk try 1 - 10
    After I would try to change this:

    Code:
    p.frames.addInterfaceItem(p, 244, 2, -1, 11286);//childId
    Project thread
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Aug 2015
    Posts
    86
    Thanks given
    21
    Thanks received
    13
    Rep Power
    37
    Quote Originally Posted by clem585 View Post
    Have you tried messing with this?

    Code:
    p.frames.addInterfaceItem(p, 244, 2, -1, 11286);//itemsize idk try 1 - 10
    After I would try to change this:

    Code:
    p.frames.addInterfaceItem(p, 244, 2, -1, 11286);//childId
    Yeah it does nothing at all. haha I probally have a messed up frame. Ill keep searching
    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: 2
    Last Post: 10-22-2012, 07:20 AM
  2. Can someone tell me what this does?
    By jameskmonger in forum Help
    Replies: 2
    Last Post: 02-12-2010, 07:42 PM
  3. Replies: 3
    Last Post: 08-23-2009, 09:13 AM
  4. Replies: 2
    Last Post: 08-15-2009, 04:03 AM
  5. can someone tell me what this is
    By Gluon in forum Help
    Replies: 8
    Last Post: 02-12-2009, 01:51 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
  •