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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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