Jump to content
  • 0
Sign in to follow this  
MikZ

Rent NPC Shop (NST_CUSTOM)

Question

Good day!

I am trying to make NPC if possible rent item npc using the NST_CUSTOM.

But where should i place the # of days?


Please help me how. thanks!

-	trader	Rental01	1_M_01,{
	OnInit:
	tradertype(NST_CUSTOM);
	rentitem Red_Potion,2;
	end;

OnCountFunds:
	setcurrency(#KAFRAPOINTS);
	end;

OnPayFunds:
	if( #KAFRAPOINTS < @points )
		end;
	#KAFRAPOINTS -= @points;
	purchaseok();
}	

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

have you consider to put it inside a box?

{
	Id: 99999
	AegisName: "Custom_Box"
	Name: "Custom Box"
	Type: "IT_CASH"
	Buy: 20
	Weight: 10
	Trade: {
		nodrop: true
		noselltonpc: true
		nocart: true
		nogstorage: true
		nomail: true
		noauction: true
	}
	Script: <" rentitem 12345,604800; ">
},
-	trader	Rental01	1_M_01,{
	OnInit:
	tradertype(NST_CUSTOM);
	sellitem Custom_Box, 2;
	end;

OnCountFunds:
	setcurrency(#KAFRAPOINTS);
	end;

OnPayFunds:
	if( #KAFRAPOINTS < @points ) end;
	#KAFRAPOINTS -= @points;
	purchaseok();
}

 

Edited by Rebel

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.