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;
}
Question
mugenkaiken
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; }
Link to comment
Share on other sites
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.