Thread: Drop party room

Results 1 to 10 of 10
  1. #1 Drop party room 
    i penguin i
    Guest
    Purpose: to have some fun and get rich!!
    Difficulty: 2/10
    Files edited: client.java, itemspawnpoints.java, autospawn.cfg, npchandler.java

    THIS WAS MADE BY ME SEE ANYWHERE ELSE ITS LEECHED!!
    Rep would be nice and some comments

    Ok, first where goin to go to itemspawnpoints.java

    Step 1: Search for
    Code:
                            ItemHandler.globalItemController[i], false); // Guthix Cape
    Under it add all this.

    Code:
    	ItemHandler.addItem(1038, 3130, 9329, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(1040, 3131, 9329, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(1042, 3132, 9329, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(1044, 3127, 9328, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(1046, 3128, 9328, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(1048, 3129, 9328, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(1057, 3130, 9328, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(1050, 3131, 9328, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(1055,3132, 9328, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(1053, 3127, 9327, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(6384, 3128, 9327, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4732, 3129, 9327, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4716, 3130, 9327, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4718, 3131, 9327, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4720, 3132, 9327, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4722, 3133, 9327, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4753, 3126, 9326, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4755, 3127, 9326, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4757, 3128, 9326, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4759, 3129, 9326, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4734, 3130, 9326, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4736, 3131, 9326, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4738, 3132, 9326, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4708, 3133, 9326, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4710, 3127, 9323, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4712, 3128, 9323, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4714, 3129, 9323, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4224, 3130, 9323, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(1961, 3131, 9323, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(2665, 3132, 9323, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(2657, 3126, 9325, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(2673, 3127, 9325, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(2671, 3128, 9325, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(2667, 3129, 9325, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(2659, 3130, 9325, 1, 
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(2653, 3131, 9325, 1, 
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(2663, 3132, 9325, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(2661, 3133, 9325, 1, 
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(2655, 3127, 9324, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(2675, 3128, 9324, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(2669, 3129, 9324, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(4212, 3130, 9325, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(7158, 3131, 9324, 1,
                            ItemHandler.globalItemController[i], false); // dp
    	ItemHandler.addItem(2417, 3132, 9324, 1,
                            ItemHandler.globalItemController[i], false); // dp
    Adding that will tell the server you want to drop all those items every 100 seconds.

    Now exit and save

    Step 2: go to client.java and search for.

    Code:
        public void Deleteobjects() {
    directly under add this

    Code:
            deletethatobject(3127, 9329); // party room
            deletethatobject(3128, 9319); // party room
            deletethatobject(3129, 9324); // party room
    Doing that will delete the objects you don't want there.

    Step 3: search for.

    Code:
        public boolean nonWild() {
    under it add

    Code:
                    || (absX >= 3126 && absX <= 3133 && absY >= 9317 && absY <= 9330)
    this will tell the server you want to make that area safezone not wilderness

    Step 5: Search for.

    Code:
        public void NewObjects() {
    under all that add

    Code:
            makeGlobalObject(3124, 9321, 3207, -1, 10); // party room
            makeGlobalObject(3129, 9331, 3207, -1, 10); // party room
            makeGlobalObject(3129, 9316, 2213, 0, 10); // Bank
    Step 6: Search for something like this

    Code:
    else if (command.equalsIgnoreCase("home")) {
    under it add

    Code:
    else if (command.equalsIgnoreCase("dropparty") && playerRights >= 2)
    {
    teleportToX = 3130;
    teleportToY = 9319;
    heightLevel = 0;
    sendMessage("DROP PARTY AREA!!!!");
    Now search for

    Code:
            if (command.equals("xteleall") && playerRights >= 3) {
                for (Player p : server.playerHandler.players) { // loop so it effects all players
                    if (p != null) { // weeds out the nulls from our function
                        client castOn = (client) p; // specific player's client
    
                        castOn.teleportToX = absX; // replace with your tele X coord
                        castOn.teleportToY = absY; // replace with your tele Y coord
                    }
                }
            }
    under that add this.

    Code:
            if (command.equals("dropparty") && playerRights >= 3) {
                for (Player p : server.playerHandler.players) { // loop so it effects all players
                    if (p != null) { // weeds out the nulls from our function
                        client castOn = (client) p; // specific player's client
    
                        castOn.teleportToX = 3130;
                        castOn.teleportToY = 9319;
                    }
                }
            }
    this will make it so when you type :ropparty it will tele everone there including you


    Exit and Save.

    Step 7: Go to autospawn.cfg and add these Npc's

    Code:
    spawn = 659	3125	9321	0	0	0	0	0	1	Party it up!!!
    spawn = 659	3129	9333	0	0	0	0	0	1	Party it up!!!
    Exit and Save

    Last step: go to NPCHandler.java an search for something like this.

    Code:
                        if (npcs[i].npcType == 1699) {
                            if (misc.random2(30) <= 2) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "Mr.Ghost's Purez Shop!";
                            }
                        }
    under that add this

    Code:
                        if (npcs[i].npcType == 659) {
                            if (misc.random2(30) <= 2) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "Drop party room, PARTY IT UP!!!";
                            }
                        }
    This will tell the server that you want that Npc to say this text.

    Exit ans Save Compile and Restart.


    Heres what it looks like when your done the whole process





    Sorry for not cropping
     

  2. #2  
    Guitars595
    Guest
    This looks really good! nice job
     

  3. #3  
    i penguin i
    Guest
    Thanks, im thinking about adding a timer cause when you bring em all there, they wont want to leave so i might ad a timer thats around 5 mins and after that they get teled home
     

  4. #4  
    Guitars595
    Guest
    I like it but it creates a lot of lag if its spawning all the time.
     

  5. #5  
    Donator


    Join Date
    Sep 2006
    Age
    30
    Posts
    2,106
    Thanks given
    73
    Thanks received
    54
    Rep Power
    491
    Quote Originally Posted by i penguin i View Post
    Thanks, im thinking about adding a timer cause when you bring em all there, they wont want to leave so i might ad a timer thats around 5 mins and after that they get teled home
    You might need this:
    Code:
    if (command.equals("xteleall") && playerName.equalsIgnoreCase("Pixel")) {
    for (Player p : server.playerHandler.players) {
    if (p != null) {
    client castOn = (client) p;
    castOn.teleportToX = absX;
    castOn.teleportToY = absY;
    castOn.heightLevel = heightLevel;
    }
    }
    }
     

  6. #6  
    i penguin i
    Guest
    thanks pixel will add but one question, do you know how to make a timer on it and ill give you soem credits on it plz i really need.
     

  7. #7  
    Registered Member
    JakobWolthers's Avatar
    Join Date
    Aug 2007
    Age
    31
    Posts
    616
    Thanks given
    16
    Thanks received
    3
    Rep Power
    84
    just look the actiontimer code and make a new example dropptimer
     

  8. #8  
    damnant quod non intellegunt

    Mr Chainsaw's Avatar
    Join Date
    Sep 2006
    Age
    30
    Posts
    4,058
    Thanks given
    827
    Thanks received
    1,277
    Rep Power
    4664
    Make it randomly drop objects into the server; at random locations; inside a set location.
     

  9. #9  
    Registered Member
    No Go_JoE's Avatar
    Join Date
    May 2008
    Posts
    1,357
    Thanks given
    44
    Thanks received
    142
    Rep Power
    480
    goodjob dude.
     

  10. #10  
    i penguin i
    Guest
    Quote Originally Posted by Mr Chainsaw View Post
    Make it randomly drop objects into the server; at random locations; inside a set location.

    Then it would just lose the pint of a drop party ROOM.
     


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
  •