Thread: iRune - Easter Event 2008

Results 1 to 6 of 6
  1. #1 iRune - Easter Event 2008 
    Registered Member
    wh1p's Avatar
    Join Date
    Oct 2007
    Age
    28
    Posts
    1,983
    Thanks given
    26
    Thanks received
    285
    Rep Power
    320
    Before you do anything READ THIS TUTORIAL
    [Only registered and activated users can see links. ]


    Ok I made an event for my server but the client is messing up with this so I decided to post it..
    I haven't made a minigame or anything like this for a bit but I decided to try again.. It's nothing special but it's a cool reward
    I'm not sure if this is all correct, but if it isn't just post and I will fix..

    Purpose: Add an Easter Event on your Server

    Difficulty: C/P

    Classes Modified:
    Client.java, Item2.java, NPCHandler.java

    Credits: Project iRune


    * Adding the Bunny, Making it Work *



    Autospawn.CFG

    Code:
    spawn = 1835	2965	3386	0	2962	3383	2968	3390	1	Easter Bunny
    spawn = 1320	2933	3272	0	0	0	0	0	1	Bunny
    spawn = 1320	2934	3270	0	0	0	0	0	1	Bunny
    spawn = 1320	2936	3273	0	0	0	0	0	1	Bunny
    spawn = 1320	2930	3271	0	0	0	0	0	1	Bunny
    spawn = 1320	2931	3269	0	0	0	0	0	1	Bunny
    spawn = 1320	2928	3272	0	0	0	0	0	1	Bunny
    spawn = 1320	2924	3270	0	0	0	0	0	1	Bunny
    spawn = 1320	2925	3273	0	0	0	0	0	1	Bunny
    spawn = 1320	2923	3272	0	0	0	0	0	1	Bunny
    spawn = 1320	2924	3274	0	0	0	0	0	1	Bunny
    spawn = 1320	2923	3278	0	0	0	0	0	1	Bunny

    Client.java

    Search for
    Code:
    	public boolean process() {
    Add this somewhere on it (make sure you have the variables)
    Code:
    if ((playerEquipment[playerRing] == 7927) && npcId != 1320) {
    	npcId = 1320;
    	isNpc = true;
    	sendMessage("You wear a Easter Ring...");
    	sendMessage("... and magically turned into a Bunny!");
    } else if ((playerEquipment[playerRing] != 7927) && npcId == 1320) {
    	npcId= 0;
    	isNpc = false;
    	sendMessage("You Take off the Ring...");
    	sendMessage("...and turn back into a Human");
    }
    Search For:
    Code:
    UpdateNPCChat() {
    Now add this Cases: (Don't Forget to change the Number of the Cases)
    Code:
             case ####: // Easter Bunny Talking - Easter Event 2008
                sendFrame126("Easter Bunny", 1841);
                sendFrame126("Help me! help me!", 1840);
                sendFrame126("I must find my Eggs! My Eggs!!", 1839);
                sendFrame126("", 1838);
                sendFrame126("", 1837);
                sendFrame75(NpcTalkTo, 1836);
                sendFrame164(1835);
                NpcDialogueSend = true;
    	    break;
             case ####: // Easter Bunny Talking - Continuation
                sendFrame126("Easter Bunny", 1841);
                sendFrame126("", 1840);
                sendFrame126("My Eggs are gonne! I don't know what to do!", 1839);
                sendFrame126("Please Warrior! Find my eggs!", 1838);
                sendFrame126("If I don't Deliver them by this afternoon", 1837);
                sendFrame75(NpcTalkTo, 1836);
                sendFrame164(1835);
                NpcDialogueSend = true;
    	    break;
             case ####: // Easter Bunny Talking - Continuation
                sendFrame126("Easter Bunny", 1841);
                sendFrame126("", 1840);
                sendFrame126("People will be angry!", 1839);
                sendFrame126("Please get me 5 Easter Eggs!", 1838);
                sendFrame126("Just Kill the Bunnys after I teleport you...", 1837);
                sendFrame75(NpcTalkTo, 1836);
                sendFrame164(1835);
                NpcDialogueSend = true;
    	    break;
             case ####: // Easter Bunny Talking - Continuation
                sendFrame126("Easter Bunny", 1841);
                sendFrame126("", 1840);
                sendFrame126("So Can you please Help me?", 1839);
                sendFrame126("", 1838);
                sendFrame126("", 1837);
                sendFrame75(NpcTalkTo, 1836);
                sendFrame164(1835);
                NpcDialogueSend = true;
    	    break;
             case ####: // Player Choice Yes or No
                wildtele = 0;
    	    sendFrame171(1, 2465);
                sendFrame171(0, 2468);
                sendFrame126("Select an Option", 2460);
                sendFrame126("Yes Sure, I'm Ready to get your eggs!", 2461);
                sendFrame126("Nah, Sounds to Dangerous..", 2462);
                sendFrame164(2459);
                NpcDialogueSend = true;
                break;
             case ####: // Easter Bunny - After Get the Eggs
                sendFrame126("Easter Bunny", 1841);
                sendFrame126("", 1840);
                sendFrame126("Oh I see you have the Eggs!", 1839);
                sendFrame126("", 1838);
                sendFrame126("", 1837);
                sendFrame75(NpcTalkTo, 1836);
                sendFrame164(1835);
                NpcDialogueSend = true;
    	    break;
             case ####: // Easter Bunny - Reward
                sendFrame126("Easter Bunny", 1841);
                sendFrame126("", 1840);
                sendFrame126("Thanks for Helping me!", 1839);
                sendFrame126("Here is your Reward!", 1838);
                sendFrame126("", 1837);
                sendFrame75(NpcTalkTo, 1836);
                sendFrame164(1835);
                NpcDialogueSend = true;
    	    addItem(1037, 1);
    	    addItem(7927, 1);	
    	    break;
                }
    	}
    Search For:
    Code:
    Case 155:
    Add this:

    Code:
    				} else if (NPCID == 1835) { // Easter Bunny
    				skillX = server.npcHandler.npcs[NPCSlot].absX;
    				skillY = server.npcHandler.npcs[NPCSlot].absY;
    				NpcWanneTalk = ####;

    Now Find case 40: (The one with NPCDialogue)

    And add This:
    Code:
     || NpcDialogue == ####
    Now search for:
    Code:
    case 9157:
    Now add:
    Code:
    case 9158:
    if (NpcDialogue == ####) {
    teleportToX = 2935;
    teleportToY = 3275;
    } else {
    closeInterface();
    }
    break;

    Now go Back to case 155:

    Add this:
    Code:
    				} else if (NPCID == 1835) { // Easter Bunny
    				if(!playerHasItemAmmount(1961, 5)){
    				skillX = server.npcHandler.npcs[NPCSlot].absX;
    				skillY = server.npcHandler.npcs[NPCSlot].absY;
    				NpcWanneTalk = ####;
    Now Back to case 40:
    Code:
     || NpcDialogue == ####


    * Adding the Drops to the Bunnys (If You have npcdrops.cfg, you don't need this) *



    Go on Item2.java

    Search for:
    Code:
    public static int

    Now you will see alot of those. Add this under the First one

    Code:
    public static int Bunny[] = {379,379,379,379,379,379,385,379,379,379,379,385,379,379,379,379,379,379,379,379,379,379,379,379,1961};
    Now search for public static int random
    And add this under the First One

    Code:
        public static int randomBunny() { return Bunny[(int)(Math.random()*Bunny.length)]; }
    Now go to NPCHandler.java

    Search For:

    Code:
    if(npcs[NPCID].npcType ==
    Now Add Under that
    Code:
    
    if(npcs[NPCID].npcType == 1320)	{ drop(Item2.randomBunny(), 1, NPCID); }
    __________________________________________________ ______________

    Now Save All
    Compile
    And Run.

    Ok, I'm not sure if everything is ok, Just post your Errors.
    If you don't know how to add stuff and etc.. Don't Bother Reading..

    Post Your Errors.

    If this Works post pics
     

  2. #2  
    Banned

    Join Date
    Jan 2007
    Posts
    518
    Thanks given
    1
    Thanks received
    3
    Discord
    View profile
    Rep Power
    0
    Looks good. any screenshots?

    - Izzane
     

  3. #3  
    Registered Member
    wh1p's Avatar
    Join Date
    Oct 2007
    Age
    28
    Posts
    1,983
    Thanks given
    26
    Thanks received
    285
    Rep Power
    320
    Cba to post pics, if you read it you can see what it is tbh
     

  4. #4  
    Registered Member Tzar's Avatar
    Join Date
    Aug 2007
    Posts
    1,046
    Thanks given
    54
    Thanks received
    12
    Discord
    View profile
    Rep Power
    260
    Nice one.
    But, it would be better with the current Runescape one, that seems nearly impossible to make.



    [Only registered and activated users can see links. ]



     

  5. #5  
    Registered Member
    wh1p's Avatar
    Join Date
    Oct 2007
    Age
    28
    Posts
    1,983
    Thanks given
    26
    Thanks received
    285
    Rep Power
    320
    It's impossible to be perfect since no one has that underground zone yet..
     

  6. #6  
    Teh l337
    Jdiddy's Avatar
    Join Date
    Nov 2007
    Age
    28
    Posts
    2,026
    Thanks given
    262
    Thanks received
    56
    Rep Power
    3567
    Quote Originally Posted by wh1p View Post
    It's impossible to be perfect since no one has that underground zone yet..
    You can still make something pretty close to it though.

    [Only registered and activated users can see links. ]

     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •