Jump to content
  • 0

Script Error [ Support NPC ]


Question

Posted

Hello rA

my script is functioning very well except for one the " Nevermind " button when i click it nothing happen and an error on my map server pops out /no1

here's the error btw :

zm1hyh.jpg

script :


// Support center
- script support -1,{
OnWhisperGlobal:
set @supportname$,"Support Center";
set @servername$,"IntelRO";

mes "[support Center]";
mes "Thank you for calling the "+@servername$+" Support Center!  How can we help you today?";
switch(select("I need some help","I would like to make a suggestion","Nevermind"))
{
case 1:
callfunc "supportfunc",@supportname$,0;
case 2:
callfunc "supportfunc",@supportname$,2;
case 3:
goto S_NEVERMIND;
}
S_NEVERMIND:
next;
mes "[support Center]";
mes "Oh?  Okay, feel free to come again anytime!";
close;
}

Thanks :)

SlashGeeGee

4 answers to this question

Recommended Posts

Posted (edited)

// Support center
- script support -1,{
OnWhisperGlobal:
set @supportname$,"Support Center";
set @servername$,"IntelRO";
mes "[support Center]";
mes "Thank you for calling the "+@servername$+" Support Center! How can we help you today?";
switch(select("I need some help","I would like to make a suggestion","Nevermind"))
{
case 1:
callfunc "supportfunc",@supportname$,0;
case 2:
callfunc "supportfunc",@supportname$,2;
case 3:
goto S_NEVERMIND;
end;

S_NEVERMIND:
next;
mes "[support Center]";
mes "Oh? Okay, feel free to come again anytime!";
close;
}
}

or

// Support center
- script support -1,{
OnWhisperGlobal:
set @supportname$,"Support Center";
set @servername$,"IntelRO";
mes "[support Center]";
mes "Thank you for calling the "+@servername$+" Support Center! How can we help you today?";
switch(select("I need some help","I would like to make a suggestion","Nevermind"))
{
case 1:
callfunc "supportfunc",@supportname$,0;
case 2:
callfunc "supportfunc",@supportname$,2;
case 3:
callsub S_NEVERMIND;
end;
}
S_NEVERMIND:
next;
mes "[support Center]";
mes "Oh? Okay, feel free to come again anytime!";
close;
}

Edited by exneval
Posted

why case 3 don't use like this

// Support center

- script support -1,{

OnWhisperGlobal:

set @supportname$,"Support Center";

set @servername$,"IntelRO";

mes "[support Center]";

mes "Thank you for calling the "+@servername$+" Support Center! How can we help you today?";

switch(select("I need some help","I would like to make a suggestion","Nevermind")){

case 1:

callfunc "supportfunc",@supportname$,0;

case 2:

callfunc "supportfunc",@supportname$,2;

case 3:

mes "[support Center]";

mes "Oh? Okay, feel free to come again anytime!";

close;

}

}

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