summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorgepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-18 12:08:41 +0000
committergepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-18 12:08:41 +0000
commit268921a15901fc5deefdd5143ada2f18ba5e0dd1 (patch)
treeb8a88317968018be38d2d721c50f64e6ab0f39cb /src/map/pc.c
parentbea3f9774fe6134d927002d8f7a9b68f2c2d37fd (diff)
downloadhercules-268921a15901fc5deefdd5143ada2f18ba5e0dd1.tar.gz
hercules-268921a15901fc5deefdd5143ada2f18ba5e0dd1.tar.bz2
hercules-268921a15901fc5deefdd5143ada2f18ba5e0dd1.tar.xz
hercules-268921a15901fc5deefdd5143ada2f18ba5e0dd1.zip
Extended @alootid command to support multiple items (default: 10).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15489 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 386ea68a3..9d7f67f3e 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -8182,6 +8182,17 @@ void pc_overheat(struct map_session_data *sd, int val) {
return;
}
+
+/**
+ * Check if player is autolooting given itemID.
+ */
+bool pc_isautolooting(struct map_session_data *sd, int nameid)
+{
+ int i;
+ ARR_FIND(0, AUTOLOOTITEM_SIZE, i, sd->state.autolootid[i] == nameid);
+ return (i != AUTOLOOTITEM_SIZE);
+}
+
int pc_split_str(char *str,char **val,int num)
{
int i;