Do you get any errors?
if so, please post and let us know.
|
What's up with that code? They have to have item 286 and 287, it takes them both away, yet it stays on the first dialogue?? Why is it taking them both away??Code:case 512: if (c.getItems().playerHasItem(286, 1)){ c.getItems().deleteItem2(286, 1); sendNpcChat4("I like this very much!","It is a nice colour and It- Oh, Bentnoze..","What are you looking at me like that for?!","*Sigh* We can't have this one then...", c.talkingNpc, "General Bentnoze"); c.nextChat = 513; } else c.nextChat = 507; case 513: if (c.getItems().playerHasItem(287, 1)) { c.getItems().deleteItem2(287, 1); sendNpcChat4("I like this very much!","It is a nice colour and It- Oh, Wartface..","What are you looking at me like that for?!","*Sigh* We can't have this one then...", c.talkingNpc, "General Wartface"); c.nextChat = 514; }else c.nextChat = 507; break; case 514: if (c.getItems().playerHasItem(9054, 1)) { c.getItems().deleteItem2(9054, 1); c.GoblinDiplomacy = 3; sendNpcChat4("WOW!","This armour it's so... so... stylish!","Human I am so impressed with this!","General Bentnoze, what do you think?", c.talkingNpc, "General Wartface"); c.nextChat = 515; } else c.nextChat = 507; break; case 515: sendNpcChat4("I'm so in love with this colour!","Human you have earnt the magic sheet, the Exp","AND the runite bar!","", c.talkingNpc, "General Bentnoze"); c.nextChat = 515; break;
Any help would be appreciated.
Do you get any errors?
if so, please post and let us know.
As you see with mine
It don't jump aroundcase 500:
sendStatement("Hello,I am able to change your loyalty title");
c.nextChat = 501;
break;
case 501:
sendStatement("Choose any title you'd like");
c.nextChat = 502;
break;
case 502:
sendOption4("Lord","Sir", "beast","1337");
c.dialogueAction = 1000;
break;
case 503:
sendStatement("You already have a title! Reset it to get a new one!");
break;
Wouldnt the code that checks if player has item 236 and whatever wouldnt that be a dialogue action? not sure lol :/ correct me if im wrong but wouldnt it be like this? In DialogueHandlerand in ActionHandlerCode:case 512: sendNpcChat4("I like this very much!","It is a nice colour and It- Oh, Bentnoze..","What are you looking at me like that for?!","*Sigh* We can't have this one then...", c.talkingNpc, "General Bentnoze"); c.dialogueAction = 512; break; case 513: sendNpcChat4("I like this very much!","It is a nice colour and It- Oh, Wartface..","What are you looking at me like that for?!","*Sigh* We can't have this one then...", c.talkingNpc, "General Wartface"); c.dialogueAction = 513; break; case 514: sendNpcChat4("WOW!","This armour it's so... so... stylish!","Human I am so impressed with this!","General Bentnoze, what do you think?", c.talkingNpc, "General Wartface"); c.nextChat = 515; break; case 515: sendNpcChat4("I'm so in love with this colour!","Human you have earnt the magic sheet, the Exp","AND the runite bar!","", c.talkingNpc, "General Bentnoze"); c.nextChat = 515; break;and in ClickingButtons.javaCode:case 2187: if (c.getItems().playerHasItem(286, 1)){ c.getItems().deleteItem2(286, 1); c.getDH().sendDialogues(512, npcType); } else { c.getDH().sendDialogues(500, npcType); } break;Idk... I cant code lol dont hate pl0xCode:if (c.dialogueAction == 512) { if (c.getItems().playerHasItem(287, 1)) { c.getItems().deleteItem2(287, 1); c.getDH().sendDialogues(513, npcType); } else { c.getDH().sendDialogues(507, npcType); } if (c.dialogueAction == 513) { if (c.getItems().playerHasItem(9054, 1)) { c.getItems().deleteItem2(9054, 1); c.GoblinDiplomacy = 3; c.getDH().sendDialogues(514, npcType); } else { c.getDH().sendDialogues(507, npcType); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |