Thread: adding sea tutles to deltascape

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 adding sea tutles to deltascape 
    Registered Member Hunter K0 U All's Avatar
    Join Date
    Nov 2008
    Posts
    170
    Thanks given
    0
    Thanks received
    3
    Rep Power
    15
    Purpose: Adding new food + how much it heals.

    Difficulty: 1

    Tested On: Deltascape

    first open up postions.java and look up for

    Code:
     case 397:
    and just replace that whole case with this....[IF you have duel arena added]

    Code:
    case 391:
     if (c.duelRule[7] && c.inDuel && c.duelFight) {
    				c.sM("Food has been disabled for this duel.");
    				return;
    				}
    				if (System.currentTimeMillis() - c.foodDelay < 2000)
    				return;
    				c.foodDelay = System.currentTimeMillis();
    				c.setAnimation(0x33D);
    				//c.playSound(317, 000, 020);
    				c.sM("You eat the sea tutrle.");
    				if(c.currentHealth < c.playerLevel[c.playerHitpoints]){
    				c.sM("It heals some health.");
    				}
    				c.deleteItem(397, slot, 1);
    				
    				c.currentHealth += $$;
    				if (c.currentHealth > c.playerLevel[c.playerHitpoints])
    					c.currentHealth = c.playerLevel[c.playerHitpoints];
    				c.sendQuest("" + c.currentHealth + "", 4016);
    				break;
    Code:
     c.currentHealth += $$;
    change the $$ to how much u want it to heal.
    Code:
     if (System.currentTimeMillis() - c.foodDelay < 2000)
    if u wanna make it 1 sec ea for eating the food just change the 2000 to 1000...

    Code:
      if (c.duelRule[7] && c.inDuel && c.duelFight) {
    				c.sM("Food has been disabled for this duel.");
    				return;
    				}
    this is if u only have dueling on ur server.

    Code:
     c.deleteItem(397, slot, 1);
    this deletes it from invo after it has been used.


    If You Dont Have Duel Arena This Is How It Should Look.

    Code:
     if (System.currentTimeMillis() - c.foodDelay < 2000)
    				return;
    				c.foodDelay = System.currentTimeMillis();
    				c.setAnimation(0x33D);
    				//c.playSound(317, 000, 020);
    				c.sM("You eat the Sea Turtle.");
    				if(c.currentHealth < c.playerLevel[c.playerHitpoints]){
    				c.sM("It heals some health.");
    				}
    				c.deleteItem(397, slot, 1);
    				
    				c.currentHealth += $$;
    				if (c.currentHealth > c.playerLevel[c.playerHitpoints])
    					c.currentHealth = c.playerLevel[c.playerHitpoints];
    				c.sendQuest("" + c.currentHealth + "", 4016);
    				break;

    Save And Compile And Your Done!!


    Extra: If You Wanna Make It Mod+ Food And they Can use it even if the duel arena to stop food just make the case look like this


    Code:
     case 397:
    				if (System.currentTimeMillis() - c.foodDelay < 1000)
    				return;
    				c.foodDelay = System.currentTimeMillis();
    				c.setAnimation(0x33D);
    				//c.playSound(317, 000, 020);
    				c.sM("You eat the Sea Turtle.");
    				if(c.currentHealth < c.playerLevel[c.playerHitpoints]){
    				c.sM("It heals some health.");
    				}
    				c.currentHealth += 60;
    				if (c.currentHealth > c.playerLevel[c.playerHitpoints])
    					c.currentHealth = c.playerLevel[c.playerHitpoints];
    				c.sendQuest("" + c.currentHealth + "", 4016);
    				break;
    and then go into ur client java and search up

    Code:
     if (playerHasItem(395)) {
    and it should look like this

    Code:
     if (playerHasItem(395)) {
    			if (misc.random(1) == 0 || misc.random(1) == 1) {
    				setAnimation(883);
    				deleteItem(395, getItemSlot(395), 1);
    				addSkillXP(50000, 7);
    				addItem(397, 1);
    				sM("You susuccessfuly cooked the sea turtle.");
    				lastAction = System.currentTimeMillis();
    			} else {
    				setAnimation(883);
    				deleteItem(395, getItemSlot(395), 1);
    				addItem(399, 1);
    				lastAction = System.currentTimeMillis();
    				sM("You accidentally burn a sea turtle.");
    			}
    		}
    replace it with this..


    Code:
     if (playerHasItem(395)) {
    			if (misc.random(1) == 0 || misc.random(1) == 1) {
    				setAnimation(883);
    				deleteItem(395, getItemSlot(395), 1);
    				addSkillXP(50000, 7);
    				addItem(385, 1);
    				sM("sorry this is a admin food..have a manta ray");
    				lastAction = System.currentTimeMillis();
    			} else {
    				setAnimation(883);
    				deleteItem(395, getItemSlot(395), 1);
    				addItem(399, 1);
    				lastAction = System.currentTimeMillis();
    				sM("You accidentally burn a sea turtle..oh well it was a admin food any ways ;P");
    			}
    		}
    this will give them a manta ray and tell them that it is a admin food only...and tell them they got a manta ray..and for me i changed the xp to give them 50k xp since they worked so hard to catch the food...u can change the xp givven by changing this

    Code:
     addSkillXP(50000, 7);
    50000 is the xp given and the 7 is what skill the xp gose to. u can change that.

    hope this helped some people!
    Reply With Quote  
     

  2. #2  
    DeathTouch
    Guest
    Any1 got the tutorial for adding Dueling to DeltaScape, I dont wanna make it, too much work for full!
    Reply With Quote  
     

  3. #3  
    Registered Member Hunter K0 U All's Avatar
    Join Date
    Nov 2008
    Posts
    170
    Thanks given
    0
    Thanks received
    3
    Rep Power
    15
    lol...i might post on how to add...if i get high rep so ppl can trust me...and DO or TRY the tut.
    Reply With Quote  
     

  4. #4  
    DeathTouch
    Guest
    NO trying, I do C+P LOL

    Ill rep you once you realese and it works, like Real dueling.
    Reply With Quote  
     

  5. #5  
    Registered Member Hunter K0 U All's Avatar
    Join Date
    Nov 2008
    Posts
    170
    Thanks given
    0
    Thanks received
    3
    Rep Power
    15
    oh it will and ill relase it soon..maybe after 10 more tuts! lol
    Reply With Quote  
     

  6. #6  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    30
    Posts
    6,023
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    Knowledge - Knowing how to copy and paste manta ray cases and changing the ids.
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Dec 2008
    Posts
    3,004
    Thanks given
    10
    Thanks received
    198
    Rep Power
    0
    So would i, id rep you all night long
    Reply With Quote  
     

  8. #8  
    Registered Member the323909's Avatar
    Join Date
    Jul 2008
    Posts
    945
    Thanks given
    80
    Thanks received
    111
    Rep Power
    40
    Quote Originally Posted by pro k0er View Post
    Knowledge - Knowing how to copy and paste manta ray cases and changing the ids.
    Thats what I do
    Reply With Quote  
     

  9. #9  
    Registered Member Hunter K0 U All's Avatar
    Join Date
    Nov 2008
    Posts
    170
    Thanks given
    0
    Thanks received
    3
    Rep Power
    15
    Knowledge - Knowing how to copy and paste manta ray cases and changing the ids.
    thx 4 making it easier..now u ppl tell me ...
    Reply With Quote  
     

  10. #10  
    Registered Member
    minutes's Avatar
    Join Date
    Apr 2008
    Posts
    1,926
    Thanks given
    2
    Thanks received
    19
    Rep Power
    465
    1. its turtle, not tutle
    2. this is snippet, not tut lol
    3. i have already this
    [Only registered and activated users can see links. ]
    click banner to join gtracer!
    Reply With Quote  
     

Page 1 of 2 12 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
  •