Jump to content
  • 0

Rental Item Shop npc?


reddsoul

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  11/10/16
  • Last Seen:  

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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  42
  • Reputation:   2
  • Joined:  05/25/16
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  191
  • Reputation:   24
  • Joined:  07/19/14
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  11/10/16
  • Last Seen:  

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!

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  191
  • Reputation:   24
  • Joined:  07/19/14
  • Last Seen:  

if you still need help just message me.

Edited by HappyMan
Link to comment
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.   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.

×
×
  • Create New...