Instead of
Make itCode:if (System.currentTimeMillis() - c.foodDelay < 2000)
Untested, just something from my noob java skills.Code:if (System.currentTimeMillis() - c.foodDelay < 2000) if(c.playerRights => 0)
|
|
Hello,
I want to make herring heals 99 hp, for mod+.
but i have already this:
But every1 can use it, how can i make it only for mod+ ?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;
Thanks..
Instead of
Make itCode:if (System.currentTimeMillis() - c.foodDelay < 2000)
Untested, just something from my noob java skills.Code:if (System.currentTimeMillis() - c.foodDelay < 2000) if(c.playerRights => 0)
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
| « When you kill someone you are rewarded money. & Wildness level bug &attack option bug | move item thing problem » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |