62003,Spirit of Gryphon,Gryphon Egg Scroll,18,20,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ .@i = rand(100); if(.@i < 3){ .@x = callfunc("F_Rand",20069,5471); getitem .@x,1; announce "(" + strcharinfo(0) + "), won a <" + getitemname(.@x) + "> from <" + getitemname(62003) + ">!",bc_all,0xFFFF00; } else if(.@i < 7){ getitem callfunc("F_Rand",6230,6234),1; } else if(.@i < 15){ getitem callfunc("F_Rand",19537,20270,19669,5660),1; } else{ getitem callfunc("F_Rand",12684,14524,12710,12437,12214,12210),rand(3); } },{},{}
So i have this custom item where i used nested if as the item script, but sometimes when i open there are chances that you will not get any item at all.
what seems to be wrong here?
*note : i know we have item_package but i find it easier using this method because i dont have to add const id when making scrolls.