Declare that boolean.
Then turn this
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:
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.