Thread: How to make mod+ food [DELTA]

Results 1 to 3 of 3
  1. #1 How to make mod+ food [DELTA] 
    Registered Member
    Join Date
    Jan 2009
    Posts
    138
    Thanks given
    0
    Thanks received
    0
    Rep Power
    5
    Hello,

    I want to make herring heals 99 hp, for mod+.

    but i have already this:

    Code:
    			case 347:
    				if (System.currentTimeMillis() - c.foodDelay < 2000)
    				return;
    				c.foodDelay = System.currentTimeMillis();
    				c.setAnimation(0x33D);
    				//c.playSound(317, 000, 020);
    				c.sM("You eat the manta ray.");
    				if(c.currentHealth < c.playerLevel[c.playerHitpoints]){
    				c.sM("It heals some health.");
    				}
    				c.deleteItem(347, slot, 1);
    				
    				c.currentHealth += 99;
    				if (c.currentHealth > c.playerLevel[c.playerHitpoints])
    					c.currentHealth = c.playerLevel[c.playerHitpoints];
    				c.sendQuest("" + c.currentHealth + "", 4016);
    				break;
    But every1 can use it, how can i make it only for mod+ ?

    Thanks..
    Reply With Quote  
     

  2. #2  
    vapenchi
    Guest
    Instead of
    Code:
    		if (System.currentTimeMillis() - c.foodDelay < 2000)
    Make it
    Code:
    		if (System.currentTimeMillis() - c.foodDelay < 2000)
    if(c.playerRights => 0)
    Untested, just something from my noob java skills.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2009
    Posts
    138
    Thanks given
    0
    Thanks received
    0
    Rep Power
    5
    it doesnt work, even a normal player can eat it,

    and i have fixed it it was if(c.playerRights > 0) not if(c.playerRights => 0)


    but a normal player can still eat it
    Reply With Quote  
     


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
  •