thank you for all your help..... i will try this
ignore my last message.....
made it work. here's my script
- script Poring_Coin -1,{
OnNPCKillEvent:
.@rate = rand(100);
if (getequipid(EQI_ACC_R) == 2642 || getequipid(EQI_ACC_L) == 2642) {
if (.@rate < 15) {
getitem 969, 1;
}
else if (.@rate < 18) {
getitem 6238, 1;
getitem 6239, 1;
}
else if (.@rate < 21) {
getitem 6228, 1;
getitem 6232, 1;
}
else if (.@rate < 24) {
getitem 6229, 1;
getitem 6233, 1;
}
else if (.@rate < 27) {
getitem 6230, 1;
getitem 6234, 1;
}
else (.@rate < 30) {
getitem 6231, 1;
getitem 6235, 1;
}
}
}
my problem now is.. it only gives the items 969,6238,6239.
items 6228,6232 wont drops.
could this work?
- script Poring_Coin -1,{
OnNPCKillEvent:
.@rate = rand(100);
if (getequipid(EQI_ACC_R) == 2642 || getequipid(EQI_ACC_L) == 2642) {
if(.@rate< 10 ) {
getitem 969,1 (.@rate< 10);
getitem 2,1 (.@rate< 20);
getitem 3,1 (.@rate< 30);
}
}
here's my working script
- script Poring_Coin -1,{
OnNPCKillEvent:
.@rate = rand(1000);
if (getequipid(EQI_ACC_R) == 2642 || getequipid(EQI_ACC_L) == 2642) {
if(.@rate< 100 )
getitem 969,1; // Gold
else if(.@rate< 50 )
getitem 6238,1; // +11 W
else if(.@rate< 50 )
getitem 6239,1; // +11 A
else if(.@rate< 100 )
getitem 6228,1; // +9 W
else if(.@rate< 101 )
getitem 6232,1; // +9 A
else if(.@rate< 200 )
getitem 6229,1; // +8 W
else if(.@rate< 201 )
getitem 6233,1; // +8 A
else if(.@rate< 250 )
getitem 6230,1; // +7 W
else if(.@rate< 251 )
getitem 6234,1; // +7 A
else if(.@rate< 300 )
getitem 6231,1; // +6 W
else if(.@rate< 301 )
getitem 6235,1; // +6 A
else
end;
}
}
it works for me. thank you for all your time. Happy Ragnarok to all
i hope there is an easy code like this hehe thanks