Jump to content
  • 0

Easy custom online reward


Kido

Question


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

I just want a script that gives a reward to the players every day, easy to use because i'm so noob unskilled on the script thing.

I found some scripts that gives reward per hour, day or wekk etc but i just don't get it, if it's posible, i would love a simple and basic script with just that characteriscts (sorry my english)

 

Also, a npc that gives a welcome pack to the new players, because sometimmes im not online and new players come to my server but there is no gm to ask for a welcome pack, thanks again i really apreciated this

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

set .@n$,"[Daily Reward]";
	mes .@n$;
	mes "Hey! Have you taken your reward today?";
	select("Yes");
	if (#dr_time$ != gettimestr("%Y%m%d",9)) {
		next;
		mes .@n$;
		mes "LIAR!!!";
		mes "Telling lies are no good.";
		mes "Please take your reward!";
		next;
		set #dr_time$, gettimestr("%Y%m%d",9);
		switch (gettime(4)) {
			Case 0: getitem 671,1; break;
			Case 1: getitem 672,1; break;
			Case 2: getitem 673,1; break;
			Case 3: getitem 674,1; break;
			Case 4: getitem 675,1; break;
			Case 5: getitem 676,1; break;
			Case 6: getitem 677,1; break;
		}
		next;
		mes .@n$;
		mes "Don't tell lies next time...";
		mes "Have a nice day!";
		close;
	}
	next;
	mes .@n$;
	mes "Then don't talk to me!";
	close;
}

This is a account based daily from these post:

http://rathena.org/board/topic/68819-request-daily-rewards-npc/

You can change the reward prize by just changing the getitem 671 "item id". 671 = Gold Coin change that to other Item(ID ONLY).

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

Thanks! i can add many more prizes for everyday? what happens when they get all items rewards, the count resets?

thank you again!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

for best results change all reward item to non tradable so that they cant abuse this script. you can find better script in then forum, but then again better script is not so easy to understand in case of what you stated before that your new to scripting, i suggest start learning the basics im also new to this kind of stuffs i just kinda get used to it. :D

Link to comment
Share on other sites


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

Also, a npc that gives a welcome pack to the new players, because sometimmes im not online and new players come to my server but there is no gm to ask for a welcome pack, thanks again i really apreciated this

 

http://rathena.org/board/topic/82462-freebies-giver/?p=198307

 

Configuration : 

setarray .@rwd[0],2115,1,2357,1,2421,1,2524,1; // Rewards: <item id>,<item amount>
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

Thank you to both! this will totally help my server and I, thanks again!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  5
  • Reputation:   0
  • Joined:  08/20/13
  • Last Seen:  

set .@n$,"[Daily Reward]";
	mes .@n$;
	mes "Hey! Have you taken your reward today?";
	select("Yes");
	if (#dr_time$ != gettimestr("%Y%m%d",9)) {
		next;
		mes .@n$;
		mes "LIAR!!!";
		mes "Telling lies are no good.";
		mes "Please take your reward!";
		next;
		set #dr_time$, gettimestr("%Y%m%d",9);
		switch (gettime(4)) {
			Case 0: getitem 671,1; break;
			Case 1: getitem 672,1; break;
			Case 2: getitem 673,1; break;
			Case 3: getitem 674,1; break;
			Case 4: getitem 675,1; break;
			Case 5: getitem 676,1; break;
			Case 6: getitem 677,1; break;
		}
		next;
		mes .@n$;
		mes "Don't tell lies next time...";
		mes "Have a nice day!";
		close;
	}
	next;
	mes .@n$;
	mes "Then don't talk to me!";
	close;
}

This is a account based daily from these post:

http://rathena.org/board/topic/68819-request-daily-rewards-npc/

You can change the reward prize by just changing the getitem 671 "item id". 671 = Gold Coin change that to other Item(ID ONLY).

 

where can i put this script??? in trunk/    /    /      ??

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