Thread: torso minigame

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 torso minigame 
    Crysis
    Guest
    Classes modifed : client.java,autospawn.cfg,item.cfg,npc.cfg,npchand ler.java

    Source : project wave (p16)

    First open client.java


    under
    Code:
    	else if (command.equalsIgnoreCase("fishing"))
    	{
    		
    		FishingHelpMenu();	
    	}
    add
    Code:
    	else if (command.equalsIgnoreCase("torso"))
    	{
    		teleportToX = 2602;
    		teleportToY = 3160;
    		sendMessage("good luck");
    	}
    ok under
    Code:
    				else if (manta == 12716)	//Well X=2651,3370 //item harpoon slot 1
                                    {
                                    if (playerLevel[10] <= 119)
                                    {
                                    sendMessage("You need to be lvl 120 fishing to catch manta rays.");
                                    }
                                    else
    				{
    					manta();
    				}
                                    }
    add

    Code:
    else if(useItemID == 4273 && atObjectID == 5162) {
    deleteItem(4273, getItemSlot(4273), 1);
    sendMessage("Contratulations, Round one is done four rounds left!");
    teleportToX = 2608;
    teleportToY = 3166;
    SummonNewNPC(2880);
    }
    else if(useItemID == 5585 && atObjectID == 5162) {
    deleteItem(5585, getItemSlot(5585), 1);
    sendMessage("Contratulations, Round two is done three rounds left");
    teleportToX = 2608;
    teleportToY = 3160;
    SummonNewNPC(49);
    }
    else if (useItemID == 4272 && atObjectID == 5162) {
    deleteItem(4272, getItemSlot(4272), 1);
    sendMessage("Contratulations, Round three is done two rounds left");
    teleportToX = 2608;
    teleportToY = 3163;
    SummonNewNPC(795);
    }
    else if(useItemID == 4078 && atObjectID == 5162) {
    deleteItem(4078, getItemSlot(4078), 1);
    sendMessage("Contratulations, Round four done, one round left.");
    teleportToX = 2608;
    teleportToY = 3166;
    SummonNewNPC(509);
    }
    else if(useItemID == 6104 && atObjectID == 5162) {
    deleteItem(6104, getItemSlot(6104), 1);
    sendMessage("Contratulations, You are awarded your fighter torso now.");
    teleportToX = 2604;
    teleportToY = 3160;
    addItem(6384,1);
    }
    Now save and open item.cfg

    Search for
    Code:
    item = 6384
    replace all line with this :
    Code:
    item = 6384	Fighter_Torso	Harder_than_normal_leather.		700000000	700000000	198945.35621087	0	0	-40	0	62	85	62	-10	67	90	100	100
    and

    Code:
    item = 6385
    replace all line with this :
    Code:
    item = 6385	Fighter_Torso	Swap_this_note_at_any_bank_for_a_Fighter_torso.		700000000	700000000	198945.35621087	0	0	-40	0	62	85	62	-10	67	90	100	100
    save & close

    Open autospawn.cfg and add this :
    Code:
    spawn = 275	2603	3163	0	2744	9150	2693	9213	1	Fighter torso minigame
    save&close

    Now open npc.cfg

    add this somewhere there :

    Code:
    npc = 509	Nazastarool			93	15000
    npc = 795	Ice_Queen			111	1500
    npc = 49	Hellhound			122	1250
    npc = 275	Guardian_of_Armadyl		43	750
    npc = 2880	Dagannoth_Fledgeling		70	1000
    add this into npchandler.java

    Code:
    if(npcs[NPCID].npcType == 49) {
    ItemHandler.addItem(4272, npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    int Player = npcs[NPCID].StartKilling;
    client plr = (client) server.playerHandler.players[Player];
    plr.addSkillXP(1000, 18);
    }
    if(npcs[NPCID].npcType == 795) {
    ItemHandler.addItem(4078, npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    int Player = npcs[NPCID].StartKilling;
    client plr = (client) server.playerHandler.players[Player];
    plr.addSkillXP(1000, 18);
    }
    if(npcs[NPCID].npcType == 509) {
    ItemHandler.addItem(6104, npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    int Player = npcs[NPCID].StartKilling;
    client plr = (client) server.playerHandler.players[Player];
    plr.addSkillXP(1000, 18);
    }
    if(npcs[NPCID].npcType == 2880) {
    ItemHandler.addItem(5585, npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
    int Player = npcs[NPCID].StartKilling;
    client plr = (client) server.playerHandler.players[Player];
    plr.addSkillXP(1000, 18);
    }
    add this in item2.java

    Code:
    public static int Hell_Hound[] = {1305, 1305, 1434, 1434, 4587, 4587, 5698, 5698, 1149};
            public static int randomHell_Hound()
            {
                    return Hell_Hound[(int)(Math.random()*Hell_Hound.length)];
            }
    ok, from that make some more drops for the other keys k?


    ill ad the others in l8r im off now to shop
     

  2. #2  
    Registered Member
    Ryan's Avatar
    Join Date
    Aug 2006
    Age
    28
    Posts
    2,060
    Thanks given
    0
    Thanks received
    0
    Rep Power
    164
    show pics maybe please?
    RB26DETT GTR See..? This is mine.

     

  3. #3  
    Zorpha1
    Guest
    um..... private servers are complicated! I am Admin But I can't code on a server!
     

  4. #4  
    × Zenzie ×
    Guest
    Private servers are TOO easy. They require a low knowledge of java.
     

  5. #5  
    afferin
    Guest
    Blah, good job

    EDIT: Blahhh, I need the symbol for SummonNewNPC
     

  6. #6  
    Crazy Cam10
    Guest
    Why Add A Desert Top Has A Fighter Torso.. When We Can Have Silabs Torso Anyway?
     

  7. #7  
    Registered Member
    i burn piff's Avatar
    Join Date
    Jul 2007
    Posts
    405
    Thanks given
    47
    Thanks received
    13
    Rep Power
    167
    Quote Originally Posted by Crazy Cam10 View Post
    Why Add A Desert Top Has A Fighter Torso.. When We Can Have Silabs Torso Anyway?

    This is pretty old that's why. All you gotta do is just change the id. Good tut anyway.
     

  8. #8  
    Crazy Cam10
    Guest
    It Was Posted Yesterday So How Is It Old?
     

  9. #9  
    Registered Member
    i burn piff's Avatar
    Join Date
    Jul 2007
    Posts
    405
    Thanks given
    47
    Thanks received
    13
    Rep Power
    167
    LOL. My bad. I thought I saw something just like this but it was way older sorry lol.
     

  10. #10  
    Registered Member
    Join Date
    Feb 2007
    Posts
    104
    Thanks given
    0
    Thanks received
    0
    Rep Power
    32
    This is ripped off Project Destiny source i bet
     

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. Torso Minigame *New Type*
    By OwnageIsle in forum Tutorials
    Replies: 39
    Last Post: 10-20-2007, 07:26 PM
  2. My first tut -* torso game*-
    By Barkyboy 007 in forum Tutorials
    Replies: 12
    Last Post: 09-04-2007, 11:37 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •