Author Topic: Firemaking  (Read 135 times)

Offline AdotSells

  • Firecape Member
  • *
  • Posts: 300
  • Rep 4
    • View Profile
Firemaking
« on: March 29, 2011, 07:12:27 pm »
Delta cleaned. 
Okay soo testing skills today i found out deltacleaned Dont actuely have any skills -.- , So i got my brother to send me his client.java and i took the firemaking.

I have cleaned the code up alot.  and added animations to it  and made
it work with my souce

At the moment When you light a fire the log stays there till you log out
Will try fix that for next update

Okay go to you'r itemonitem case .  (mines case 53)

Quote
         // FIREMAKING edited by AdotSells\\
         if ((itemUsed == 590) && (useWith == 1511)) {
            if (playerLevel[11] >= 0) {
               setAnimation(827);
               deleteItem(1511, getItemSlot(1511), 1);
               makeGlobalObject(absX, absY, 2732, 0, 10);
               addSkillXP(180, 11);
               sM("You attempt to light the logs.");
               sM("The fire catches and the logs begin to burn.");
               resetWC();
            } else {
               sM("You need a firemaking of 0 to burn normal logs.");
            }
         } else if ((itemUsed == 590) && (useWith == 1521)) {
            if (playerLevel[11] >= 15) {
               setAnimation(827);
               deleteItem(1521, getItemSlot(1521), 1);
               makeGlobalObject(absX, absY, 2732, 0, 10);
               addSkillXP(250, 11);
               sM("You attempt to light the logs.");
               sM("The fire catches and the logs begin to burn.");
               resetWC();
            } else {
               sM("You need a firemaking level of 15 to burn oak logs.");
            }
         }

         else if ((itemUsed == 590) && (useWith == 1519)) {
            if (playerLevel[11] >= 30) {
               setAnimation(827);
               deleteItem(1519, getItemSlot(1519), 1);
               makeGlobalObject(absX, absY, 2732, 0, 10);
               addSkillXP(340, 11);
               sM("You attempt to light the logs.");
               sM("The fire catches and the logs begin to burn.");
               resetWC();
            } else {
               sM("You need a firemaking of 30 to burn willow logs.");
            }
         } else if ((itemUsed == 590) && (useWith == 1517)) {
            if (playerLevel[11] >= 45) {
               setAnimation(827);
               deleteItem(1517, getItemSlot(1517), 1);
               makeGlobalObject(absX, absY, 2732, 0, 10);
               addSkillXP(600, 11);
               sM("You attempt to light the logs.");
               sM("The fire catches and the logs begin to burn.");
               resetWC();
            } else {
               sM("You need a firemaking level of 45 to burn maple logs.");
            }
         }

         else if ((itemUsed == 590) && (useWith == 1515)) {
            if (playerLevel[11] >= 60) {
               setAnimation(827);
               deleteItem(1515, getItemSlot(1515), 1);
               makeGlobalObject(absX, absY, 2732, 0, 10);
               addSkillXP(780, 11);
               sM("You attempt to light the logs.");
               sM("The fire catches and the logs begin to burn.");
               resetWC();
            } else {
               sM("You need a firemaking of 60 to burn yew logs.");
            }
         } else if ((itemUsed == 590) && (useWith == 1513)) {
            if (playerLevel[11] >= 75) {
               setAnimation(827);
               deleteItem(1513, getItemSlot(1513), 1);
               makeGlobalObject(absX, absY, 2732, 0, 10);
               addSkillXP(1200, 11);
               sM("You attempt to light the logs.");
               sM("The fire catches and the logs begin to burn.");
               resetWC();
            } else {
               sM("You need a firemaking level of 75 to burn magic logs.");
            }
         }

         else if ((itemUsed == 1511) && (useWith == 590)) {
            if (playerLevel[11] >= 0) {
               setAnimation(827);
               deleteItem(1511, getItemSlot(1511), 1);
               makeGlobalObject(absX, absY, 2732, 0, 10);
               addSkillXP(180, 11);
               sM("You attempt to light the logs.");
               sM("The fire catches and the logs begin to burn.");
               resetWC();
            } else {
               sM("You need a firemaking of 0 to burn normal logs.");
            }
         } else if ((itemUsed == 1521) && (useWith == 590)) {
            if (playerLevel[11] >= 15) {
               setAnimation(827);
               deleteItem(1521, getItemSlot(1521), 1);
               makeGlobalObject(absX, absY, 2732, 0, 10);
               addSkillXP(250, 11);
               sM("You attempt to light the logs.");
               sM("The fire catches and the logs begin to burn.");
               resetWC();
            } else {
               sM("You need a firemaking level of 15 to burn oak logs.");
            }
         }

         else if ((itemUsed == 1519) && (useWith == 590)) {
            if (playerLevel[11] >= 30) {
               setAnimation(827);
               deleteItem(1519, getItemSlot(1519), 1);
               makeGlobalObject(absX, absY, 2732, 0, 10);
               addSkillXP(340, 11);
               sM("You attempt to light the logs.");
               sM("The fire catches and the logs begin to burn.");
               resetWC();
            } else {
               sM("You need a firemaking of 30 to burn willow logs.");
            }
         } else if ((itemUsed == 1517) && (useWith == 590)) {
            if (playerLevel[11] >= 45) {
               setAnimation(827);
               deleteItem(1517, getItemSlot(1517), 1);
               makeGlobalObject(absX, absY, 2732, 0, 10);
               addSkillXP(600, 11);
               sM("You attempt to light the logs.");
               sM("The fire catches and the logs begin to burn.");
               resetWC();
            } else {
               sM("You need a firemaking level of 45 to burn maple logs.");
            }
         }

         else if ((itemUsed == 1515) && (useWith == 590)) {
            if (playerLevel[11] >= 60) {
               setAnimation(827);
               deleteItem(1515, getItemSlot(1515), 1);
               makeGlobalObject(absX, absY, 2732, 0, 10);
               addSkillXP(780, 11);
               sM("You attempt to light the logs.");
               sM("The fire catches and the logs begin to burn.");
               resetWC();
            } else {
               sM("You need a firemaking of 60 to burn yew logs.");
            }
         } else if ((itemUsed == 1513) && (useWith == 590)) {
            setAnimation(827);
            if (playerLevel[11] >= 75) {
               deleteItem(1513, getItemSlot(1513), 1);
               makeGlobalObject(absX, absY, 2732, 0, 10);
               addSkillXP(1200, 11);
               sM("You attempt to light the logs.");
               sM("The fire catches and the logs begin to burn.");
               resetWC();
            } else {
               sM("You need a firemaking level of 75 to burn magic logs.");
            }
         }
         //End of Firemaking\\


