forked from rathena/rathena
-
Notifications
You must be signed in to change notification settings - Fork 2
Map_addflooritem
Akkarinage edited this page Nov 5, 2016
·
1 revision
int
map_addflooritem
(struct item *item_data,int amount,int m,int x,int y,int first_charid,int second_charid,int third_charid,int flags);
==Parameters==
- item_data - Item data.
- amount - Amount of itens that will be added.
- m - Map id, it's possible to get this id using map_mapname2mapid(const char* name).
- x - X coordinate.
- y - Y coordinate.
- first_charid - First character that will be able to pick the item up (ID)(MVP System).
- second_charid - Second character that will be able to pick the item up (ID)(MVP System).
- third_charid - Third character that will be able to pick the item up (ID)(MVP System).
- flags -
0 - No flag.
&1 - MVP Item.
&2 - Do stacking check.
==Description== Makes an item appear on the ground using clif_dropflooritem. Returns 0 if something is wrong or item id if the item was added successfully. ==Example==
map_addflooritem(&item_tmp,1,sd->bl.m,sd->bl.x,sd->bl.y,0,0,0,0);
A item would appear on the floor in the player's location. Category:Source_Functions
- Installation instructions
- Transitioning from SVN to GIT
- Compiling on your OS
- Connecting & Starting rAthena
- Scripting like a pro!
- Server Modifications and what to expect
- Database Configuration
- Adding Custom Items
- Adding Custom Monsters
- GRF Encryption
- Data folder
- Diff files