Jump to content
  • 0

Rental Item Shop npc?


Question

Posted (edited)

any good rental shop npc script using PODS and everytime has 3hrs duration of time thank you!

ive been searching for like years to find some stable and working scrips :( please help me

Edited by reddsoul
Forgot something

4 answers to this question

Recommended Posts

  • 1
Posted
On 11/14/2016 at 9:37 PM, reddsoul said:

any good rental shop npc script using PODS and everytime has 3hrs duration of time thank you!

ive been searching for like years to find some stable and working scrips :( please help me

prontera,152,180,4    script    Sample    93,{

.@pods = 7179;        //Item needed for rental
.@amount = 1;        //Amount of the item needed for the rental
.@item = 512;        //Item to for rent
.@hours = 3;        //Hours of rental

if (countitem(.@pods) < .@amount) end;

if (Rental > gettimetick(2)) {
mes "[Sample]";
mes "Please wait for " + callfunc("Time2Str",Rental) + ".";
close;
}

set Rental, gettimetick(2) + (.@hours * 60 * 60);
rentitem .@item,(.@hours * 60 * 60);
delitem .@pods,.@amount;
end;
}
Quote

 

  • 1
Posted

Example. Make a npc that requires pods to buy an item 

and this is the item(rent item)

 

12935,Infiltrator_Box,Infiltrator Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ rentitem 1267,604800; },{},{}

this is just a example

  • 0
Posted
On 11/14/2016 at 7:16 AM, HappyMan said:

if you still need help just message me.

sure ill test it out

16 hours ago, gmsour said:

prontera,152,180,4    script    Sample    93,{

.@pods = 7179;        //Item needed for rental
.@amount = 1;        //Amount of the item needed for the rental
.@item = 512;        //Item to for rent
.@hours = 3;        //Hours of rental

if (countitem(.@pods) < .@amount) end;

if (Rental > gettimetick(2)) {
mes "[Sample]";
mes "Please wait for " + callfunc("Time2Str",Rental) + ".";
close;
}

set Rental, gettimetick(2) + (.@hours * 60 * 60);
rentitem .@item,(.@hours * 60 * 60);
delitem .@pods,.@amount;
end;
}

gonna test this out thanks alot!

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...