Thread: Delta Scape ~ Christmas Event ~ Majin Goten

Page 1 of 8 123 ... LastLast
Results 1 to 10 of 72
  1. #1 [317] ShadowX ~ Christmas Event ~ Add To Your Own Server ~ Majin Goten [Delta] 
    Registered Member Original Majin Goten's Avatar
    Join Date
    Dec 2009
    Posts
    169
    Thanks given
    0
    Thanks received
    2
    Rep Power
    4
    I got bored of the whole talking to santa and he gives you a sled thing. So I made it better

    Here is a short tutorial of how to add it

    (Click the following link for pictures of the finished product: [Only registered and activated users can see links. ])
    (Video of Working Event [Made by a player of ShadowX]: [Only registered and activated users can see links. ] )

    Preconditions:
    1.) The ability for users to obtain (on your server):
    a.) a bucket of milk
    b.) Oak logs
    c.) Chisel
    2.) Working sleds and sled emotes (Pointless to do if you dont have these)
    3.) Of course: The Santa NPC
    4.) Also: The Dairy Cow Object placed somewhere near home

    Post-conditions:
    Add sled (4084) and Santa Hat (1050 & 1051) to noTrade, unless you want them trade able (You can always make them trade able after event is over)

    First Step:
    1. Open Client.java and look for:

    Code:
    if(NPCID == 1552 && playerRights > 1){
                         NpcDialogue = 111;
                         NpcDialogueSend = false;
    }
    Change That To:
    Code:
    if(NPCID == 1552){
    	if(playerEquipment[playerWeapon] != 4084 && !playerHasItem(4084) && !playerCheckBank(4084, 1)){
    		if(!playerHasItem(1521) || !playerHasItem(1755)){
                         	NpcDialogue = 156;
                         	NpcDialogueSend = false;
    		}
    		if(playerHasItem(1521) && playerHasItem(1755)){
                         	NpcDialogue = 162;
                         	NpcDialogueSend = false;
    		}
    	}
    	if(playerEquipment[playerWeapon] == 4084 || playerHasItem(4084) || playerCheckBank(4084, 1)){
    		if(playerEquipment[playerHat] != 1050 || !playerHasItem(1050) || !playerHasItem(1051) || !playerCheckBank(1050, 1)){
    			if(!playerHasItem(1927)){
                         		NpcDialogue = 166;
                         		NpcDialogueSend = false;
    			}
    			if(playerHasItem(1927)){
                         		NpcDialogue = 170;
                         		NpcDialogueSend = false;
    			}
    		}
    	}
    	if(playerEquipment[playerHat] == 1050 || playerHasItem(1050) || playerHasItem(1051) || playerCheckBank(1050, 1)){
                         NpcDialogue = 173;
                         NpcDialogueSend = false;
    	}
    }
    (Note: This searches the bank, your equipment, and your inventory for Santa hats and sleds, if you have ANY AT ALL on your account, Santa will say "I have already given you your presents")

    Then search for:
    Code:
    case 111:
    and find something like this:
    Code:
    case 111:
    				talk("Hi! I have to decided to visit ShadowX", 1552);
    				break;
    			case 112:
    				talk("for it's 1 year birthday party.", 1552);
    				break;
    			case 113:
    				talk("Have a sled for free.", 1552);
    				addItem(4084, 1);
    				break;
    add underneath the last line, this:
    Code:
    			case 156:
    				talk("Hi! I have to decided to visit ShadowX", 1552);
    				break;
    			case 157:
    				talk("for it's christmas event :-D", 1552);
    				break;
    			case 158:
    				talk("I have brought you a present, Here let me get it for you", 1552);
    				break;
    			case 159:
    				talk("Oh Dear! I seem to have left it in my sleigh!", 1552);
    				break;
    			case 160:
    				talk("Never Fear, bring me oak logs and a chisel", 1552);
    				break;
    			case 161:
    				talk("And I will make you the present right here :D", 1552);
    				break;
    			case 162:
    				talk("I see you have oak logs and a chisel", 1552);
    				break;
    			case 163:
    				talk("May I have those to make you a present?", 1552);
    				break;
    			case 164:
    				choice("Yes.", "No.");
    				break;
    			case 165:
    				talk("Here you go :-D", 1552);
    				deleteItem(1755, 1);
    				deleteItem(1521, 1);
    				addItem(4084, 1);
    				sM("Santa has made you a sled! YAY");
    				break;
    			case 166:
    				talk("I have already made you a present!", 1552);
    				break;
    			case 167:
    				talk("Would you like to help me with something else?", 1552);
    				break;
    			case 168:
    				choice("Yes.", "No.");
    				break;
    			case 169:
    				talk("Would you please bring me something for my reigndeers to drink?", 1552);
    				break;
    			case 170:
    				talk("I see you have a bucket of milk, may I have it to feed my reigndeers?", 1552);
    				break;
    			case 171:
    				choice("Yes.", "No.");
    				break;
    			case 172:
    				talk("Thank You! Here Have My Hat As A Reward!", 1552);
    				deleteItem(1927, 1);
    				addItem(1050, 1);
    				sM("Santa has given you a Santa Hat for your help!");
    				break;
    			case 173:
    				talk("I have nothing more for you to do, Sorry", 1552);
    				sM("You have already recieved both christmas gifts");
    				break;
    (Note: Replace all "ShadowX" with your server name)

    You may change:
    Code:
    			case 111:
    				talk("Hi! I have to decided to visit ShadowX", 1552);
    				break;
    			case 112:
    				talk("for it's 1 year birthday party.", 1552);
    				break;
    			case 113:
    				talk("Have a sled for free.", 1552);
    				addItem(4084, 1);
    				break;
    to:
    Code:
    			case 111:
    				talk("Whatever text you want Here", 213);
    				break;
    			case 112:
    				talk("Whatever text you want Here", 213);
    				break;
    			case 113:
    				talk("Whatever text you want Here", 213);
    				break;
    (Doing this will make it so, if you are lazy like me, you don't have to go through and delete all the stuff needed to remove these cases)

    Next search for:
    Code:
    case 40:
    			if (NpcDialogue == 1 || NpcDialogue == 2|| NpcDialogue == 3 || NpcDialogue == 4  || NpcDialogue == 5  || NpcDialogue == 6  || NpcDialogue == 8 || NpcDialogue == 10 || NpcDialogue == 13 || NpcDialogue == 16 || NpcDialogue == 18 || NpcDialogue == 19 || NpcDialogue == 21 || NpcDialogue == 22 || NpcDialogue == 23 || NpcDialogue == 27 || NpcDialogue == 28 || NpcDialogue == 30 || NpcDialogue == 31 || NpcDialogue == 32 || NpcDialogue == 34 || NpcDialogue == 37 || NpcDialogue == 41 || NpcDialogue == 42 || NpcDialogue == 44 || NpcDialogue == 45 || NpcDialogue == 48 || NpcDialogue == 49 || NpcDialogue == 50 || NpcDialogue == 52 || NpcDialogue == 54 || NpcDialogue == 57 || NpcDialogue == 60 || NpcDialogue == 64 || NpcDialogue == 65 || NpcDialogue == 66 || NpcDialogue == 73 || NpcDialogue == 75 || NpcDialogue == 77 || NpcDialogue == 81 || NpcDialogue == 82 || NpcDialogue == 83 || NpcDialogue == 85 || NpcDialogue == 87 || NpcDialogue == 91 || NpcDialogue == 89 || NpcDialogue == 90 || NpcDialogue == 91 || NpcDialogue == 92 || NpcDialogue == 95 || NpcDialogue == 96 || NpcDialogue == 97 || NpcDialogue == 98 || NpcDialogue == 100 || NpcDialogue == 102 || NpcDialogue == 103 || NpcDialogue == 105 || NpcDialogue == 106 || NpcDialogue == 107 || NpcDialogue == 108 || NpcDialogue == 109 || NpcDialogue == 111 || NpcDialogue == 112 || NpcDialogue == 114 || NpcDialogue == 116) {
    Add to this list (After the following: "NpcDialogue == 116" and before ") {")
    Code:
     || NpcDialogue == 156 || NpcDialogue == 157 || NpcDialogue == 158 || NpcDialogue == 159 || NpcDialogue == 160 || NpcDialogue == 162 || NpcDialogue == 163 || NpcDialogue == 166 || NpcDialogue == 167 || NpcDialogue == 168 || NpcDialogue == 170 || NpcDialogue == 171) {
    (This makes it so the case's follow each other instead of just popping up and going away)

    After that go to clickingmost.java and find:
    Code:
    if(c.NpcDialogue == 117){
    c.closeAll();
    c.toX = 3565;
    c.toY = 3311;
    }
    Add this right after that:
    Code:
    if(c.NpcDialogue == 164){
    c.closeAll();
    c.NpcDialogue = 165;
    c.NpcDialogueSend = false;
    }
    if(c.NpcDialogue == 168){
    c.closeAll();
    c.NpcDialogue = 169;
    c.NpcDialogueSend = false;
    }
    if(c.NpcDialogue == 171){
    c.closeAll();
    c.NpcDialogue = 172;
    c.NpcDialogueSend = false;
    }
    (This changes the choices "yes" to actually work for the Santa Event)

    Next we will make the "no" choice work,
    Search for:
    Code:
    case 9158:
    if(c.NpcDialogue == 9 || c.NpcDialogue == 11 || c.NpcDialogue == 12 || c.NpcDialogue == 17 || c.NpcDialogue == 24 || c.NpcDialogue == 29 || c.NpcDialogue == 38 || c.NpcDialogue == 43 || c.NpcDialogue == 46 || c.NpcDialogue == 51 || c.NpcDialogue == 58 || c.NpcDialogue == 67 || c.NpcDialogue == 83 || c.NpcDialogue == 93 || c.NpcDialogue == 99 || c.NpcDialogue == 104 || c.NpcDialogue == 110 || c.NpcDialogue == 125 || c.NpcDialogue == 127 || c.NpcDialogue == 129 || c.NpcDialogue == 117){
    c.closeAll();
    }
    Change this to:
    Code:
    case 9158:
    if(c.NpcDialogue == 9 || c.NpcDialogue == 164 || c.NpcDialogue == 168 || c.NpcDialogue == 171 || c.NpcDialogue == 11 || c.NpcDialogue == 12 || c.NpcDialogue == 17 || c.NpcDialogue == 24 || c.NpcDialogue == 29 || c.NpcDialogue == 38 || c.NpcDialogue == 43 || c.NpcDialogue == 46 || c.NpcDialogue == 51 || c.NpcDialogue == 58 || c.NpcDialogue == 67 || c.NpcDialogue == 83 || c.NpcDialogue == 93 || c.NpcDialogue == 99 || c.NpcDialogue == 104 || c.NpcDialogue == 110 || c.NpcDialogue == 125 || c.NpcDialogue == 127 || c.NpcDialogue == 129 || c.NpcDialogue == 117){
    c.closeAll();
    }

    (Guide is finished, but will be updating soon)

    (Rep?)

    Thanks,
    -Wyatt
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Dec 2008
    Posts
    183
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    The coding is very long and winded this could be -put down into a couple of lines.
    Reply With Quote  
     

  3. #3  
    Registered Member Original Majin Goten's Avatar
    Join Date
    Dec 2009
    Posts
    169
    Thanks given
    0
    Thanks received
    2
    Rep Power
    4
    Quote Originally Posted by Mage k0 View Post
    The coding is very long and winded this could be -put down into a couple of lines.
    Not really, the nested if statements are necessary, it will not work otherwise.

    -Wyatt
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Sep 2009
    Posts
    1,723
    Thanks given
    45
    Thanks received
    81
    Rep Power
    269
    fail at
    Code:
    talk("for it's 1 year birthday party.", 1552);


    Web Hosting | VPS | CDN | DDoS Protected Solutions
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2009
    Posts
    150
    Thanks given
    36
    Thanks received
    2
    Rep Power
    1
    lol
    Reply With Quote  
     

  6. #6  
    Registered Member Original Majin Goten's Avatar
    Join Date
    Dec 2009
    Posts
    169
    Thanks given
    0
    Thanks received
    2
    Rep Power
    4
    Quote Originally Posted by sinzscapeownz View Post
    fail at
    Code:
    talk("for it's 1 year birthday party.", 1552);

    erm... Thats how the original code was, I didn't make that.

    -Wyatt
    Reply With Quote  
     

  7. #7  
    jer123
    Guest
    nice im probly gonna use this
    good job
    rep for you
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Dec 2008
    Posts
    183
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    I wouldn't this is skiddie coded.
    Reply With Quote  
     

  9. #9  
    Registered Member Original Majin Goten's Avatar
    Join Date
    Dec 2009
    Posts
    169
    Thanks given
    0
    Thanks received
    2
    Rep Power
    4
    Quote Originally Posted by jer123 View Post
    nice im probly gonna use this
    good job
    rep for you
    Thanks

    I'm trying to think of an Easter event, If you have any ideas, share them. I'll give you credit for the idea.

    The only idea i have is to give the reward of Bunny Ears and a Scythe.


    -Wyatt
    Reply With Quote  
     

  10. #10  
    Registered Member
    Xynth's Avatar
    Join Date
    May 2009
    Posts
    2,222
    Thanks given
    226
    Thanks received
    259
    Rep Power
    1155
    Quote Originally Posted by sinzscapeownz View Post
    fail at
    Code:
    talk("for it's 1 year birthday party.", 1552);
    TBH, stop trying to flame people.. You fucking suck at coding.. All you do is rip and leech.. Considering you admitted it on MSN..

    On topic: Great job, could be a little better. Repped
    Reply With Quote  
     

Page 1 of 8 123 ... LastLast

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
  •