Jump to content
  • 0

Compensation NPC


rekcah

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  09/06/14
  • Last Seen:  

Hello rAthena Team may i request this script or share with me? Lately i got problem with my hosting site so i was planning to put a Compensation NPC automatically give the rewards to old players on that script there should be no rewards for newly create account, is it possible thanks.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 2

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

prontera,155,181,5	script	Sample	4_F_KAFRA1,{
	if (getcharid(3) <= 150001) {
		if (#COMPENSATION_REWARD <= 0) {
			#COMPENSATION_REWARD = gettimetick(2);
			
			getitem 501, 1;
			getitem 501, 2;
			getitem 501, 3;
			mes "You gained reward for the compensation.";
			close;
		}
	}
	end;
}

define the account id here

if (getcharid(3) <= 150001) {

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  70
  • Reputation:   0
  • Joined:  06/19/18
  • Last Seen:  

It is possible granted that you will use an SQL query that will detect only account_ids that are older.

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