Jump to content
  • 0

BUG? [Debug]: npc_scriptcont: Sala Vip#h3-1 (sd->npc_id=110494240) is not 'Unknown NPC' (id=0).


harold_flood

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.01
  • Content Count:  2
  • Reputation:   0
  • Joined:  12/15/23
  • Last Seen:  

So, when i am under the second prompt, if i cancel i get this error message and stuck on place till login in again:
Sample NPC to trigger the bug:
pronter

prontera.gat,156,228,5    script    Sala Vip#h3-1::Sala Vip    953,{
    set .@loop,1;
    while(.@loop){
        mes "t1";
        set .@menu$,prompt("1","2");
        switch(.@menu$){
            Case 1:
                set .@loop2,1;
                while(.@loop2) {
                    mes "t2";
                    set .@menu2$,prompt("3:4");
                    switch(.@menu2$){
                        Case 1:
                            mes "Test";
                            next;
                        Case 255:
                        Case 2:
                            close;
                    }
                }
                break;
            Case 255:
            Case 2:
                set .@loop,0;
                break;
        }
    }
    close;
}

How to trigger the bug:
Talk with the NPC
Select option "1" and click on OK

Click on cancel.

 

 

Someone knows if its a emulator bug or something i did wrong on the script?

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  896
  • Reputation:   117
  • Joined:  05/23/12
  • Last Seen:  

Pls take a look at few example script codes. What ur doing is not good. Why the while loops?

 

unbetitelt.txt

Rynbef~

Edited by Rynbef
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...