Team BlueWater Game Online Tutorial's
Bine ati venit la Team-BlueWater!!Tutorial's 4 all Games!

[RuneScape] Food Method

View previous topic View next topic Go down

[RuneScape] Food Method

Post  Karma on Sun Aug 14, 2011 6:02 am

Aceasta este o metoda utilizata pentru a manca mai rapid si mai usor. Desi este pentru mancare , poate fi folosita si pentru a face potiune de viata.

In client.java trebuie sa adaugati:
Code:
public void eatFood(int anim, int rt, int nh) { //Created by Rog3r
  setAnimation(anim);
  animationReset = System.currentTimeMillis() + rt;
  currentHealth += nh;
  if (currentHealth > playerLevel[playerHitpoints])
      currentHealth = playerLevel[playerHitpoints];
  }


Ce face ? Sa spunem ca primul set de numere creeaza numarul pentru animatie , iar al doilea set de numere va creea animatia asa ca nu se bucleaza. Altfel spus , va va creste viata.

Acum pentru a o face sa mearga trebuie sa cautati:
Code:
    case 526:
Langa el puteti adauga asta , dar este doar un exemplu de mancare. Exista mai multa mancare dar trebuie codata.
Code:
case 315:
        eatFood(0x33D, 750, 2);
        sendMessage("You eat the lobster.");
        break;
      case 361:
        eatFood(0x33D, 750, 5);
        sendMessage("You eat the Tuna.");
        break;
      case 319:
        eatFood(0x33D, 750, 3);
        sendMessage("You eat the shrimp.");
        break;
      case 325:
        eatFood(0x33D, 750, 5);
        sendMessage("You eat the lobster.");
        break;
      case 397:
        eatFood(0x33D, 750, 21);
        sendMessage("You eat the Sea Turtle.");
        break;
      case 2149:
        eatFood(0x33D, 750, 14);
        sendMessage("You eat the Lava Eel.");
        break;
      case 351:
        eatFood(0x33D, 750, 8);
        sendMessage("You eat the Pike.");
        break;
      case 365:
        eatFood(0x33D, 750, 13);
        sendMessage("You eat the Bass.");
        break;
      case 329:
        eatFood(0x33D, 750, 7);
        sendMessage("You eat the salmon.");
        break;
      case 379:
        eatFood(0x33D, 750, 10);
        sendMessage("You eat the lobster.");
        break;
      case 1942:
        eatFood(0x33D, 750, 2);
        sendMessage("You eat the potato.");
        break;
      case 1965:
        eatFood(0x33D, 750, 2);
        sendMessage("You eat the cabbage.");
        break;
      case 339:
        eatFood(0x33D, 750, 6);
        sendMessage("You eat the cod!");
        break;
      case 385:
        eatFood(0x33D, 750, 30);
        sendMessage("You eat the shark!");
        break;
      case 2309:
        eatFood(1327, 750, 3);
        sendMessage("You eat the crispy bread.");
        break;
      case 373:
        eatFood(1327, 750, 15);
        sendMessage("You eat the sword fish.");
        break;
      case 2108:
        eatFood(0x33D, 750, 2);
        sendMessage("You eat the orange.");
        break;
      case 391:
        eatFood(0x33D, 750, 50);
        sendMessage("You eat the manta ray.");
        break;

Asa ca dupa ce terminati salvati si compilati si cand pica itemul 391 mancati-l si ar trebui sa mearga. Puteti face la fel si cu celalalte tipuri de mancare.
Code:
Regula:

Animation ID, Animation Reset, Heal
The Case = Item ID

Credite:

Goru - Traducere , ajustare
Roger - Tutorial , some coding
psyhoman - Mancare

_________________
[You must be registered and logged in to see this image.]
avatar
Karma
Admin
Admin

Mesaje : 1092
Data de inscriere : 2011-04-22
Varsta : 26
Localizare : Craiova

View user profile http://team-bluewater.forumz.ro

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum