ok this minigame will be good for about any server i will be doing this on a devolution v7 base.
ok to start off find a stackable item such as tickets etc. (what ever you want)
i chose castle wars tickets
now to do this you will need to make a command (or if you want any other way)
ok first find the item you want them to recive such as a whip (4151)
ok now find how many tickets etc. its going to cost them (mine's 500)
now put that into a code
Code:
if (command.startsWith("wwhip")) {
if (playerHasItem(4067, 60)) {
addItem(10107, 1);
deleteItem(4067, 60);
} else {
sendMessage("You need 60 Tickets to get this whip!");
}
now to explain the player has item part it the 4067 is the item id the 60 is the amount needed the 10107 is the item gaven for the tickets now the delete item is so that when they get the whip it takes out the amount needed for the whip now wwhip (the command name isn't needed you can name it anything you want)
such as whippy or something
also you do not need to make a sendmessage now for the chart this is what mine looks like
Code:
public void ServerHe() {
sendFrame126("@[email protected] - Armor/wand Help Menu", 8144);
clearQuestInterface();
sendFrame126("", 8145);
sendFrame126("@[email protected] every kill you get 10 tickets", 8146);
sendFrame126("@[email protected] not use the code unless you want to lose ur tickets", 8147);
sendFrame126("@[email protected] how it goes", 8148);
sendFrame126("@[email protected]::infiboots = 50 tickets = infinity boots",8149);
sendFrame126("@[email protected]::beginwand = 70 tickets = beginner wand",8150);
sendFrame126("@[email protected]::infigloves = 100 tickets = infinity gloves",8151);
sendFrame126("@[email protected]::apprentwand = 110 tickets = apprentice wand",8152);
sendFrame126("@[email protected]::infihat = 150 tickets = infinity hat",8153);
sendFrame126("@[email protected]::infibottom = 200 tickets = infinity bottom", 8154);
sendFrame126("@[email protected]::teachwand = 210 tickets = teachers wand",8155);
sendFrame126("@[email protected]::infitop = 250 tickets = infinity top",8156);
sendFrame126("@[email protected]::masterwand = 260 tickets = master wand", 8157);
sendQuestSomething(8143);
showInterface(8134);
}
very neat :0
ok now for you put the code then the amount of tickets then the item there reciving so they don't waste there tickets now you can make the chart how ever way you want it mines good cause its nice and neat now when you have both of these make the teleport
ok here's mine
Code:
case 166:
// dance emote
triggerTele(3552, 3557, 0, false);
ServerHe();
break;
so basicly im teleporting to the minigame arena and the server help is poping up telling me what the commands and tickets needed are (remember i am using dodain so it may differ from server)
ok now making a monster drop the needed item...
open up npcdrops.cfg (dodain)
mine looks like this
Code:
npcdrop = 253 4067 10 100 //Rat drop/Iron 2handed/1 of it/30% chance drop.
basicly it's claming that the khzard guard is dropping 10 tickets 100 percent of the time you can change the amount and the percent now that you have this make the npc's in the minigame spot and boom there you go you got a dodian mini game!