Jump to content
  • 0

how to add waiting room npc


eJay

Question


  • Group:  Members
  • Topic Count:  80
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   76
  • Joined:  03/22/12
  • Last Seen:  

how to add waiting room npc

here's my script


//Freebies Giver NPC
//by: GM venus
poring_w02,100,201,5	script	Freebies	873,{
mes "[^000088 Freebies Giver ^000000]";
mes "Hello, I'm the freebies giver.";
mes "I only give 1 freebie's per account so use this freebies wisely.";
next;
mes "[^000088 Freebies Giver ^000000]";
mes "Freebies has been given.";
if( #quest_done == 1) {
goto Already;
next;
getitem 607, 10;
getitem 602, 10;
getitem 2311, 1;
getitem 2404, 1;
getitem 2504, 1;
getitem 4142, 1;
getitem 4147, 1;
set #quest_done, 1;
warp "turbo_room",100,99;
mes "Enjoy your freebies.";
close;
}


Already:
mes "You have already Freebies items";
close;
}


OnInit:
waitingroom "Freebies",0;
end;
}

but it does'nt work

Edited by Arcenciel
Codeboxed
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

An extra "}"

Already:
mes "You have already Freebies items";
close;
}

http://upaste.me/139570771d1221e

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

your script wont work...because it will keep redirect your character to the "Already" Label..because of this part...

 if( #quest_done == 1) {
goto Already;

poring_w02,100,201,5    script    Freebies    873,{
   mes "[^000088 Freebies Giver ^000000]";
   mes "Hello, I'm the freebies giver.";
   mes "I only give 1 freebie's per account so use this freebies wisely.";
   next;
   mes "[^000088 Freebies Giver ^000000]";
   mes "Freebies has been given.";
   if( #quest_done == 1){
 mes "You have already Freebies items";
   }else{
 getitem 607, 10;
 getitem 602, 10;
 getitem 2311, 1;
 getitem 2404, 1;
 getitem 2504, 1;
 getitem 4142, 1;
 getitem 4147, 1;
 set #quest_done, 1;
 warp "turbo_room",100,99;
 mes "Enjoy your freebies.";
}
   close;

OnInit:
   waitingroom "Freebies",0;
   end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  80
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   76
  • Joined:  03/22/12
  • Last Seen:  

Hehe.. Thnx Emisty and joseph :) im newbie scripting :D

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