Jump to content
  • 0

i need script 1 ip : 1 id : 1 time talk to npc


coperation

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   2
  • Joined:  01/16/12
  • Last Seen:  

i need script to talk with npc for  1ID / 1IP / 1Time   and reset  every  05.00 am.  to player can talk again [dairy gift]

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   58
  • Joined:  07/11/14
  • Last Seen:  

I did this example

prontera,161,185,5	script	NPCTIMED	112,{

	if(#TalkTimer > gettimetick(2))
	{
		mes "You have to wait!";
		close;
	}
	else
	{
		for(set .@i,0; .@i<getarraysize($Talkip$); set .@i,.@i+1)
		{ if($Talkip$[.@i] == getcharip()){ deletearray $Talkip$[.@i],1; set .@i,getarraysize($Talkip$); } }
	}


	mes "Hi...";
	mes "save teste?";
	if(select("Yes:Not")==2){ close; }
	
	mes "Ok, ready";
	set #TalkTimer,gettimetick(2)+(60*60*5);
	setarray $Talkip$[(getarraysize($Talkip$) ? getarraysize($Talkip$):0)],getcharip();
	close;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   2
  • Joined:  01/16/12
  • Last Seen:  

On 3/19/2020 at 6:50 PM, Hyroshima said:

I did this example


prontera,161,185,5	script	NPCTIMED	112,{

	if(#TalkTimer > gettimetick(2))
	{
		mes "You have to wait!";
		close;
	}
	else
	{
		for(set .@i,0; .@i<getarraysize($Talkip$); set .@i,.@i+1)
		{ if($Talkip$[.@i] == getcharip()){ deletearray $Talkip$[.@i],1; set .@i,getarraysize($Talkip$); } }
	}


	mes "Hi...";
	mes "save teste?";
	if(select("Yes:Not")==2){ close; }
	
	mes "Ok, ready";
	set #TalkTimer,gettimetick(2)+(60*60*5);
	setarray $Talkip$[(getarraysize($Talkip$) ? getarraysize($Talkip$):0)],getcharip();
	close;
}

how to edit to use with
1. OnClock0500:
and
2. Every xx hr. [with offline time]

 

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