Rune2006
Plural Version 1.0.2 SPOILER - Printable Version

+- Rune2006 (http://rune2006.com/forum)
+-- Forum: Rune2006 (/forumdisplay.php?fid=6)
+--- Forum: Media (/forumdisplay.php?fid=10)
+--- Thread: Plural Version 1.0.2 SPOILER (/showthread.php?tid=1007)



Plural Version 1.0.2 SPOILER - Driman-Banned Ingame- - 06-19-2013 07:26 AM

Will, Plural wanted to see if I can code a quest or if i am up for it, will I am getting used to the Rune-source Dialogue system, which looks fairly easy and who know! Tongue
Scroll down fast, *made if you wanted to see spoiler* *or scroll if you want to see it*




Sections:
Quote:Info
Quote
Resources
Updates














































spoiler:

Quote:case ###: //Squire *need to get the npc id*
switch(player.getDialogue().getChatId()) {
case 1 :
player.getDialogue().sendNpcChat("Hello. I am the squire to Sir Vyvin.", HAPPY);
return true;
case 2:
player.getDialogue().sendOption("And how is life as a squire?", "Wouldn't you prefer to be a squire for me?");
return true;
case 3 :
switch(optionId) {
case 1 :
player.getDialogue().sendPlayerChat("And how is life as a squire?", CONTENT);
return true;
case 2 :
player.getDialogue().sendPlayerChat("Wouldn't you prefer to be a squire for me?", CONTENT);
return true;
}
break;
case 4 :
player.getDialogue().sendNpcChat("Well, Sir Vyvin is a good guy to work for, however,", "I'm in a spot of trouble today. I've gone and lost", "Sir Vyvin's sword!", CONTENT);
player.getDialogue().setNextChatId(6);//I don't know if this is wrong.
return true;
case 5 :
player.getDialogue().sendNpcChat("This is no time for jokes, adventurer.", ANGRY_2);
player.getDialogue().endDialogue();//I don't know if, I need to put a break?
return true;
case 6:
player.getDialogue().sendOption("Do you know where you lost it?", "I can make a new sword if you like...", "Is he angry?");
return true;
case 7:
switch(optionId) {
case 1 :
player.getDialogue().sendPlayerChat("Do you know where you lost it?", CONTENT);
return true;
case 2 :
player.getDialogue().sendPlayerChat("Wouldn't you prefer to be a squire for me?", CONTENT);
return true;
case 3:
}
break;



like I said i am getting used to the system, and thats like what I have completed for today, and thats like 1/14 of all the dialogue I have to do. Tongue





Resources:
youtube, *I searched the quest name for the guide, and copied the dialogue by viewing the video.*
Rune-Server, *Found a thread, where someone made 5 quest, this one included it, and helped me by knowing how to make the dialogue*
Runescape Wikia, Read the Quest Info Smile


Updates:
Fixed the thread 5x better


RE: Plural Version 1.0.2 SPOILER - Plural - 06-19-2013 03:42 PM

Looks good, but please avoid any typos.


RE: Plural Version 1.0.2 SPOILER - Driman-Banned Ingame- - 06-19-2013 08:17 PM

Thanks Plural, but actually i typed all this up, except I copied the return true; and case numbers, so if you see a error most likely typed it wrong, i will review it again.

Also I will begin the Quest Point I was telling you about.