setarray .i1[0],7539,7621; // Common Items
set .i1rand,rand(0,2); // Randomize Common Items; just change max amount if you add items
setarray .i2[0],14003,13607,12922,12912; // Rare Items
set .i2rand,rand(0,3); // Randomize Rare Items; just change max amount if you add items
setarray .i3[0],19568,31120,31121; // Super Rare Items
set .i3rand,rand(0,2); //Randomize Super Rare Items; just change max amount if you add items
set .chance, rand(50);
// Super Rare Item 3%
if (.chance < 10){
getitem .i3[.i3rand],1;
announce "["+strcharinfo(0)+"] got a ["+getitemname(.i3[.i3rand])+"] from the Lucky Egg.",0;
end;
}
// Rare Item 15%
else if (.chance < 15){
getitem .i2[.i2rand],1;
announce "["+strcharinfo(0)+"] got a ["+getitemname(.i2[.i2rand])+"] from the Lucky Egg.",0;
end;
}
// Common Items
else {
getitem .i1[.i1rand],1;
end;
}
}
Hi rAthena!
Can I pls ask a little help with this script.
I'm getting a "buildin_getitem: NonExistant item 0 requested"
Question
Musika6988
Hi rAthena!
Can I pls ask a little help with this script.
I'm getting a "buildin_getitem: NonExistant item 0 requested"
Thanks in advanced!
Edited by Musika6988Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.