Jump to content
  • 0

About Rental Item


Zagreuz

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   5
  • Joined:  11/19/11
  • Last Seen:  

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

4 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   5
  • Joined:  11/19/11
  • Last Seen:  

i have changed the script to 2880 , reloaded the itemdb, when opening the box, it shows 48minutes intead of 2 days ( as in minutes )

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   5
  • Joined:  11/19/11
  • Last Seen:  

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