Jump to content
  • 0

rentitem


papol22

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  70
  • Reputation:   1
  • Joined:  12/14/11
  • Last Seen:  

my server dnt have rentitem command.it is turn off or i need to script something?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  182
  • Reputation:   36
  • Joined:  01/26/12
  • Last Seen:  

It's supposed EVERY server comes with rentitem built in by default, unless you or your server provider have deactivated it. Look for BUILDIN_DUNC(rentitem) in /scr/map/script.c and see if you have it, which wou'll surely do.

 

Are you sure you haven't used that script command incorrectly? Correct syntax for rentitem is:

rentitem <item ID>,<duration in seconds>;

 

Check if you forgot to put the seconds on your script.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  70
  • Reputation:   1
  • Joined:  12/14/11
  • Last Seen:  

i have it but how to know or how to activate it?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  182
  • Reputation:   36
  • Joined:  01/26/12
  • Last Seen:  

How to activate what? How to make a rented item?

 

You can easily know if you have it activated (which should be by default), just make and try one of these items and if they work, you have the command on your server.

 

In case you're asking for that it's simple: just make an NPC or another item that uses the rentitem command. For example:

 

Let's imagine you have an Item Renter NPC or an item which rents you an Angra Manyu (Item ID#1599) for 1 hour (3600000 milliseconds). Then the NPC or the item executes the following code:

rentitem 1599,3600000;
Edited by jaBote
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  70
  • Reputation:   1
  • Joined:  12/14/11
  • Last Seen:  

how to make it gm command because in game it says "rentitem is Unknown Command" 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  182
  • Reputation:   36
  • Joined:  01/26/12
  • Last Seen:  

OMG that's a scripting command: you don't use it as a GM but NPCs and other items do.

 

If you're a GM you can create permanent items with @item <item_ID or "item_name">. There's not a @rentitem GM command as long as I know.

 

Try getting one of those items I showed you before from RateMyServer by using @item and use it. You'll get a rented item.

 

If you still want a @rentitem GM command try asking for it on Source Requests - I'm not good in source.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  70
  • Reputation:   1
  • Joined:  12/14/11
  • Last Seen:  

thanks anyway sir=) now all is clear

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