Thread: [PI] New Ice Minigame Release!

Page 1 of 5 123 ... LastLast
Results 1 to 10 of 47
  1. #1 [PI] New Ice Minigame Release! 
    Registered Member Treq's Avatar
    Join Date
    Aug 2010
    Posts
    463
    Thanks given
    71
    Thanks received
    65
    Rep Power
    22
    Purpose: Adding Ice Minigame to your Server!
    Difficulty:4/10
    Assumed Knowledge:Common Sense, Copy and Paste.
    Classes Modified: ActionHandler.java, Commands.java, ObjectManager.java.
    Tested On(if it applies): Project Insanity

    Please Note: *You can no longer rapid click the chest reward to get more loot!*

    I'm releasing my custom Ice path minigame, you may edit it to make for your specific needs.

    Please note: If you don't like it or don't like the coding behind it, I could really care less, and I am just releasing this for the people who actually want it.

    First, go into your ObjectManager.java and paste this in your spawns...
    Code:
    // Start of ice minigame objects *_<Made by Toxic Melee>_*
            // ice minigame magic chests...
            c.getPA().checkObjectSpawn(13292, 2824, 3811, 1, 10);
            c.getPA().checkObjectSpawn(13292, 2824, 3810, 1, 10);
            c.getPA().checkObjectSpawn(13292, 2824, 3809, 1, 10);
            c.getPA().checkObjectSpawn(13292, 2824, 3808, 1, 10);
            // start of Ice minigame right side...
            c.getPA().checkObjectSpawn(6455, 2850, 3810, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2848, 3810, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2846, 3810, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2844, 3810, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2842, 3810, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2840, 3810, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2838, 3810, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2836, 3810, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2834, 3810, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2832, 3810, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2830, 3810, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2828, 3810, 1, 10);
            // start of Ice minigame Left side...
            c.getPA().checkObjectSpawn(6455, 2850, 3809, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2848, 3809, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2846, 3809, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2844, 3809, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2842, 3809, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2840, 3809, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2838, 3809, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2836, 3809, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2834, 3809, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2832, 3809, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2830, 3809, 1, 10);
            c.getPA().checkObjectSpawn(6455, 2828, 3809, 1, 10);
            c.getPA().checkObjectSpawn(7272, 2855, 3810, 1, 10);
            //End of Ice minigame objects.
            // -1 east, 1 west, 2 north, 0 south.
    Now, Go into player.java and put this in at the top.

    Code:
    public long Delay = 0;
    Next, Go into your ActionHandler.java and paste this in...

    Code:
    // start of the right side ice minigame. Made by "Toxic Melee"
            case 7272:
            if (c.objectX == 2855 && c.objectY == 3810){ //portal
            c.getPA().movePlayer(2851, 3809, 2);        
            }
            break;
            case 6455:
            if (c.objectX == 2850 && c.objectY == 3810){ //1
            c.getPA().movePlayer(2837, 3803, 1);        
            }
            if (c.objectX == 2848 && c.objectY == 3810){ //2
            c.getPA().movePlayer(2847, 3810, 2);
            }
            if (c.objectX == 2846 && c.objectY == 3810){ //3 
            c.getPA().movePlayer(2845, 3810, 2);
            }
            if (c.objectX == 2844 && c.objectY == 3810){ //4
            c.getPA().movePlayer(2843, 3810, 2);
            }
            if (c.objectX == 2842 && c.objectY == 3810){ //5
            c.getPA().movePlayer(2837, 3803, 1);
            }
            if (c.objectX == 2840 && c.objectY == 3810){ //6
            c.getPA().movePlayer(2839, 3810, 2);
            }
            if (c.objectX == 2838 && c.objectY == 3810){ //7
            c.getPA().movePlayer(2837, 3810, 2);
            }
            if (c.objectX == 2836 && c.objectY == 3810){ //8
            c.getPA().movePlayer(2837, 3803, 1);
            }
            if (c.objectX == 2834 && c.objectY == 3810){ //9
            c.getPA().movePlayer(2837, 3803, 1);
            }
            if (c.objectX == 2832 && c.objectY == 3810){ //10
            c.getPA().movePlayer(2831, 3810, 2);
            }
            if (c.objectX == 2830 && c.objectY == 3810){ //11
            c.getPA().movePlayer(2829, 3810, 2);
            }
            if (c.objectX == 2828 && c.objectY == 3810){ //12
            c.getPA().movePlayer(2837, 3803, 1);
            }
            // start of ice minigame objects left side. Made by "Toxic Melee"
            if (c.objectX == 2850 && c.objectY == 3809){ //1
            c.getPA().movePlayer(2849, 3809, 2);        
            }
            if (c.objectX == 2848 && c.objectY == 3809){ //2
            c.getPA().movePlayer(2837, 3803, 1);        
            }
            if (c.objectX == 2846 && c.objectY == 3809){ //3
            c.getPA().movePlayer(2837, 3803, 1);        
            }
            if (c.objectX == 2844 && c.objectY == 3809){ //4
            c.getPA().movePlayer(2837, 3803, 1);        
            }
            if (c.objectX == 2842 && c.objectY == 3809){ //5
            c.getPA().movePlayer(2841, 3809, 2);        
            }
            if (c.objectX == 2840 && c.objectY == 3809){ //6
            c.getPA().movePlayer(2837, 3803, 1);        
            }
            if (c.objectX == 2838 && c.objectY == 3809){ //7
            c.getPA().movePlayer(2837, 3803, 1);        
            }
            if (c.objectX == 2836 && c.objectY == 3809){ //8
            c.getPA().movePlayer(2835, 3809, 2);        
            }
            if (c.objectX == 2834 && c.objectY == 3809){ //9
            c.getPA().movePlayer(2833, 3809, 2);        
            }
            if (c.objectX == 2832 && c.objectY == 3809){ //10
            c.getPA().movePlayer(2837, 3803, 1);        
            }
            if (c.objectX == 2830 && c.objectY == 3809){ //11
            c.getPA().movePlayer(2837, 3803, 1);        
            }
            if (c.objectX == 2828 && c.objectY == 3809){ //12
            c.getPA().movePlayer(2827, 3809, 2);        
            }
            break;
            // start of ice minigames chests... Made by "Toxic Melee"
            case 13292:
            if (c.objectX == 2824 && c.objectY == 3808){ //far left        
            c.getPA().movePlayer(3094, 3469, 0);
            }
            if (c.objectX == 2824 && c.objectY == 3809){ //middle left    
            c.getPA().movePlayer(3094, 3469, 0);
            }
            if (c.objectX == 2824 && c.objectY == 3810){ //middle right    
            c.getPA().movePlayer(3094, 3469, 0);
            if(System.currentTimeMillis() - c.Delay > 2000) 
                {
                    c.getItems().addItem(995, 10000000);
                    c.Delay = System.currentTimeMillis();
                } else {
                        c.sendMessage("You only get one Treasure!");
                    }
                break;
            }
            // End of Ice minigame! Made by "Toxic Melee"
    Now go into your Commands.java and paste this in wherever you want a quick teleport to the start of the game. (Ex. admin area or regular area).

    Code:
                if (playerCommand.equals("ice")) {
                c.getPA().spellTeleport(2851, 3809, 2);
                }
    1. Save all those files and compile/run your server.

    2. Type ::ice in game to teleport to the Minigame start.

    3. The game is a bridge of ice with 2 sides on the bridge, you must click the right square of ice to advance, if you do not click the right square of ice you fall to the bottom of the ice path and must walk a pretty long ways to reach the top again.

    4. When you get passed the bridge you must click the right magic box to get a reward, if you click the wrong box, your teleported to Edgeville with no loot.

    5. If you click the right box, you get teleported to Edgeville with 10m coins.

    After notes:

    - You can add a npc to talk to to teleport you to the minigame.

    - You can change the rewards in the chest by editing the line...

    Code:
    c.getItems().addItem(995, 10000000);
    ...in ActionHandler.java.

    - You can make it so if you recieve a "ticket" or something as a drop, you can talk to a Npc to teleport you to this game for your ticket, but if you fail at the game you go back to Edgeville or w/e your home is.

    Pictures:

    Rewards End:


    End Where you lose:


    Top Part of Mountain Where you enter portal to start:


    Doing the game (2 tiles on either side):


    I Hope you enjoy this.
    -Toxic Melee
    Reply With Quote  
     

  2. #2  
    Registered Member .php's Avatar
    Join Date
    Mar 2010
    Posts
    546
    Thanks given
    24
    Thanks received
    36
    Rep Power
    17
    Video or Pictures of what we would be adding?
    Reply With Quote  
     

  3. #3  
    Registered Member
    FuckThePolice's Avatar
    Join Date
    Feb 2009
    Age
    27
    Posts
    846
    Thanks given
    29
    Thanks received
    57
    Rep Power
    87
    Hm.. not gonna add..
    Reply With Quote  
     

  4. #4  
    Registered Member Treq's Avatar
    Join Date
    Aug 2010
    Posts
    463
    Thanks given
    71
    Thanks received
    65
    Rep Power
    22
    I'll get pictures up in a bit.
    Reply With Quote  
     

  5. #5  
    Registered Member .php's Avatar
    Join Date
    Mar 2010
    Posts
    546
    Thanks given
    24
    Thanks received
    36
    Rep Power
    17
    kk. thank you.
    Reply With Quote  
     

  6. #6  
    Registered Member Treq's Avatar
    Join Date
    Aug 2010
    Posts
    463
    Thanks given
    71
    Thanks received
    65
    Rep Power
    22
    Pictures are added.
    Reply With Quote  
     

  7. #7  
    Registered Member Treq's Avatar
    Join Date
    Aug 2010
    Posts
    463
    Thanks given
    71
    Thanks received
    65
    Rep Power
    22
    Please, at least comment... don't just take it and run.
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Jul 2010
    Age
    31
    Posts
    773
    Thanks given
    39
    Thanks received
    83
    Rep Power
    0
    im using this its really nice, but ima code to were it gives random items at the chest.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Motive's Avatar
    Join Date
    Jun 2009
    Age
    12
    Posts
    1,474
    Thanks given
    101
    Thanks received
    121
    Rep Power
    1634
    I don't know why I clicked this, I don't even use tutorials, but this doesn't look good.
    Reply With Quote  
     

  10. #10  
    Why you reading this?

    LoveandPower's Avatar
    Join Date
    Sep 2010
    Posts
    2,156
    Thanks given
    897
    Thanks received
    282
    Rep Power
    365
    my portal is too high that lets you enter the game, which one do I change?

    nevermind not important i can just tele in...also the only bad thing about this is people will memorize the pattern. But I do like this a lot.
    Reply With Quote  
     

Page 1 of 5 123 ... 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: 9
    Last Post: 10-23-2010, 08:25 AM
  2. My barrows minigame re-release.
    By Raid in forum Tutorials
    Replies: 15
    Last Post: 01-07-2008, 12:16 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
  •