Thread: npc dialogue problem, will make a tut out if this if fixed!

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 npc dialogue problem, will make a tut out if this if fixed! 
    Toonscape
    Guest
    well anyway i made my npc dialogue (my first time trying lol) and i made the opening text using this dialogue..

    Code:
    case 1281:
             		sendFrame200(4883, 591);
    			sendFrame126("Sigli The Huntsman", 4884);
    			sendFrame126("Look at my wares! I have weapons!", 4885);
    			sendFrame75(NpcTalkTo, 4883);
    			sendFrame164(4882);
    			NpcDialogueSend = true;
    			openUpShop(3);
    			break;
    that makes sigli say "look at my wares! i have weapons!"

    but then i put in below it openupshop(3); because i want it to show that dialogue, then when you click "continue" so it looks like it will have another dialogue box pop up, but instead it pops up a shop window.. how can i make this..

    1/ clicks npc, first dialogue pops up.
    2/ clicked on 'click here to continue'
    3/ then the dialogue box disapears back to normal chat box
    4/ immediatly follows the shop interface.

    how can i make it do that?

    IF SOMEONE HELPS ME FIX THIS, ILL MAKE A TUTORIAL ON IT, I JUST THINK IT WILL IMPROVE SERVERS A BIT BY HAVING BAISIC DUALOGUE BEFORE OPENING A SHOP.

    thanks alot!
     

  2. #2  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,789
    Discord
    View profile
    Rep Power
    5000
    case 40

    if (npcdialogue = thisdialogue) {
    openupshop
    }

     

  3. #3  
    Toonscape
    Guest
    thanks alot luke, and dude this isnt retarded, this will be a tutorial if been fixed.. and now its fixed i might release..

    luke how would i lay it out, the way i did it i got an error, this is my whole case 40,
    Code:
    case 40:
    				if (NpcDialogue == 1 || NpcDialogue == 3 || NpcDialogue == 5  || NpcDialogue == 40 || NpcDialogue == 42 || NpcDialogue == 1001 || NpcDialogue == 1002 || NpcDialogue == 2259 || NpcDialogue == 2260 || NpcDialogue == 301 || NpcDialogue == 305 || NpcDialogue == 308 || NpcDialogue == 309 || NpcDialogue == 313 || NpcDialogue == 314 || NpcDialogue == 317 || NpcDialogue == 318 || NpcDialogue == 319 || NpcDialogue == 322 || NpcDialogue == 323) {
    					NpcDialogue += 1;
    					NpcDialogueSend = false;
    				} 
    else if (NpcDialogue == 6 || NpcDialogue == 7 || NpcDialogue == 300 || NpcDialogue == 303 || NpcDialogue == 304 || NpcDialogue == 307 || NpcDialogue == 310 || NpcDialogue == 311 || NpcDialogue == 312 || NpcDialogue == 315 || NpcDialogue == 316 || NpcDialogue == 320 || NpcDialogue == 321 || NpcDialogue == 324 || NpcDialogue == 325 || NpcDialogue == 326 || NpcDialogue == 2244 || NpcDialogue == 1281) {
    					NpcDialogue = 0;
    					NpcDialogueSend = false;
                         RemoveAllWindows();
    				}
    				println("Unhandled packet ["+packetType+", InterFaceId: " +inStream.readUnsignedWordA()+", size="+packetSize+"]: ]"+misc.Hex(inStream.buffer, 1, packetSize)+"[");
    				println("Action Button: "+misc.HexToInt(inStream.buffer, 0, packetSize));
    				break;
    and i need to add this in according to your method
    Code:
    if (NpcDialogue = 1281) {
    openUpShop(3);
    }
    so where would i add that?

    thanks
    Last edited by Toonscape; 05-09-2008 at 05:53 PM. Reason: Double posting is not allowed!
     

  4. #4  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,789
    Discord
    View profile
    Rep Power
    5000
    Code:
    case 40:
    if (NpcDialogue == 1 || NpcDialogue == 3 || NpcDialogue == 5  || NpcDialogue == 40 || NpcDialogue == 42 || NpcDialogue == 1001 || NpcDialogue == 1002 || NpcDialogue == 2259 || NpcDialogue == 2260 || NpcDialogue == 301 || NpcDialogue == 305 || NpcDialogue == 308 || NpcDialogue == 309 || NpcDialogue == 313 || NpcDialogue == 314 || NpcDialogue == 317 || NpcDialogue == 318 || NpcDialogue == 319 || NpcDialogue == 322 || NpcDialogue == 323) {
    	NpcDialogue += 1;
    	NpcDialogueSend = false;
    } 
    else if (NpcDialogue == 6 || NpcDialogue == 7 || NpcDialogue == 300 || NpcDialogue == 303 || NpcDialogue == 304 || NpcDialogue == 307 || NpcDialogue == 310 || NpcDialogue == 311 || NpcDialogue == 312 || NpcDialogue == 315 || NpcDialogue == 316 || NpcDialogue == 320 || NpcDialogue == 321 || NpcDialogue == 324 || NpcDialogue == 325 || NpcDialogue == 326 || NpcDialogue == 2244 || NpcDialogue == 1281) {
    	NpcDialogue = 0;
    	NpcDialogueSend = false;
    	RemoveAllWindows();
    }
    else if (npcDialogue == 1281) {
    	openUpShop(3);
    	NpcDialogue = 0;
    	NpcDialogueSend = false;
    }
    println("Unhandled packet ["+packetType+", InterFaceId: " +inStream.readUnsignedWordA()+", size="+packetSize+"]: ]"+misc.Hex(inStream.buffer, 1, packetSize)+"[");
    println("Action Button: "+misc.HexToInt(inStream.buffer, 0, packetSize));
    break;
    that should work.

    if you get any errors, sow them and ill help you out.

     

  5. #5  
    Toonscape
    Guest
    it doesnt, it gets an error pointing liek this...

    if (NpcDialogue = 1281) {
    ^

    then saying its 'incompatible'

    im confuzed
     

  6. #6  
    Registered Member
    T-Sex's Avatar
    Join Date
    Jan 2008
    Posts
    1,824
    Thanks given
    0
    Thanks received
    3
    Rep Power
    130
    u cant release something luke did virutuly for you lol
     

  7. #7  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,789
    Discord
    View profile
    Rep Power
    5000
    Code:
    case 40:
    if (NpcDialogue == 1 || NpcDialogue == 3 || NpcDialogue == 5  || NpcDialogue == 40 || NpcDialogue == 42 || NpcDialogue == 1001 || NpcDialogue == 1002 || NpcDialogue == 2259 || NpcDialogue == 2260 || NpcDialogue == 301 || NpcDialogue == 305 || NpcDialogue == 308 || NpcDialogue == 309 || NpcDialogue == 313 || NpcDialogue == 314 || NpcDialogue == 317 || NpcDialogue == 318 || NpcDialogue == 319 || NpcDialogue == 322 || NpcDialogue == 323) {
    	NpcDialogue += 1;
    	NpcDialogueSend = false;
    } 
    else if (NpcDialogue == 6 || NpcDialogue == 7 || NpcDialogue == 300 || NpcDialogue == 303 || NpcDialogue == 304 || NpcDialogue == 307 || NpcDialogue == 310 || NpcDialogue == 311 || NpcDialogue == 312 || NpcDialogue == 315 || NpcDialogue == 316 || NpcDialogue == 320 || NpcDialogue == 321 || NpcDialogue == 324 || NpcDialogue == 325 || NpcDialogue == 326 || NpcDialogue == 2244) {
    	NpcDialogue = 0;
    	NpcDialogueSend = false;
    	RemoveAllWindows();
    }
    else if (NpcDialogue == 1281) {
    	openUpShop(3);
    	NpcDialogue = 0;
    	NpcDialogueSend = false;
    }
    println("Unhandled packet ["+packetType+", InterFaceId: " +inStream.readUnsignedWordA()+", size="+packetSize+"]: ]"+misc.Hex(inStream.buffer, 1, packetSize)+"[");
    println("Action Button: "+misc.HexToInt(inStream.buffer, 0, packetSize));
    break;
    try now

     

  8. #8  
    Toonscape
    Guest
    not exactly.. i made the baisic concept, its just putting it together like making the dialogue call the interface when the dialogue closes
     

  9. #9  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,789
    Discord
    View profile
    Rep Power
    5000
    Code:
    case 1281:
    sendFrame200(4883, 591);
    sendFrame126("Sigli The Huntsman", 4884);
    sendFrame126("Look at my wares! I have weapons!", 4885);
    sendFrame75(NpcTalkTo, 4883);
    sendFrame164(4882);
    NpcDialogueSend = true;
    break;
    replace your case 1281 with this too.

     

  10. #10  
    Registered Member
    T-Sex's Avatar
    Join Date
    Jan 2008
    Posts
    1,824
    Thanks given
    0
    Thanks received
    3
    Rep Power
    130
    yes toon exactly ... u did

    case 1281:
    sendFrame200(4883, 591);
    sendFrame126("Sigli The Huntsman", 4884);
    sendFrame126("Look at my wares! I have weapons!", 4885);
    sendFrame75(NpcTalkTo, 4883);
    sendFrame164(4882);
    NpcDialogueSend = true;
    openUpShop(3);
    break;

    luke dus the hard parts
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •