Ok there should be a new minigame whatever epic wants to call it is fine...but i have a the codes that he can put in and it should have in slash bash..i have a picture of him at this link...
Here is the link!!Here are the codes for the minigame!!
First, we need to pick a spot to place our minigame's first NPC. If you have a coords list inside your source, I suggest taking a look at that.
Open up your autospawn.cfg and scroll all the way to the bottom of the page. Once at the bottom, press enter and add this code.
Code: [Select]
//My Custom Minigame
spawn = *NPCID* *COORDX* *COORDY* 0 0 0 0 0 1
Add the NPC ID of the NPC you are going to use for the (first) monster of your minigame into the *NPCID* place.
Add the X coord into the *COORDX* and the Y coord into the*COORDY*. This is where they will be spawning.
Quick Tip - Type ::mypos in-game to figure out the X and Y coords.
The 0's are how far the NPCs will be able to walk. For this tut, we will not worry about them.
After adding the first NPC, you will need to make it tele you after you kill it. To do this, open up your npchandler.java and search for:
Code: [Select]
temp.toX = Find the last
Code: [Select]
} in the code. And under the code, add this.
Code: [Select]
if (npcs[i].npcType == *NPCID HERE*) { //Put the NPC you used in the autospawn.cfg here
temp.toX = *XCOORD HERE*; //This is the X coord where it will tele you to after you kill the NPC
temp.toY = *YCOORD HERE*; //This is the Y Coord where it will tele you to after you kill the NPC
temp.heightLevel = 0; //Don't mess with this
temp.addItem(*ITEM ID HERE*, *HOW MANY OF THAT ITEM HERE*); //This will spawn the item in your inventory after you kill this NPC - Delete this if you do not want it to spawn an item
temp.sM("*YOUR MESSAGE HERE*"); //What you want it to say after you killed the NPC
}
BTW - You can delete the "//" and the text after that if you don't want it in your code. For example:
Code: [Select]
if (npcs[i].npcType == *NPCID HERE*) {
temp.toX = *XCOORD HERE*;
temp.toY = *YCOORD HERE*;
temp.heightLevel = 0;
temp.addItem(*ITEM ID HERE*, *HOW MANY OF THAT ITEM HERE*);
temp.sM("*YOUR MESSAGE HERE*");
Wala, whenever you kill the NPC ID you put there, it will tele you to the destination you put. Keep doing this process until you are satisfied with your minigame. If you are having some trouble, please post a reply and I will (try) to help you to my greatest extent. Thanks for reading my tutorial.
PS - If you type in ::mypos in-game and it doesn't work, try ::coords or something similar. If it still doesn't work, try checking to make sure you have the rights needed to do the command. If it still doesn't work, add this code into your client.java (DELTA):
Code: [Select]
if(command.startsWith("mypos") && playerRights > 2){
sM("AbsX: "+absX+" AbsY: "+absY+"");
}
Credits to...
http://www.moparscape.org/smf/index.php?topic=426773.0I hope we have this minigame!!!!!!
-Flames