What do u mean
|
|

Okay, it only reads the first action, what do i do to make it read all of them?
case 9157:
if (c.dialogueAction == 14) {
c.playerquest1 = 1;
}
else if (c.dialogueAction == 17) {
if (c.getItems().playerHasItem(423, 1)) {
c.getItems().deleteItem(423,1);
c.getPA().removeAllWindows();
c.playerquest1 = 4;
}
else if (c.dialogueAction == 16) {
c.playerquest1 = 3;
}
else if (c.dialogueAction == 15) {
c.playerquest1 = 2;
}

Okay, well i have an npc open dialogues etc. Then i have him give you an option YES/NO, Case 9157 is YES
and 9158 is NO
No matter what those are the cases. So i have to make it read all of them, not just the top one.
ugh... I have to retype this because I accidentally backed the page.
If you are trying to make the person recieve and item, try:
or, if you want the player to "buy" the item, do this:Code:else if (c.dialogueAction == 14) { c.getItems().addItem(ID, AMNT); }
Those should work. If deleteItem2 deletes all of that item, try deleteItem. Have funCode:else if (c.dialogueAction == 14) { if (c.getItems().playerHasItem(ID, Amount)) { c.getItems().addItem(ID, AMNT); c.getItems().deleteItem2(ID, AMNT); } }
(NOTE: I love making this stuff, so if you need help, add my msn and message me. Also, they need to go under case 9157: for yes, and case 9158: for no.)

case INTERFACE_ID:
switch(buttonId) {
case BUTTON_ID_ON_INTERFACE:
//process
break;
}
break;
just made that in comment box so it's messy

| « Few things i need help with on DELTA | [z474]addGlobalObject Visable to all?[z474] » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |