Silentz
Posts : 25 Join date : 2010-10-27 Age : 30 Location : England
| Subject: My Custom Minigame Wed Oct 27, 2010 12:17 pm | |
| Right, Lets Get Started:) 100% Coded By Yours Truly In Client.java search any teleport command and underneath this, add - Code:
-
if (command.equalsIgnoreCase("avatarmini") && playerRights >= 0) { String[] args = command.split(" "); triggerTele(2607, 4773, 0); sM("Welcome to AvatarMini , talk to Bordanzan"); }
add in this global object - Code:
-
makeGlobalObject(2600, 4774, 4111, 0, 10); then search for - Code:
-
if(NPCID == then underneath any code add - Code:
-
if(NPCID == 1859) { sendFrame200(4901, 591); sendFrame126(GetNpcName(1859), 4902); sendFrame126("Welcome to the Avatar Minigame", 4903); sendFrame126("Kill until you get a bronze key", 4904); sendFrame126("If you have one , click on the chest to open it", 4905); sendFrame126("Good luck stranger", 4906); sendFrame75(1859, 4901); sendFrame164(4900); NpcDialogueSend = true; NpcDialogueSend = false; } PART 2 first search - Code:
-
sM("You find some spider eggs within the box."); } then underneath add - Code:
-
//avatarmini if(objectID == 4111){ if(playerHasItem(5585)) { deleteItem(5585, getItemSlot(5585), 1); addItem(Item.randomAvatar(), 1); addItem(995,(20000000)); sM("Congratz on the reward, i hope you got lucky;)"); } else sM("You need a bronze key before you can open the chest."); }
In item.java add - Code:
-
public static int avatarmini[] = { 4151, 8770, 2519, 4214, 4587};
public static int randomAvatar() { return avatarmini[(int) (Math.random() * avatarmini.length)]; } part 3 in Autospawn.cfg add this - Code:
-
//avatarmini spawn = 412 2830 9812 0 0 0 0 0 2 spawn = 412 2831 9806 0 0 0 0 0 2 spawn = 412 2841 9814 0 0 0 0 0 2 spawn = 1851 2603 4774 0 0 0 0 0 2 spawn = 1851 2598 4779 0 0 0 0 0 2 spawn = 1854 2604 4779 0 0 0 0 0 2 spawn = 1854 2598 4771 0 0 0 0 0 2 spawn = 1857 2603 4768 0 0 0 0 0 2 spawn = 1857 2610 4771 0 0 0 0 0 2 spawn = 1859 2607 4774 0 0 0 0 0 2
in npcdrops.cfg add - Code:
-
//avatars minigame npcdrop = 1851 5585 1 15 npcdrop = 1854 5585 1 15 npcdrop = 1857 5585 1 15 npcdrop = 1851 536 1 100 npcdrop = 1854 536 1 100 npcdrop = 1857 536 1 100 npcdrop = 1851 1050 1 1 npcdrop = 1854 1050 1 1 npcdrop = 1857 1050 1 1 | |
|
No Pulse
Posts : 14 Join date : 2010-10-27
| Subject: Re: My Custom Minigame Wed Oct 27, 2010 12:27 pm | |
| Very nice i tested it out with my own server wolf should try it | |
|
Silentz
Posts : 25 Join date : 2010-10-27 Age : 30 Location : England
| Subject: Re: My Custom Minigame Wed Oct 27, 2010 12:51 pm | |
| You Used it on your server? | |
|
Wolf Owner
Posts : 28 Join date : 2010-10-25 Age : 30 Location : United States (WA)
| Subject: Re: My Custom Minigame Wed Oct 27, 2010 1:47 pm | |
| Hmm. This looks familiar, but i'll take your word for it. So the goal is to get the key and then you use it on the chest to gain levels in numerous stats. Am I correct? | |
|
Silentz
Posts : 25 Join date : 2010-10-27 Age : 30 Location : England
| Subject: Re: My Custom Minigame Wed Oct 27, 2010 2:47 pm | |
| actually you get random rewards but it can be manipulated to gain exp in stats if you so choos.. just change the coding | |
|
Wolf Owner
Posts : 28 Join date : 2010-10-25 Age : 30 Location : United States (WA)
| Subject: Re: My Custom Minigame Wed Oct 27, 2010 3:58 pm | |
| Hmm. Thats pretty neat. I dunno if i'll use, but still a nice suggestion. | |
|
Sponsored content
| Subject: Re: My Custom Minigame | |
| |
|