Jump to content
  • 0

Getitem problems :/


badneko

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  37
  • Reputation:   1
  • Joined:  06/09/14
  • Last Seen:  

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. 
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  89
  • Reputation:   7
  • Joined:  02/27/12
  • Last Seen:  

Why not just give the item to the killer directly instead of dropping it near him?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...