badneko Posted June 26, 2014 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 37 Reputation: 1 Joined: 06/09/14 Last Seen: February 10, 2019 Share Posted June 26, 2014 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. Quote Link to comment Share on other sites More sharing options...
Jyabil Posted June 28, 2014 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 89 Reputation: 7 Joined: 02/27/12 Last Seen: July 22, 2014 Share Posted June 28, 2014 Why not just give the item to the killer directly instead of dropping it near him? Quote Link to comment Share on other sites More sharing options...
Question
badneko
i got this script :
setarray (.mobid[0],1022,1831,1002); //Monster ID
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 :
Link to comment
Share on other sites
1 answer 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.