Issue information

Issue ID
#2692
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Jan 21, 2009 21:08
Last Post
Hercules Elf Bot
Feb 7, 2012 21:00
Confirmation
N/A

Hercules Elf Bot - Jan 21, 2009 21:08

Originally posted by [b]Nymphicus[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2692

getbrokenid gives an array of broken items but contrary to doc/script_commands.txt, the index starts at 1 not 0.

Should be:
QUOTE
Since the character may have
several broken items, 1 given as an argument will return the first one found, 2
will return the second one, etc. Will return 0 if no such item is found.

// Let's see if they have anything broken:
if (getbrokenid(1)==0) goto Skip;
// They do, so let's print the name of the first broken item:
mes "Oh, I see you have a broken "+getitemname(getbrokenid(1))+" here!";
Skip:
mes "You don't have anything broken, quit bothering me.";



rentitem has no entry in doc/script_commands.txt

Something like this or better would be helpful:
QUOTE
*rentitem <item ID>, <time>;
*rentitem "<item name>", <time>;

This command creates an item for the character that will have an automatic expiration time.
When receiving an item, the character will receive a message in their chat window.
Character will receive warnings in chat window before the item disappears.

This command will not work with stackable items. Rental item cannot be removed from character's inventory.




Thanks