Rent NPC Shop (NST_CUSTOM)

MikZ

New member
Messages
461
Points
0
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!

Code:
-	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();
}
 
or can someone provide me script for rental items with View screen like the trader shop. thanks!

 
have you consider to put it inside a box?

Code:
{
	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; ">
},
Code:
-	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();
}
 
Last edited by a moderator:
So there is no way then? T_T. 

noted thanks much on your suggestion..

 
Back
Top