Credits
The Unholy
AdotSells
« Last Edit: March 29, 2011, 07:18:50 pm by AdotSells »

Share on Bluesky Share on Facebook


Offline The Unholy

  • Steel Member
  • *
  • Posts: 36
  • Rep 4
    • View Profile
Re: Firemaking
« Reply #1 on: March 29, 2011, 07:25:05 pm »
Very nice, consider making an array? It'll save a lot of room ^^  :tf:

Offline AdotSells

  • Firecape Member
  • *
  • Posts: 300
  • Rep 4
    • View Profile
Re: Firemaking
« Reply #2 on: March 29, 2011, 07:26:51 pm »
Tbh i dont know much about arrays.  but ill Learn up and Add =D

Offline Sam

  • Bandos Member
  • *
  • Posts: 372
  • Rep 1
    • View Profile
Re: Firemaking
« Reply #3 on: March 29, 2011, 07:53:07 pm »
Another good job!
Keep it up :)

Offline Sajon

  • Rune Member
  • *
  • Posts: 166
  • Rep -1
  • Never Back down
  • Location: United Kingdom
    • View Profile
Re: Firemaking
« Reply #4 on: March 31, 2011, 12:57:03 am »
dose this make it 100% firermaking?

Offline AdotSells

  • Firecape Member
  • *
  • Posts: 300
  • Rep 4
    • View Profile
Re: Firemaking
« Reply #5 on: March 31, 2011, 02:24:28 am »
dose this make it 100% firermaking?
Nope.. Not evan close to 100%