Jump to content
  • 0

OnWhisperGlobal Event Error npc_event event not found


Question

Posted

Hi as the title says I'm getting an [Error]: npc_event: event not found [Warpcreator::OnWhisperGlobal]

here is my code 

-    script    Warpcreator    -1,{
OnWhisperGlobal:
    if(getgmlevel() < 99) end;
    if(@whispervar0$ == "Warpcreate")
        {
            // Dialogue setup
            switch(select("Create Warp Portal","Nevermind"))
            {
                case 1:
                    mes("Greetings, esteemed Game Master! I can help you create a warp portal.");
                    next;
                    mes("Please provide me with the necessary details to create the portal.");
                    next;
                    
                    mes "Enter the X coordinate for the portal's placement:";
                    input .@portalX;
                    next;
                    mes "Enter the Y coordinate for the portal's placement:";
                    input .@portalY;
                    next;
                    mes "Enter the destination map name:";
                    input .@map$;
                    next;
                    mes "Enter the destination X coordinate:";
                    input .@destX;
                    next;
                    mes "Enter the destination Y coordinate:";
                    input .@destY;
                    
                    warpportal .@portalX,.@portalY,.@map$,.@destX,.@destY;
                    
                    mes("You have successfully created a warp portal to " + .@map$ + ".");
                    close2;
                    
                case 2:
                    mes("Alright, esteemed Game Master. Feel free to return if you ever need my assistance.");
                    close;
            }
        }
    end;
}

 

1 answer to this question

Recommended Posts

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...