609.
|
|
I want to be able to use a workbench or anything else comparable to that like an anvil, I have everything but the ID for the bench.
I.E
Code:case workbenchID c.getSmithingInt().showSmithInterface(itemId);
609.
Now I just need to make it so it requires a hammer. Got the workbench to work
You've been thanked an repped
Do something like :
the if itemneed thing is not really the working one u need to figure thaturself out because i dont know what server u use etc and dont really want to search for itCode:case workbenchID: if (itemneed == hammerid ) { c.getSmithingInt().showSmithInterface(itemId); return; } sendMessage("U need a damn hammer for this"); break;![]()
Itd be something like this...
Code:case 609: if (c.getItems().playerHasItem(2347, 1)) { c.getSmithingInt().showSmithInterface(itemId); } else c.sendMessage("You need a hammer to make this."); break;
Sometimes } else gives a lot of problems so this would be better also sometimes else doesnt work but it may work here not sureCode:case 609: if (c.getItems().playerHasItem(2347, 1)) { c.getSmithingInt().showSmithInterface(itemId); return; } c.sendMessage("You need a hammer to make this."); break;![]()
| « unipban command pi | [PI] Clicking buttons help! » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |