Thread: 719+ How To Make Dialogue With Object

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 719+ How To Make Dialogue With Object 
    Registered Member
    Join Date
    Aug 2012
    Posts
    13
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Hello

    First off Make A New Java Class At
    Src.com.rs.game.player.Dialogues
    I will add CaveEntrance.java
    Code;




    package com.rs.game.player.dialogues;

    import com.rs.game.WorldTile;
    import com.rs.game.player.content.Magic;

    public final class CaveEntrance extends Dialogue {

    @Override
    public void start() {
    sendDialogue(
    "<col=99CCFF>Do You Want To Be Teleported To Gnome Agilty?");

    }

    @Override
    public void run(int interfaceId, int componentId) {
    if (stage == -1) {
    stage = 0;
    sendOptionsDialogue(
    "<col=FF3300>Would U Like To Go?",
    "<col=FFFF00>Yes Please",
    "<col=FF9933>Stay Here");
    } else if (stage == 0) {
    if (componentId == OPTION_1) {
    Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2470,
    3436, 0));
    }
    end();
    }

    }

    @Override
    public void finish() {
    // TODO Auto-generated method stub

    }

    }




    U Can Also Change teleport and messages or put ur own Object

    now u will need to spawn object at
    src.com.rs.utils.NpcSpawning.java

    open it and go almost to the end
    then add this code

    World.spawnObject(new WorldObject(ObjectId, 10, 2, X_coords, Y_coords, 0), true);
    after that go to

    src.com.rs.game.player.dialouges.DialogueHandler

    then go almost to the end
    and add this code

    Class<Dialogue> value43 = (Class<Dialogue>) Class
    .forName(CaveEntrance.class.getCanonicalName());
    handledDialogues.put("CaveEntrance", value43);

    if there is value42 already then u need to type value43 for your object and name change name of java class
    then save all and compile if u got any questions send me private message or post it on help section here:http://www.rune-server.org/runescape...t-server/help/
    in game just click on object and if u did all right u will get the dialouge open.
    hope u like it
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2011
    Posts
    97
    Thanks given
    67
    Thanks received
    15
    Rep Power
    11
    Use: [ code ] [ /code ]
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2012
    Posts
    13
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    its my first time sorry
    Reply With Quote  
     

  4. #4  
    The Emperor of the Sands

    Azir's Avatar
    Join Date
    Nov 2008
    Posts
    2,466
    Thanks given
    8
    Thanks received
    487
    Rep Power
    117
    to simple. but GJ


    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2012
    Posts
    13
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Thanks but for some people who just started it will be good
    Reply With Quote  
     

  6. #6  
    Registered Member Taylor Moon's Avatar
    Join Date
    Aug 2012
    Posts
    2,565
    Thanks given
    625
    Thanks received
    1,303
    Rep Power
    66
    Not if conventions aren't good.
    Reply With Quote  
     

  7. #7  
    pride, love, happiness
    .alycia's Avatar
    Join Date
    Jun 2010
    Age
    28
    Posts
    4,106
    Thanks given
    1,714
    Thanks received
    2,062
    Rep Power
    5000
    This guy is obviously new, and he's doing his best to make a contribution.

    Kudos, but next time use [code] tags.

    Makes your release look better.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Aug 2012
    Posts
    13
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    thanks arto i will next time
    Reply With Quote  
     

  9. #9  
    Donator

    Old Oak's Avatar
    Join Date
    May 2011
    Age
    29
    Posts
    1,552
    Thanks given
    542
    Thanks received
    435
    Rep Power
    189
    Quote Originally Posted by xelion View Post
    thanks arto i will next time
    It's not too late.
    Reply With Quote  
     

  10. Thankful user:


  11. #10  
    Time to sleep for another couple years.

    Dizzy King's Avatar
    Join Date
    Jul 2012
    Age
    25
    Posts
    752
    Thanks given
    258
    Thanks received
    117
    Rep Power
    103
    well thanks for the contrib, but can you please use code tags ,[code]
    Attached image

    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. Replies: 4
    Last Post: 03-22-2012, 11:53 PM
  2. Object sending dialogue help
    By TheeRash in forum Help
    Replies: 0
    Last Post: 02-01-2011, 03:59 PM
  3. 562 object dialogue
    By Briskapop in forum Help
    Replies: 0
    Last Post: 08-25-2010, 01:52 AM
  4. Same object/dialogue used more than once.
    By Kastro in forum Snippets
    Replies: 10
    Last Post: 11-29-2009, 07:07 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
  •