Issue information

Issue ID
#2547
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Dec 17, 2008 16:32
Last Post
Hercules Elf Bot
Mar 5, 2012 9:25
Confirmation
N/A

Hercules Elf Bot - Dec 17, 2008 16:32

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

setitemscript error, that's is missing the flags
CODE
*setitemscript(<ItemID>,<"{ new item script }">);


the complete is:
*setitemscript(<ItemID>,<"{ new item script }">,"<n>");

it's should be on script_command
CODE
*setitemscript(<ItemID>,<"{ new item script }">,"<n>");
Set a new script bonus to the Item. Very useful for game events.
You can remove an item's itemscript by leaving empty the itemscript argument.
Default flag is 0 "script".
   Where n:
    0 - script
    1 - Equip script
    2 - Unequip script

Example:

setitemscript 2637,"{ bonus bDamageWhenUnequip,40; if(isequipped(2236)==0)end; if(getskilllv(26)){skill 40,1;}else{skill 26,1+isequipped(2636);} }";
setitemscript 2637,"";


This post has been edited by TecnoCronus: Dec 21 2008, 02:12 PM