kitty14 Posted August 29, 2014 Share Posted August 29, 2014 (edited) 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 August 29, 2014 by kitty14 Quote Link to comment Share on other sites More sharing options...
GmOcean Posted August 29, 2014 Share Posted August 29, 2014 - script On1956Dead -1,{ OnNPCKillEvent: if( killedrid == 1956 ) && rand(100) < 10 ) { getmapxy([email protected]$,[email protected],[email protected],0); makeitem( .item[ rand( .item_size ) ],1,[email protected]$,[email protected],[email protected]; } end; OnInit: setarray .item[0],18113,2016,1586,1395,1832,21001; .item_size = getarraysize( .item ); end; } 1 Quote Link to comment Share on other sites More sharing options...
GmOcean Posted August 29, 2014 Share Posted August 29, 2014 *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. Quote Link to comment Share on other sites More sharing options...
kitty14 Posted August 29, 2014 Author Share Posted August 29, 2014 can you apply it to the script? or can you make script for it?cuz the script i used has erroreverytime i kill naght sieger mobs it drops vellum weapons.. please? some please help? Quote Link to comment Share on other sites More sharing options...
kitty14 Posted August 30, 2014 Author Share Posted August 30, 2014 thanks! Quote Link to comment Share on other sites More sharing options...
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 kitty14Link to comment
Share on other sites