diff options
author | Haru <haru@dotalux.com> | 2014-12-20 20:29:06 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-12-23 09:02:37 +0100 |
commit | 160e35222c7304896b66bdcecdcdd5330548972e (patch) | |
tree | 24c3701fb896ad410b96b082b8176d86d5c8d4ea /src/map/script.c | |
parent | 212949b352ccfcc271bf5ec9403107b04ef7c254 (diff) | |
download | hercules-160e35222c7304896b66bdcecdcdd5330548972e.tar.gz hercules-160e35222c7304896b66bdcecdcdd5330548972e.tar.bz2 hercules-160e35222c7304896b66bdcecdcdd5330548972e.tar.xz hercules-160e35222c7304896b66bdcecdcdd5330548972e.zip |
Removed deprecated commands setmadogear, checkmadogear
Follow-up to b3aef69
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/map/script.c b/src/map/script.c index 2f82a7f13..23b806d63 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -8773,47 +8773,6 @@ BUILDIN(checkwug) return true; } -/// Returns if the player is wearing MADO Gear. -/// -/// checkmadogear() -> <bool> -/// -BUILDIN(checkmadogear) -{ - TBL_PC* sd; - - sd = script->rid2sd(st); - if( sd == NULL ) - return true;// no player attached, report source - - if( pc_ismadogear(sd) ) - script_pushint(st, 1); - else - script_pushint(st, 0); - - return true; -} - -/// Sets if the player is riding MADO Gear. -/// <flag> defaults to 1 -/// -/// setmadogear <flag>; -/// setmadogear; -BUILDIN(setmadogear) -{ - bool flag = true; - TBL_PC* sd; - - sd = script->rid2sd(st); - if (sd == NULL) - return true;// no player attached, report source - - if (script_hasdata(st,2)) - flag = script_getnum(st,2) ? true : false; - pc->setmadogear(sd, flag); - - return true; -} - /// Sets the save point of the player. /// /// save "<map name>",<x>,<y> @@ -19338,8 +19297,6 @@ void script_parse_builtin(void) { BUILDIN_DEF(setmount,"?"), BUILDIN_DEF(checkmount,""), BUILDIN_DEF(checkwug,""), - BUILDIN_DEF_DEPRECATED(checkmadogear,""), // Deprecated 2014-10-30 [Haru] - BUILDIN_DEF_DEPRECATED(setmadogear,"?"), // Deprecated 2014-10-30 [Haru] BUILDIN_DEF2_DEPRECATED(savepoint,"save","sii"), // Deprecated 2014-11-02 [Haru] BUILDIN_DEF(savepoint,"sii"), BUILDIN_DEF(gettimetick,"i"), |