Jump to content
  • 0

Onpcloginevent not checking on this script


Takuyakii

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

Good day, can someone correct this script

i have npc that giving a farm title System ( Farmer 1, Farmer 2 titled)

i want to make if the player logged in it needs to check if his farmer 1 or farmer 2, )
so i try to wrote this.

if farmer 1, he/she will be put tittled or fakename on his name, 

 

PS: i don't know if my title is right if not please do correct ty

-	script	testtitles	-1,{
OnPCLoginEvent:

	
 if( Farm == 0) goto L_name;
  if (Farm == 1 ) goto L_nfarm;
L_name:
	mes "Your not a farmer!";
	end;
L_farm:
	atcommand "@fakename" Farmer1 "+ strcharinfo(0);
		end;
}

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   25
  • Joined:  12/24/14
  • Last Seen:  

-	script	testtitles	-1,{

OnPCLoginEvent:
	if (Farm == 0) goto L_name;
	if (Farm == 1) goto L_farm;

	L_name:
		mes "Your not a farmer!";
		end;

	L_farm:
		atcommand "@fakename" Farmer1 "+ strcharinfo(0);
		end;
}

 

Edited by Skorm
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

On 8/31/2022 at 2:46 PM, Takuyakii said:

Good day, can someone correct this script

i have npc that giving a farm title System ( Farmer 1, Farmer 2 titled)

i want to make if the player logged in it needs to check if his farmer 1 or farmer 2, )
so i try to wrote this.

if farmer 1, he/she will be put tittled or fakename on his name, 

 

PS: i don't know if my title is right if not please do correct ty

 

Your labels where incorrect it seems like mR L fixed them for you. Although your explanation isn't that great so I'm not entirely sure if this script is working the way you want it to. I can only confirm that the script mR L provided will work.

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