Jump to content
  • 0

NPC Reward [In-game config]


uDe

Question


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

Hello~

 

I want to request a script for NPC Reward.

 

You can the script below and please make it in-game configuration for giving item, cashpoint and vip duration (Group Level 1 = VIP) per ID.

 

Also, an Admin can remove all the reward from NPC and when players click on that NPC, NPC will reply "Sorry, there's no reward at this time.".

 

The purpose of this script is to save some time for setting the rewards at script.

 

prontera,139,174,5	script	Maria Curry#01	681,{
mes " ^00FF00=======================^000000";
mes " ";
mes "	^7B68EEMaintenance Gift^000000	";
mes " ";
mes " ^00FF00=======================^000000";
next;
if(##Maintenance03 == 1) goto L_1;
mes "[Maria Curry]";
mes " ";
	mes "Greetings "+strcharinfo(0)+"!!!";
	mes " ";
	mes "Thank you for you patience for NeutralRO Emergency Maintenance..";
	mes "We would like to thank you by giving some gifts..";
	mes "But, the NPC that will giving you the presents will only available at 10.00PM on April 27 until 10.00PM on April 29 which mean, only for ^FF000048 HOURS!^000000";
	mes "So, DO NOT miss your chance to get some rare gifts form the NPC.";
next;
mes "[Maria Curry]";
mes " ";
mes "Oh ya! Do not forget to tell all your friends about this. They cannot miss this!! ;D";
next;
set #CASHPOINTS,#CASHPOINTS+500;
dispbottom "You have currently " +#CASHPOINTS +" Cash Points!";
getitem 30144,1;
rentitem 30465,1209600;
callfunc "vip_add", 86400 * 14;
dispbottom "Your VIP has been added for 14 days..!";
npctalk "Thank you and enjoy the game "+strcharinfo(0)+"!";
emotion e_thx;
set ##Maintenance03,1;
close;

L_1:
mes "[Maria Curry]";
mes "Sorry I can't give you more.";
mes " ";
mes "^FF0000Maintenance Gift has been given to this ID..^000000";
mes " ";
mes "Please check your inventory to see the  items..";
emotion e_bzz;
close;

OnInit:

	waitingroom "Maintenance Gift!!",0,0;
	end;
}

Hopefully, it will work with rentitem. Example on script above at line 25 :

 

rentitem 30465,1209600;

 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

BUMP

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

BUMP

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

BUMP

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