Jump to content
  • 0

Player Job changer System and Hunger bar for Players


VaRai

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  04/01/19
  • Last Seen:  

Hello folks!

I hope everyone is well!

I have two things in mind for my RP server, and I really I hope someone could help me or guide me through making them:

1-Making a mentor system to replace the job changer: after a player reaches the level where they can change jobs, they have to find another player with the desired job and ask them to be their mentor to "teach them how to be that job", the mentor will have the power to turn the player into the job with a command like @guide <name> <job>
So an Acolyte can turn a Novice into an Acolyte, A Priest can turn a Novice into an Acolyte and an Acolyte into a Priest.. and so on.

2- Hunger bar for the player, they have to eat to keep it from going down, if hunger bar goes down to 0, some sort of handicap could happen to them, like 0 mana and 1 hp and slowed down until they eat again. 

Rai

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

Hunger bar you can use Text based like this

@ me      [lll____] << Calculate from code
and dispbottom for log.

and use

OnClock0000:
OnClock0100:
OnClock0200:
OnClock0300:
OnClock0400:
OnClock0500:
OnClock0600:
OnClock0700:
OnClock0800:
OnClock0900:
OnClock1000:
OnClock1100:
OnClock1200:
OnClock1300:
OnClock1400:
OnClock1500:
OnClock1600:
OnClock1700:
OnClock1800:
OnClock1900:
OnClock2000:
OnClock2100:
OnClock2200:
OnClock2300:

do add hungry.

 

  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  04/01/19
  • Last Seen:  

On 4/9/2019 at 1:31 AM, TARTs said:

Hunger bar you can use Text based like this


@ me      [lll____] << Calculate from code
and dispbottom for log.

and use


OnClock0000:
OnClock0100:
OnClock0200:
OnClock0300:
OnClock0400:
OnClock0500:
OnClock0600:
OnClock0700:
OnClock0800:
OnClock0900:
OnClock1000:
OnClock1100:
OnClock1200:
OnClock1300:
OnClock1400:
OnClock1500:
OnClock1600:
OnClock1700:
OnClock1800:
OnClock1900:
OnClock2000:
OnClock2100:
OnClock2200:
OnClock2300:

do add hungry.

 

Thank you for your help. I apologize if this seems like a stupid question, but could you please elaborate on where to add the codes you provided?

Link to comment
Share on other sites

  • 0

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

something like this ?

-	script	atcmd_example	-1,{

	OnInit:
		bindatcmd "guide",strnpcinfo(3) + "::OnAtcommand";
		end;
		
	OnAtcommand:
		if (.@atcmd_numparameters < 2) {
			dispbottom "Usage: "+.@atcmd_command$+" <job> <name>";
		}
		else { 
			.@job = aoit(.@atcmd_parameters$[0]);
			for (.@i = 1; .@i <= .@atcmd_numparameters; .@i++) 
				.@name$ += ((.@i > 1) ? " ":"") + .@atcmd_parameters$[.@i];
			.@aid = getcharid(3, .@name$);
			if (.@aid && jobname(.@job) != "null") {
				mes "Turn "+.@name$+" into "+jobname(.@job)+"?";
				if (select("Yes", "No") == 1) {
					close2;
					attachrid(.@aid);
					jobchange .@job;
				}
			}
			else {
				dispbottom "Usage: "+.@atcmd_command$+" <job> <name> - invalid player or job.";
			}
		}
		end;
}

 

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