Jump to content
  • 0

help Petite Room Warper ERROR


lents

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   1
  • Joined:  06/02/13
  • Last Seen:  

i need help, i make a script Petite Room Warper NPC like this : 
post-17586-0-76549500-1371763452_thumb.jpg

 

and this is my SCRIPT : 

prontera.gat,142,180,0    script    Petite Room Warper    1156,{
waitingroom "Petite Room",0;   
mes "[Petite Room Warper]";
mes "Hello Guys, Im Petite Room Warper";
mes "Do You Want to Use My Service ??";
next;
menu "Yes",L_TELEPORT,"No thanks",L_Bye;
close;
 
L_TELEPORT:
mes "Ok Wait here, I Will Send You To Petite Room";
next;
warp "mjolnir_03.gat",208,213;
end;
 
L_Bye:
mes "Okay,No Problem Thanks";
close;
}

 

the Problem is : 

[Error]: chat_createnpcchat: npc 'Petite Warper' already has a chatroom, cannot create new one!

 

can anyone help me ??

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

The Problem is that the chatroom would be created every time the NPC is clicked, but since that's impossible, it throws this error.

 

Try this:

 

prontera.gat,142,180,0	script	Petite Room Warper	1156,{
mes "[Petite Room Warper]";
mes "Hello Guys, Im Petite Room Warper";
mes "Do You Want to Use My Service ??";
next;
menu "Yes",L_TELEPORT,"No thanks",L_Bye;
close;
 
L_TELEPORT:
mes "Ok Wait here, I Will Send You To Petite Room";
next;
warp "mjolnir_03.gat",208,213;
end;
 
L_Bye:
mes "Okay,No Problem Thanks";
close;

OnInit:
	waitingroom "Petite Room",0;
	end;
}

This way, the waiting room will only be created once.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Put a delwaitingroom before waitingroom

 

[Error]: chat_createnpcchat: npc 'Petite Warper' already has a chatroom, cannot create new one!

 

delwaitingroom;
waitingroom "Petite Room",0;  
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   1
  • Joined:  06/02/13
  • Last Seen:  

The Problem is that the chatroom would be created every time the NPC is clicked, but since that's impossible, it throws this error.

 

Try this:

 

prontera.gat,142,180,0	script	Petite Room Warper	1156,{
mes "[Petite Room Warper]";
mes "Hello Guys, Im Petite Room Warper";
mes "Do You Want to Use My Service ??";
next;
menu "Yes",L_TELEPORT,"No thanks",L_Bye;
close;
 
L_TELEPORT:
mes "Ok Wait here, I Will Send You To Petite Room";
next;
warp "mjolnir_03.gat",208,213;
end;
 
L_Bye:
mes "Okay,No Problem Thanks";
close;

OnInit:
	waitingroom "Petite Room",0;
	end;
}

This way, the waiting room will only be created once.

DONE!! thanks broo :)

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