summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-25 18:05:40 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-25 18:05:40 +0000
commite7153a55c1392f478faa0522c7f62ded1c115b3a (patch)
tree5b694367c254201d171fa9155db5d2ad7cebd793 /src/map/script.c
parent1d675068f04afe6ab0829e99a32d0179c5183431 (diff)
downloadhercules-e7153a55c1392f478faa0522c7f62ded1c115b3a.tar.gz
hercules-e7153a55c1392f478faa0522c7f62ded1c115b3a.tar.bz2
hercules-e7153a55c1392f478faa0522c7f62ded1c115b3a.tar.xz
hercules-e7153a55c1392f478faa0522c7f62ded1c115b3a.zip
- Modified and simplified the random item group format. It now is <GroupID>,<ItemID>,<Rate>, where Rate normally is 1, greater numbers is the equivalent of adding the line multiple times.
- Added constants to identify all groups to db/const.txt - Cleaned up and updated item_db to use these new constants (warning: item_db.sql needs to be updated!) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6275 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 876f17477..626512003 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -3945,7 +3945,7 @@ int buildin_grouprandomitem(struct script_state *st)
int group;
group = conv_num(st,& (st->stack->stack_data[st->start+2]));
- push_val(st->stack, C_INT, itemdb_searchrandomgroup(group));
+ push_val(st->stack, C_INT, itemdb_searchrandomid(group));
return 0;
}