laylayzi Posted February 7, 2015 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 11 Reputation: 0 Joined: 01/28/15 Last Seen: July 2, 2022 Share Posted February 7, 2015 Hi as the toppic title, Could you show me how to add rental item into CashShop(botton)? Thank for your time! Quote Link to comment Share on other sites More sharing options...
0 doctrine Posted November 12, 2021 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 14 Reputation: 1 Joined: 09/27/21 Last Seen: March 8, 2022 Share Posted November 12, 2021 it's been 6 years since this post. is it already supported? where in core I need to add "If tab = rental item then add timer"? Quote Link to comment Share on other sites More sharing options...
Lemongrass Posted February 7, 2015 Group: Developer Topic Count: 28 Topics Per Day: 0.01 Content Count: 547 Reputation: 270 Joined: 11/08/11 Last Seen: June 10, 2024 Share Posted February 7, 2015 Currently not supported. Quote Link to comment Share on other sites More sharing options...
Cydh Posted February 8, 2015 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted February 8, 2015 so, example u put Balmung (without box) there, and when player buy it it will be rental for xxx minutes? sounds interesting, but the client can't show such icon or what is it for telling buyer that u will buy rental items maybe you can put the item on Rental tab. Quote Link to comment Share on other sites More sharing options...
laylayzi Posted February 8, 2015 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 11 Reputation: 0 Joined: 01/28/15 Last Seen: July 2, 2022 Author Share Posted February 8, 2015 i found a script NPC shop selling rental item from eathena - shop custom_seller -1,501:20 prontera.gat,100,100,5 script custom seller 899,{ mes "I will rent you customs for 1 day each."; callshop "custom_seller",1; npcshopattach "custom_seller"; end; OnBuyItem: for(set @a,0; @a<getarraysize(.customs); set @a,@a+1){ for(set @i,0; @i<getarraysize(@bought_nameid); set @i,@i+1) { if(.customs[@a]==@bought_nameid[@i]){ if(Zeny < .zenycosts[@a]*@bought_quantity[@i]) { break; } set Zeny,Zeny - .zenycosts[@a]*@bought_quantity[@i]; rentitem @bought_nameid[@i], 3600 * 24; } } } deletearray @bought_quantity, getarraysize(@bought_quantity); deletearray @bought_nameid, getarraysize(@bought_nameid); close; OnInit: setarray .customs[0],2383,2541,2410,2629,5013; setarray .zenycosts[0],1000,10000,100000,1000000,1000000; npcshopitem "custom_seller",0,0; for(set .i,0; .customs[.i]; set .i,.i+1) npcshopadditem "custom_seller",.customs[.i],.zenycosts[.i]; end; } when i change the sript to -cashshop it can work, it not give me a rental item, do i miss something? - cashshop custom_seller -1,501:20 Currently not supported. so, example u put Balmung (without box) there, and when player buy it it will be rental for xxx minutes? sounds interesting, but the client can't show such icon or what is it for telling buyer that u will buy rental items maybe you can put the item on Rental tab. Thank you for your answer! Quote Link to comment Share on other sites More sharing options...
Cydh Posted February 8, 2015 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted February 8, 2015 if want to use script, just leave it as shop, the pricing and how the item will be obtained, u just need edit the script. if u're using quest_shop.txt, change this line for rentitem, npc/custom/quests/quest_shop.txt#L150 Quote Link to comment Share on other sites More sharing options...
laylayzi Posted February 9, 2015 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 11 Reputation: 0 Joined: 01/28/15 Last Seen: July 2, 2022 Author Share Posted February 9, 2015 if want to use script, just leave it as shop, the pricing and how the item will be obtained, u just need edit the script. if u're using quest_shop.txt, change this line for rentitem, npc/custom/quests/quest_shop.txt#L150 thank for your answer its a usefull NPC Quote Link to comment Share on other sites More sharing options...
Question
laylayzi
Hi
as the toppic title, Could you show me how to add rental item into CashShop(botton)?
Thank for your time!
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.