Jump to content
  • 0

About Rental Item


Question

Posted (edited)

im making a rental item which setted with a box, when opening the box, the rental item will pop out with the rented timers , as per seen the images below, im adding a rental item with 12 hours expiracy.

this pop out at chat when opening the box,

rental02.png

well , isnt it 2 days ? xD [sOLVED]

but at the item description, it shows these instead

rental01.png

are im implementing these wrongly ? or im missing steps to declare the time/dates there ?

Which client did i have to use to be able to see the Expiration dates ?

Edited by LordOfHeRO

4 answers to this question

Recommended Posts

Posted (edited)
well , isnt it 2 days ? xD

Just a Simple Calculation...

60 Seconds * 60 Minute * 24 Hours * 2 Days..

60 * 60 * 24 * 2 = 172800

*rentitem <item id>,<time>;

*rentitem "<item name>",<time>;

Creates a rental item in the attached character's inventory. The item will expire 
in <time> seconds and be automatically deleted. When receiving a rental item, 
the character will receive a message in their chat window. The character will 
also receive warning messages in their chat window before the item disappears.

This command can not be used to rent stackable items. Rental items cannot be 
dropped, traded, sold to NPCs, or placed in guild storage. (i.e. trade mask 75)
Note: 'delitem' in an NPC script can still remove rental items.


Edited by Emistry
Posted
well , isnt it 2 days ? xD

Just a Simple Calculation...

60 Seconds * 60 Minute * 24 Hours * 2 Days..

60 * 60 * 24 * 2 = 172800

Sorry it is in Seconds..i missed that part..

*rentitem <item id>,<time>;

*rentitem "<item name>",<time>;

Creates a rental item in the attached character's inventory. The item will expire
in <time> seconds and be automatically deleted. When receiving a rental item,
the character will receive a message in their chat window. The character will
also receive warning messages in their chat window before the item disappears.

This command can not be used to rent stackable items. Rental items cannot be
dropped, traded, sold to NPCs, or placed in guild storage. (i.e. trade mask 75)
Note: 'delitem' in an NPC script can still remove rental items.

Posted (edited)

okay the time calculation is perfect, what about the item description, that will show the date and time ?

im using 2010-07-30aRagexeRE client, are rental item description that showing date and time have problem with this client, as i read some info from the old board, i seems have problem showing the expiration date on this client. so which client should i take :D

Edited by LordOfHeRO

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...