From cd457b601c3b28805b1eb9e0b97333851e87ce1f Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Thu, 28 Feb 2008 04:46:29 +0000 Subject: * Removed "F_CheckMaxCount" as it seems "checkweight". preforms the aforementioned check in addition to checking weight. * Updated 2004 headgear quests to use checkweight. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12256 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/other/Global_Functions.txt | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'npc/other/Global_Functions.txt') diff --git a/npc/other/Global_Functions.txt b/npc/other/Global_Functions.txt index e905dc25e..a9add7eca 100644 --- a/npc/other/Global_Functions.txt +++ b/npc/other/Global_Functions.txt @@ -32,6 +32,7 @@ //= 2.07 Added TK_Q variable clear. 2.08 Added NINJ_Q variable clear [Lupus] //= 2.09 Cleared F_ClearGarbage [Lupus] //= 2.10 Added F_CheckMaxCount to check count of carrid items. [L0ne_w0lf] +//= 2.10a Removed fuction F_CheckMaxCount. Not needed. [L0ne_W0lf] //============================================================ @@ -307,21 +308,3 @@ function script F_Load2Skills { set ADV_QSK2,0; //Clear var return; } - -////////////////////////////////////////////////////////////////////////////////// -// *** Function "F_CheckMaxCount" -////////////////////////////////////////////////////////////////////////////////// -// Return 1 if the max items in inventory is 100, else 0. -// Ensure that this corrisponds to MAX_INVENTORY in src/common/mmo.h, -// otherwise you will not be able to use several quests, as they will -// check this if you have over 100 items in your inventory. -// This function will return 1 if you cannot carry anymore items. - -function script F_CheckMaxCount { - getinventorylist; - if (@inventorylist_count > 99) { - return 1; - } - return 0; -} - -- cgit v1.2.3-70-g09d2