Hello! I'm pretty new to scripting, and have shamelessly trying to create my own warper NPC by reading other scripts and trying to understand how to do it.
However, for some reason, the script doesn't work, and the NPC never appears. Can anyone show me where have I made a mistake?
Thanks. Here's the script:
payon,163,96,4 script Warp Man 617,{
mes "[Warp Man]";
mes "Greetings. I can teleport you to the main cities of Midgard";
mes "Where would you like to go?";
switch(select("- Payon:- Prontera:- Morocc:- Geffen:- Al De Baran:- Exit"))
{
case 1:
warp "payon",163,88;
end;
case 2:
warp "prontera",116,72;
end;
case 3:
warp "morocc",158,94;
end;
case 4:
warp "geffen",120,39;
end;
case 5:
warp "aldebaran,140,115;
end;
case 6:
close;
}
}
Question
Loowiz
Hello! I'm pretty new to scripting, and have shamelessly trying to create my own warper NPC by reading other scripts and trying to understand how to do it.
However, for some reason, the script doesn't work, and the NPC never appears. Can anyone show me where have I made a mistake?
Thanks. Here's the script:
payon,163,96,4 script Warp Man 617,{
mes "[Warp Man]";
mes "Greetings. I can teleport you to the main cities of Midgard";
mes "Where would you like to go?";
switch(select("- Payon:- Prontera:- Morocc:- Geffen:- Al De Baran:- Exit"))
{
case 1:
warp "payon",163,88;
end;
case 2:
warp "prontera",116,72;
end;
case 3:
warp "morocc",158,94;
end;
case 4:
warp "geffen",120,39;
end;
case 5:
warp "aldebaran,140,115;
end;
case 6:
close;
}
}
Link to comment
Share on other sites
5 answers 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.