Jump to content
  • 0

NPC that gives item if your acc is 1 month old


Pink Guy

Question


  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

Okay, Can someone please make an npc that gives you an item if your account is 1 month old? Also, you can only get 1 per account. Sample getitem -> 909,1

Thanks for whoever will help me.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  


  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

Not this one. But Thanks for replying. I'm trying to find the one that gives you an item IF YOUR ACCOUNT IS 1 MONTH OLD so those who haven't been playing for that long, won't be able to receive the item.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

Ahh sorry haha me slow mind :D

Link to comment
Share on other sites


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

If you're running flux it could be done from the cp_createlog.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   616
  • Joined:  07/05/12
  • Last Seen:  

or try

prontera,155,150,5	script	iuniono	89,{

	if ( #reward_on_one_month ) {
		mes "you already get your reward";
		close;
	}
	query_sql "SELECT `userid` FROM `login` WHERE `account_id`="+ getcharid(3), .@userid$;
	query_logsql "select datediff( curdate(),`time`) from `loginlog` where `user`='"+ escape_sql( .@userid$ ) +"' order by `time` asc limit 1", .@tmp;
	if ( .@tmp > 30 ) {	// more than 1 month = reward
		#reward_on_one_month = 1;
		getitem 501,1;

		mes "1 month is not too long isn't it?";
		close;
	}
	else {
		mes "keep going!";
		mes "^0000ff*I have been here for "+ .@tmp +" day"+ ( .@tmp > 1 ? "s" : "" ) +" now.*";
		close;
	}
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

Thank you for all the replies. I shall test this script you made, Capuche. Also, is there a guide for it, Skorm?

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