i got this script :
setarray (.mobid[0],1022,1831,1002); //Monster ID
setarray (.mobname$[0],"Megaporing","Mob1","Mob2"); //Monster Name
setarray (.moba[0],60,120,85); //Monster Anzahl
then i create this mobs :
monster(.Ci$[0],0,0,.mobname$[0],.mobid[0],.crys[0],"MSE2::OnMyMobDead");
the megaporing apear.
now there is the problem in getitem
OnNPCKillEvent:
if(killedrid == .mobid[0]) getitem 7546,3;
end;
The player dont get the item.
If i set, 1002 as id, nothing, but if i kill normal Porings, the item appear.
I dont get it. Please help me guys u_u
After a long testing.
This works only with OnMyMobDead: .
now i want the item drops in the killer position. with this :
if( strcharinfo(3) == .Ci$[0] && killedrid == .@mobid[0] ){ // map ID & If a Poring (1002) was killed on "MAP"
getmapxy(@m$,@x,@y,0); // Get map and coords from invoking player
makeitem 501,1,@m$,@x+rand(0,1),@y+rand(0,1); // Drop item at your feet, randomly between 3-5 cells away
}
works, but only with 3-4 mobs, Then, the item stop and never apears again. Dunno why.
Im trying to do a invasion event, with a laaaaarge aumont of mobs, like 1200.