Jump to content
  • 0

Waitingroom problem


Byakuran

Question


  • Group:  Members
  • Topic Count:  110
  • Topics Per Day:  0.02
  • Content Count:  229
  • Reputation:   5
  • Joined:  12/16/11
  • Last Seen:  

hello i try to put a waitingroom in my npc but it doesnt show :D( sorry for bad english

heres the code

louyang,217,115,5 script Quest Items Effect 835,{
mes "You can see the effects of the Quest items here";
next;
mes "Choose what you want";
switch (select ("HeadProtector","Flames","Traveler Hat","Scarf","Hokage Hat","BlindFold" ) ) {
case 1:
	{
		mes "All of them has the same effect";
		mes "Allstats+ 3";
		mes "MaxHP+ 3%";
		close;
	}
case 2:
	{
		mes "All of them has the same effect";
		mes "Allstats+ 3";
		mes "Increase Max HP + 3%";
		close;
	}
case 3:
	{
		mes "All of them has the same effect";
		mes "Allstats+ 5";
		mes "Reduce Damage taken from DemiHuman by 5%";
		close;
	}
case 4:
	{
		mes "All of them has the same effect";
		mes "Allstats+ 5";
		mes "MaxHP+ 5%";
		close;
	}
case 5:
	{
		mes "All of them has the same effect";
		mes "Increase Movement Speed.";
		mes "Increase Attack on ^880000DemiHuman^000000 by 5%.";
		mes "Increase Magic on ^880000DemiHuman^000000 by 10%.";
		mes "Increase Long Attack on ^880000DemiHuman^000000 by 10%.";
		close;
	}
case 6:
	{
		mes "All of them has the same effect";
		mes "Allstats + 5.";
		mes "Maximum HP + 5%.";
		close;
	}
case 7:
	{
		mes "Allstats + 5";
		mes "Increase Damage to DemiHuman by 5%";
		close;
OnInit:
		waitingroom "Quest Info Effects",0;
		end;
	}
}
}

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

case 7:

{

mes "Allstats + 5";

mes "Increase Damage to DemiHuman by 5%";

close;

+}

+}

OnInit:

waitingroom "Quest Info Effects",0;

end;

-}

-}

}

Edited by QQfoolsorellina
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  221
  • Reputation:   12
  • Joined:  12/18/11
  • Last Seen:  

Before OnInit add two } like this:

close;

}

}

OnInit:

waitingroom "Quest Into Effects",0;

end;

}

If you put the close; and right after the OnInit, the script won't read it well ... so just change that and it should work no prob.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  110
  • Topics Per Day:  0.02
  • Content Count:  229
  • Reputation:   5
  • Joined:  12/16/11
  • Last Seen:  

@keim sir i try this but nothing happen

case 7:
{
mes "Allstats + 5";
mes "Increase Damage to DemiHuman by 5%";
close;
}
}
OnInit:
waitingroom "Quest Info Effects",0;
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

it's working for me

http://2.imgland.net/QANJb.jpg

myabe you forgot to use tab key

any erro on your map server?

louyang,217,115,5<tab>script<tab>Quest Items Effect<tab>835,{

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  110
  • Topics Per Day:  0.02
  • Content Count:  229
  • Reputation:   5
  • Joined:  12/16/11
  • Last Seen:  

sir.. its working fine but there no waitingroom ^_^(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

  1. quest.txt
  2. Adding_a_Script
  3. restart server
  4. ^_^
    QANJb.jpg

Were loading the script with @loadnpc ?

The waitingroom was not showing because OnInit is not triggered when you use @loadnpc. It only triggers when the map-server starts or when you use @reloadscript.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  110
  • Topics Per Day:  0.02
  • Content Count:  229
  • Reputation:   5
  • Joined:  12/16/11
  • Last Seen:  

@brian tnks...

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