prontera,152,180,4 script Sample 93,{
[email protected] = 7179; //Item needed for rental
[email protected] = 1; //Amount of the item needed for the rental
[email protected] = 512; //Item to for rent
[email protected] = 3; //Hours of rental
if (countitem(
[email protected]) <
[email protected]) end;
if (Rental > gettimetick(2)) {
mes "[Sample]";
mes "Please wait for " + callfunc("Time2Str",Rental) + ".";
close;
}
set Rental, gettimetick(2) + (
[email protected] * 60 * 60);
rentitem
[email protected],(
[email protected] * 60 * 60);
delitem
[email protected],
[email protected];
end;
}