Jump to content
  • 0
kitty14

drop items

Question

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


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

}

  • Upvote 1
Link to comment
Share on other sites


*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

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

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.