Jump to content
  • 0

How do I place a unique_id gepard check on this npc?


Tdi123

Question


  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.04
  • Content Count:  192
  • Reputation:   3
  • Joined:  12/12/17
  • Last Seen:  

I created a simple npc pack guild, but I don’t know how to do a unique_id check, could someone help me?

poring_w02,172,178,3	script	Pack Guild#1	446,{

	mes "^FF7F00[ Pack Guild ]^000000";
	mes (gettime(3)>= 6&&gettime(3)<= 12?"Bom dia":(gettime(3)>=13&&gettime(3)<=18?"Boa tarde":"Boa noite"))+" ^0000ff"+strcharinfo(0)+"^000000";
	mes "Aqui você poderá escolher qualquer ^0000ffElmo^000000 quest do Servidor.";
	next;
	if(#packguild > 0){
			mes "^FF7F00[ Pack Guild ]^000000";
			mes "Você já recebeu seu Elmo!";
			close;
		}
	mes "^FF7F00[ Pack Guild ]^000000";
	mes "Vale lembrar que o Pack Guild será válido por ^0000ff30 dias^000000.";
	close2;
	callfunc "pgshop";
	end;
}

 

Edited by Tdi123
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

or you can do something like

	if(getd("$QID_" + get_unique_id())){
		//already got
	}else{
		//get something
		setd("$QID_" + get_unique_id(),true);
	}

 

Edited by sader1992
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.04
  • Content Count:  192
  • Reputation:   3
  • Joined:  12/12/17
  • Last Seen:  

On 5/5/2021 at 6:21 PM, sader1992 said:

or you can do something like


	if(getd("$QID_" + get_unique_id())){
		//already got
	}else{
		//get something
		setd("$QID_" + get_unique_id(),true);
	}

 

Thank you very much!

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