Jump to content
  • 0

Player Job changer System and Hunger bar for Players


Question

Posted

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

3 answers to this question

Recommended Posts

  • 0
Posted

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
  • 0
Posted
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?

  • 0
Posted

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;
}

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...