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

Join the forum, it's quick and easy

Team BlueWater Game Online Tutorial's
Bine ati venit la Team-BlueWater!!Tutorial's 4 all Games!
Team BlueWater Game Online Tutorial's
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[RuneScape] Crafting Method

Go down

   [RuneScape] Crafting Method  Empty [RuneScape] Crafting Method

Post  Karma Sun Aug 14, 2011 6:20 am

Introducere:

Acest tutorial o sa va ajute sa va faceti viata mai usoara incercand sa cautati iteme sau pentru realizarea lor. Este mult mai bine , va asigur.

Ce face ?

Abilitatea de a folosi un item , de a capata EXP , de a sterge un item si de al reface.

Configurare:

Cautati in client.java Case 53:

Acum trebuie doar sa stiti unde sa il puneti , nu este greu. Prima data adugati asta:
Code:
int[]reqLvl =  { //Required levels for crafting this add: Required Level
        2, 1 };


Va dau cateva exemple , dar trebuie sa schimbati numarul. Acesta va schimba levelul pentru a purta aceste iteme. Puteti pune cat doriti dar dupa adaugati asta:
Code:
int[]neededGem =  { //Gems you need to craft it add: Item ID
        1615, 1617 };
Ar trebui sa schimbati numerele pentru ca sunt exemple. Acesta va fi itemul pe care il veti realiza.
Code:
int[]givenResult =  { //What you'll get once you craft  it add: Item ID
        1617, 1619 };

Rezultatul va rezulta itemul pe care il veti primi , de indata ce realizati 'neededGem'. Inca o data schimbati numerele pentru ca sunt exemple.
Code:
int[]expGiven =  { //And the exp given  add: EXP given
        32, 66 };
In final aceasta este experienta pe care o veti primi pentru ca ati realizat itemul , dar nu am terminat inca.
Code:
for (int h = 0; h < reqLvl.length; h++) {
        if (playerHasItem(neededGem[h], 1) && playerHasItem(1755, 1) && (itemUsed == 1755 && useWith == neededGem[h])) {
            if (playerLevel[playerCrafting] < reqLvl[h]) {
            sendMessage("You need a level of "+reqLvl[h]+" to craft that!");
            break;
        }


Asta inseamna ca daca playerul are itemul (neededGem) si are itemul 1755 care este folosit cu neededGem. Daca playerul are un level mai mic decat cel care trebuie va trimite un mesaj cu levelul de care ai nevoie. Dar mai este:
Code:
 sendMessage("You craft the "+neededGem+".");
                        setAnimation(885);
        deleteItem(neededGem[h], 1);
        addItem(givenResult[h], 1);
        addSkillXP(expGiven[h], 12);
        animationReset = System.currentTimeMillis() + 1000;
        break;
        }
      }

Va porni animatia 855. Va sterge neededGem , va da rezultatul si adauga exp skill. Dupa animationreset va spune sa resetati toate animatiile in 1000ms. Asa ca totul ar trebui sa arate cam asa:

Code:
int[]reqLvl =  { //Required levels for crafting this add: Requried Level
        2, 1 };
      int[]neededGem =  { //Gems you need to craft it add: Item ID
        1615, 1617 };
      int[]givenResult =  { //What you'll get once you craft  it add: Item ID
        1617, 1619 };
      int[]expGiven =  { //And the exp given  add: EXP given
        32, 66 };
     
      for (int h = 0; h < reqLvl.length; h++) {
        if (playerHasItem(neededGem[h], 1) && playerHasItem(1755, 1) && (itemUsed == 1755 &&

                              useWith == neededGem[h])) {
            if (playerLevel[playerCrafting] < reqLvl[h]) {
            sendMessage("You need a level of "+reqLvl[h]+" to craft that!");
            break;
        }
                        sendMessage("You craft the "+neededGem+".");
        setAnimation(885);
        deleteItem(neededGem[h], 1);
        addItem(givenResult[h], 1);
        addSkillXP(expGiven[h], 12);
        animationReset = System.currentTimeMillis() + 1000;
        break;
        }
      }
Karma
Karma
Admin
Admin

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

https://team-bluewater.forumotion.com

Back to top Go down

Back to top

- Similar topics

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