Code: Select all
var skill := Randomint(48)+1;
skill := GetAttributeIdBySkillId(skill); // Function from attributes.inc
bonus := Randomint(4)+1;
name := GetBonusNameByAttribute(skill); <== This function returns string like that "[Alchemii]"
SetObjProperty(item,"dmagic",{skill,time,bonus,name});
Code: Select all
var factor := GetObjProperty(item,"dmagic");
item.name := item.desc+""+factor[4];
i tryed to GetObjProperty Then SetObjProperty on item and in my array there was no "[Alchemii]" only Unable to unpack string length. String length excessive.
imho core bug