- script . -1,{
OnInit:
for (set .@i, 0;.@i < getarraysize(.items);set .@i, .@i+1){
set .@itemid = .items[.@i];
for (set .@j, 0; .@j < .amount[.@i]; set .@j, .@j+1){
set .@x, rand(.upperleftx,.lowerrightx);
set .@y, rand(.lowerrighty,.upperlefty);
makeitem .@itemid,1,.map,.@x,.@y;
}
}
end;
OnInit:
setarray .items[0],969; //add items that should be dropped here
setarray .amount,5; //how many of each item should drop?
set .map,"guild_vs4"; //map
set .upperleftx,0; //items will be dropped in that area (see below)
set .upperlefty,0;
set .lowerrightx,0;
set .lowerrighty,0;
end;
}
can not drop gold auto in map