Runescape Private Server
 
PortalHomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Avatar Minigame

Go down 
AuthorMessage
Silentz



Posts : 16
Reputation : 1
Join date : 2010-03-19
Age : 24
Location : England. United Kingdon

PostSubject: Avatar Minigame   Sat Mar 20, 2010 11:15 pm

COMPILE AFTER EACH STEP!!!

first go into client.java and and this command



Code:
if (command.equalsIgnoreCase("Avatarmini") && playerRights >= 0)

        {

            String[] args = command.split(" ");

                toX = 2607;

                toY = 4773;

                        sM("Welcome to AvatarMini , talk to Bordanzan");

}



next add this



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.");

}



Then Make This Global Object



Code:
 makeGlobalObject(2600, 4774, 4111, 0, 10);



Add This NPC speech



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;

}



Save And Open AutoSpawn.cfg

add in these npc's



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

Remember These Spaces Are Done With The Tab Key, Not The SpaceBar

go into NpcDrops.cfg

and add these in

Code:
//avatars minigame

npcdrop = 1851 5585 1 5

npcdrop = 1854 5585 1 5

npcdrop = 1857 5585 1 5

Remember These Spaces Are Done With The Tab Key, Not The SpaceBar

In ITEM.JAVA



search
Code:
cracker

you should see
Code:
public static int crackers[] = { 1038, 1040, 1042, 1044, 1046, 1048, 14590 };

copy all of that and repaste underneath. DIRECTLY !

change crackers to avatarmini, and change id's to your choice



then search
Code:
PHat

until you see
Code:
 public static int randomPHat() {

  return crackers[(int) (Math.random() * crackers.length)];

 }

then replace the
Code:
randomPhat
to
Code:
randomAvatar
and replace
Code:
crackers
with
Code:
avatarmini




save & Compile

Video Of Avatarmini In Action



Video TUT

Enjoy
Surprised


Last edited by Silentz on Sun Mar 21, 2010 6:48 am; edited 1 time in total
Back to top Go down
View user profile
Beast
Epic!
Epic!


Posts : 123
Reputation : 5
Join date : 2010-03-18

PostSubject: Re: Avatar Minigame   Sun Mar 21, 2010 2:26 am

Very awesome!

I'll talk about this being added Smile

Thanks for suggesting!
Back to top Go down
View user profile
 
Avatar Minigame
Back to top 
Page 1 of 1
 Similar topics
-
» Winners: Spooky Avatar and Spooky Fun House Contests
» Animated GIF in forum avatar
» Pirates Of The Caribbean Avatar + Signature Request
» Drawing of my sisters fantage avatar~
» How do you make your fantage character, your avatar?

Permissions in this forum:You cannot reply to topics in this forum
Epic Scape :: Epic-Scape Forums! :: General :: Suggestions-
Jump to: