lents Posted June 20, 2013 Posted June 20, 2013 i need help, i make a script Petite Room Warper NPC like this : 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 ?? Quote
DeadlySilence Posted June 20, 2013 Posted June 20, 2013 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. Quote
Capuche Posted June 20, 2013 Posted June 20, 2013 Put a delwaitingroom before waitingroom [Error]: chat_createnpcchat: npc 'Petite Warper' already has a chatroom, cannot create new one! delwaitingroom; waitingroom "Petite Room",0; Quote
lents Posted June 20, 2013 Author Posted June 20, 2013 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 Quote
Question
lents
i need help, i make a script Petite Room Warper NPC like this :

and this is my SCRIPT :
the Problem is :
can anyone help me ??
3 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.