[Tut] jad Minigame With 10 Levels!

Page 1 of 3 123 LastLast
Results 1 to 15 of 34
  1. #1
    Member owner abz is offline
    MemberRank
    Feb 2008 Join Date
    Under Your BedLocation
    69Posts

    [Tut] jad Minigame With 10 Levels!

    difficulty: 2/10
    reason: because some people are just plain retarded.

    step 1: spawn these.
    you might want to delete your previous jad. or keep him there for a backup =)
    PHP Code:
    spawn 2745    2403    5090    0    3577    3300    3573    3296    2    Tzok Jad
    spawn 
    2630    2406    5084    4    3577    3300    3573    3296    2    Tz kek
    spawn 
    2597    2400    5080    8    3577    3300    3573    3296    2    Tzhaar mej
    spawn 
    2740    2403    5085    12    3577    3300    3573    3296    2    Tzhaar xil
    spawn 
    2591    2403    5085    16    3577    3300    3573    3296    2    
    spawn 
    2598    2403    5085    20    3577    3300    3573    3296    2    
    spawn 
    2610    2403    5085    24    3577    3300    3573    3296    2    
    spawn 
    2627    2403    5085    28    3577    3300    3573    3296    2    
    spawn 
    2631    2403    5085    32    3577    3300    3573    3296    2    
    spawn 
    2604    2403    5085    36    3577    3300    3573    3296    2    
    spawn 
    2605    2405    5088    36    3577    3300    3573    3296    2 
    this code spawns all the npc's for the waves
    save and close.

    step 2: go to client.Java and replace your entire jad command with this:
    PHP Code:
      else if (command.equalsIgnoreCase("jad")) {
                if (
    teleblock == true) {
                    
    sendMessage("A magical force stops you from teleporting.");
                } else {
                    
    teleportToX 2396;
                    
    teleportToY 5093;
                    
    heightLevel 4;
                    
    sendMessage("Pass through each wave to get a firecape!");
                    
    sendMessage("DONT LEAVE UNLESS U FINISH OR DIE!");
                    
    sendMessage("OR ELSE U WONT B ABLE TO SEE ANYONE OR TALK TO ANYONE!");

                }
            } 
    the new jad command makes it where when you tele you start on the 4th height level.
    take note of the "sendMessage"'s - you might want to make a ::ground command that makes your height level = 0 just incase some people ignore the warnings.

    save and close.

    step 3:
    add this to your NPChandler
    PHP Code:
    if(npcs[NPCID].npcType == 2630) {
                    
    int Player npcs[NPCID].StartKilling;
                    
    client ppl = (clientserver.playerHandler.players[Player];
                    
    ppl.sendMessage("Good Job!, You can move on to wave 2 now!");
                    
    ppl.teleportToX 2396;
                    
    ppl.teleportToY 5093;
                    
    ppl.heightLevel 8;
                        break;
    }
    if(
    npcs[NPCID].npcType == 2597) {
                    
    int Player npcs[NPCID].StartKilling;
                    
    client ppl = (clientserver.playerHandler.players[Player];
                    
    ppl.sendMessage("Good Job!, You can move on to wave 3 now!");
                    
    ppl.teleportToX 2396;
                    
    ppl.teleportToY 5093;
                    
    ppl.heightLevel 12;
                        break;
    }
    if(
    npcs[NPCID].npcType == 2740) {
                    
    int Player npcs[NPCID].StartKilling;
                    
    client ppl = (clientserver.playerHandler.players[Player];
                    
    ppl.sendMessage("Good Job!, You can move on to wave 4 now!");
                    
    ppl.teleportToX 2396;
                    
    ppl.teleportToY 5093;
                    
    ppl.heightLevel 16;
                        break;
    }
    if(
    npcs[NPCID].npcType == 2591) {
                    
    int Player npcs[NPCID].StartKilling;
                    
    client ppl = (clientserver.playerHandler.players[Player];
                    
    ppl.sendMessage("Good Job!, You can move on to wave 5 now!");
                    
    ppl.teleportToX 2396;
                    
    ppl.teleportToY 5093;
                    
    ppl.heightLevel 20;
                        break;
    }
    if(
    npcs[NPCID].npcType == 2598) {
                    
    int Player npcs[NPCID].StartKilling;
                    
    client ppl = (clientserver.playerHandler.players[Player];
                    
    ppl.sendMessage("Good Job!, You can move on to wave 6 now!");
                    
    ppl.teleportToX 2396;
                    
    ppl.teleportToY 5093;
                    
    ppl.heightLevel 24;
                        break;
    }
    if(
    npcs[NPCID].npcType == 2610) {
                    
    int Player npcs[NPCID].StartKilling;
                    
    client ppl = (clientserver.playerHandler.players[Player];
                    
    ppl.sendMessage("Good Job!, You can move on to wave 7 now!");
                    
    ppl.teleportToX 2396;
                    
    ppl.teleportToY 5093;;
                    
    ppl.heightLevel 28;
                        break;
    }
    if(
    npcs[NPCID].npcType == 2627) {
                    
    int Player npcs[NPCID].StartKilling;
                    
    client ppl = (clientserver.playerHandler.players[Player];
                    
    ppl.sendMessage("Good Job!, You can move on to wave 8 now!");
                    
    ppl.teleportToX 2396;
                    
    ppl.teleportToY 5093;
                    
    ppl.heightLevel 32;
                        break;
    }
    if(
    npcs[NPCID].npcType == 2631) {
                    
    int Player npcs[NPCID].StartKilling;
                    
    client ppl = (clientserver.playerHandler.players[Player];
                    
    ppl.sendMessage("Good Job!, You can move on to wave 9 now!");
                    
    ppl.teleportToX 2396;
                    
    ppl.teleportToY 5093;
                    
    ppl.heightLevel 36;
                        break;
    }
    if(
    npcs[NPCID].npcType == 2605) {
                    
    int Player npcs[NPCID].StartKilling;
                    
    client ppl = (clientserver.playerHandler.players[Player];
                    
    ppl.sendMessage("Good Job!, You can move on to the TzTok-Jad now!");
                    
    ppl.teleportToX 2396;
                    
    ppl.teleportToY 5093;
                    
    ppl.heightLevel 0;
                        break;
    }
    if(
    npcs[NPCID].npcType == 2745) {
                    
    int Player npcs[NPCID].StartKilling;
                    
    client ppl = (clientserver.playerHandler.players[Player];
                    
    ppl.sendMessage("Good Job!, The Jad Is Dead!");
                    
    ppl.sendFrame200(4883591);
                    
    ppl.sendFrame126("TzHaar-Mej-Kah"4884);
                    
    ppl.sendFrame126("Well Down, You have defeated the TzTok-Jad"4885);
                    
    ppl.sendFrame126("Click here to continue"4886);
                    
    ppl.teleportToX 2438;
                    
    ppl.teleportToY 5168;
                    
    ppl.sendFrame75(26184883);
                    
    ppl.sendFrame164(4882);
                    
    ppl.NpcDialogueSend true;
                    
    ppl.addItem(65701);
                                } 
    that peice of coding makes it teleport you to the next wave when you kill the monster on the wave you are on
    step 4: Compile and Run.

    post any errors and i will try to help you.

    Add Me For Help : Abzscape@hotmail.co.uk
    Last edited by owner abz; 15-04-08 at 01:05 PM.


  2. #2
    Member owner abz is offline
    MemberRank
    Feb 2008 Join Date
    Under Your BedLocation
    69Posts

    Re: [tut]jad Minigame With 10 Levels![tut]

    Please Post A Comment :D

  3. #3
    Account Upgraded | Title Enabled! georgegeorge is offline
    MemberRank
    Oct 2005 Join Date
    Israel, Tel-AviLocation
    1,079Posts

    Re: [tut]jad Minigame With 10 Levels![tut]

    nice tut, use "[code]"

    sendMessage("OR ELSE U WONT B ABLE TO SEE ANYONE OR TALK TO ANYONE!");

    lol lier

  4. #4
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: [tut]jad Minigame With 10 Levels![tut]

    You have some spelling mistakes, fix these :winky:
    Code:
    sendFrame126("Well Down, You have defeated the TzTok-Jad", 4885);
    Also , your code there seems very server specific, as some people might not have the class of which ppl points to, and they especially won't have it set up. You should inform the users of your code on what they must do, or else they will just get errors thrown, and i can tell you, you don't want that.

  5. #5
    Apprentice collin is offline
    MemberRank
    Apr 2008 Join Date
    12Posts

    Re: [tut]jad Minigame With 10 Levels![tut]

    hey this is off the subject but how do i get shops to say different things??

  6. #6
    Member owner abz is offline
    MemberRank
    Feb 2008 Join Date
    Under Your BedLocation
    69Posts

    Re: [tut]jad Minigame With 10 Levels![tut]

    How Do You Do that box saying quote on top?
    Last edited by owner abz; 15-04-08 at 12:55 PM.

  7. #7
    Member owner abz is offline
    MemberRank
    Feb 2008 Join Date
    Under Your BedLocation
    69Posts

    Re: [tut]jad Minigame With 10 Levels![tut]

    Quote Originally Posted by owner abz View Post
    How Do You Do that box saying quote on top?
    yay! :D

  8. #8
    Apprentice collin is offline
    MemberRank
    Apr 2008 Join Date
    12Posts

    Re: [tut]jad Minigame With 10 Levels![tut]

    owner abz
    can u help me?

  9. #9
    Member owner abz is offline
    MemberRank
    Feb 2008 Join Date
    Under Your BedLocation
    69Posts

    Re: [tut]jad Minigame With 10 Levels![tut]

    Ok, but with what?

  10. #10
    Member owner abz is offline
    MemberRank
    Feb 2008 Join Date
    Under Your BedLocation
    69Posts

    Re: [tut]jad Minigame With 10 Levels![tut]

    Quote Originally Posted by collin View Post
    owner abz
    can u help me?
    ok, but with what?

  11. #11
    Apprentice collin is offline
    MemberRank
    Apr 2008 Join Date
    12Posts

    Re: [tut]jad Minigame With 10 Levels![tut]

    u kno how over every npc like a shop it says like...sellin bla bla bla here...or coded and owner bla bla bla...hwo do i change that?

  12. #12
    Apprentice collin is offline
    MemberRank
    Apr 2008 Join Date
    12Posts

    Re: [tut]jad Minigame With 10 Levels![tut]

    or like it says like at the top of screen

    awesomescape
    www.blablabla.com

    or sumtin like that...how do i change that 2?

  13. #13
    Member owner abz is offline
    MemberRank
    Feb 2008 Join Date
    Under Your BedLocation
    69Posts

    Re: [tut]jad Minigame With 10 Levels![tut]

    Uhmm... Go to npchandler.client and then press ctrl + f search for
    moo, then scroll down, find what npc U want to edit.

  14. #14
    Apprentice collin is offline
    MemberRank
    Apr 2008 Join Date
    12Posts

    Re: [tut]jad Minigame With 10 Levels![tut]

    ok and do u wanna join my server and get co?

  15. #15
    Member owner abz is offline
    MemberRank
    Feb 2008 Join Date
    Under Your BedLocation
    69Posts

    Re: [tut]jad Minigame With 10 Levels![tut]

    Don't know :S btw what Source do you use?



Page 1 of 3 123 LastLast

Advertisement