Jump to content
  • 0
Sign in to follow this  
laylayzi

item_cash_db.txt Make item has expiration date after 7days when purchased

Question

3 answers to this question

Recommended Posts

  • 0

do as gravity did, create a "box" of the item and add rentitem command on it

Edited by evilpuncker

Share this post


Link to post
Share on other sites
  • 0

i found a script NPC shop selling rental item from eathena

 

- shop custom_seller -1,501:20prontera.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 

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.