Jump to content
  • 0

Script Error [ Support NPC ]


SlashGeeGee

Question


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   12
  • Joined:  01/03/12
  • Last Seen:  

// 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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

thanks for your help sir but still the problem is not resolved :)

same error is popping out.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

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;

}

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

@Rozeniiz

still doesnt work :)

Anybody Help ?

Solved Thanks Guys :)

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