Jump to content
  • 0

OnWhisperGlobal Event Error npc_event event not found


mugenkaiken

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  02/16/18
  • Last Seen:  

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;
}

 

Edited by mugenkaiken
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  02/16/18
  • Last Seen:  

Sorry fixed already just needed to restart server seems the @reloadnpcfile is not enough 

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...