How to do Tutorial on Register.
#1

Can anyone help me please?
I'm looking forward to change a Tutorial screen on register.
For eg:
=============================================
Tutorial 1/10 - How to begin
Firstly you need to know how to Role Play.
Role Play is not a DM server, where you can shoot everyone.
=============================================

Does anyone know how to do that? Just the tutorial.

On the servers Tutorial Script, you have write /next for another page of Tutorial to come up. I dont like that. I would like it to change automatically.

Thanks for help, and I hope this will be free (I'm a beginner in scripting)
Reply
#2

So if I understand correctly you'd like to make it so that, for example, a text is shown and 10 seconds later the next text appears?
Reply
#3

Quote:
Originally Posted by DrDoom151
Посмотреть сообщение
So if I understand correctly you'd like to make it so that, for example, a text is shown and 10 seconds later the next text appears?
YES!
Reply
#4

Nobody will just script it for you,you need to do it yourself by learning how to use dialogs. The thing you are talking about is atleast 500 lines mate.
Reply
#5

There's a number of different ways to do this, so keep in mind you have freedom to change things according to your habits of scripting. I'm inexperienced, but I would make a variable for each player, saving the current tutorial "text" he's seen. So for example if I were to view:

=============================================
Tutorial 1/10 - How to begin
Firstly you need to know how to Role Play.
Role Play is not a DM server, where you can shoot everyone.
=============================================

That variable would be set to 1, since I'm on text 1. Then make a stock which checks the players last viewed text and starts the next one with a timer. In the following example I assume you have some basic knowledge of scripting and use enums and/or database.

Quick example:
Код:
public OnPlayerConnect(playerid)
{
	if(pInfo[playerid][Registered]==false){ // using a bool here. if not registered you start the stock.
	    ShowPlayerTutorial(playerid);
	}
	else{}//Nothing. Let the player continue.
	return 1;
}

ShowPlayerTutorial(playerid)
{
	if(pInfo[playerid][TutorialText]=10){}//Done
	if(pInfo[playerid][TutorialText]=1){
		SendClientMessage(playerid, 0xFFFFFF, "Your tutorialtext1");
	}
	if(pInfo[playerid][TutorialText]=2){
		SendClientMessage(playerid, 0xFFFFFF, "Your tutorialtext2");
	}
	SetTimerEx("TutorialTimer", 10000, false, "i", playerid);
}

forward TutorialTimer(playerid);
public TutorialTimer(playerid)
{
    pInfo[playerid][TutorialText]++;
    ShowPlayerTutorial(playerid);
    return 1;
}
I haven't tested this, just wrote it quickly, hoping it'll work.
Reply
#6

This doesnt work :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)