Author Topic: ItemonItem construction.  (Read 159 times)

Offline Chandlermaki

  • Rune Member
  • *
  • Posts: 129
  • Rep 6
  • You's trollin'.
  • Location: USA
    • View Profile
Re: ItemonItem construction.
« on: March 30, 2011, 03:39:45 pm »
Declare that boolean.

Then turn this
Code: [Select]
         if ((itemUsed == 2347) && (useWith == 960)) {
            if (playerLevel[11] >= 0) {
               setAnimation(827);
               deleteItem(960, getItemSlot(960), 1);
               makeGlobalObject(absX, absY, 2213, 0, 10);
               addSkillXP(180, 11);
               sM("You build a Bank booth");
               resetWC();
            } else {
               sM("You need a construction Level of 0 to build this");
            }

Into this:
Code: [Select]
  if (inConstruction()) {       
      if ((itemUsed == 2347) && (useWith == 960)) {
            if (playerLevel[11] >= 0) {
               setAnimation(827);
               deleteItem(960, getItemSlot(960), 1);
               makeGlobalObject(absX, absY, 2213, 0, 10);
               addSkillXP(180, 11);
               sM("You build a Bank booth");
               resetWC();
            } else {
               sM("You need a construction Level of 0 to build this");
            }
            } else {
               sM("You must be in a construction zone to do that!");
        }

Again, may have made a mistake. Should work though. Also, I apologize for not using conventions. I'm typing this inside the reply box, so I have no use of the tab key.
Insert clever signature here.