MikZ 5 Posted October 28, 2018 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(); } Quote Share this post Link to post Share on other sites
0 MikZ 5 Posted October 30, 2018 or can someone provide me script for rental items with View screen like the trader shop. thanks! Quote Share this post Link to post Share on other sites
0 Rebel 23 Posted October 30, 2018 (edited) 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 October 30, 2018 by Rebel 1 MikZ reacted to this Quote Share this post Link to post Share on other sites
0 MikZ 5 Posted November 6, 2018 So there is no way then? T_T. noted thanks much on your suggestion.. Quote Share this post Link to post Share on other sites
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