Jump to content
  • 0

drop items


kitty14

Question


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

hello,how to change this instead of getting the items automatically in the inventory,i want the monster will just drop the items on the floor.

and please do correct the scrip, i just modified it.. i got error. hahaha
 

OnNPCKillEvent:
if( getmonsterinfo( killedrid == 1956) && rand(100) < 10 )
    getitem  .item[ rand( .item_size ) ],1;
end;

OnInit:
setarray .item[0],18113,2016,1586,1395,1832,21001;
.item_size = getarraysize( .item );
end;
}

Thank you!

Edited by kitty14
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  


- script On1956Dead -1,{

OnNPCKillEvent:

if( killedrid == 1956 ) && rand(100) < 10 )

{ getmapxy(.@m$,.@x,.@y,0); makeitem( .item[ rand( .item_size ) ],1,.@m$,.@x,.@y; }

end;

OnInit:

setarray .item[0],18113,2016,1586,1395,1832,21001;

.item_size = getarraysize( .item );

end;

}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  


*makeitem <item id>,<amount>,"<map name>",<X>,<Y>;

*makeitem "<item name>",<amount>,"<map name>",<X>,<Y>;

This command will create an item on the specified cell of a map.

As with any dropped items, the items created with this command will disappear after

a period of time. Using an amount greater than 1 will create a single stack of the

given amount, not multiple stacks of 1.

Like 'getitem', it also accepts an 'english name' field from the database and creates

Apples if the name isn't found.

If the map name is given as "this", the map the invoking character is on will be used.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

can you apply it to the script? or can you make script for it?
cuz the script i used has error

everytime i kill naght sieger mobs it drops vellum weapons..


please?


some please help?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

thanks!

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...