From 160e35222c7304896b66bdcecdcdd5330548972e Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 20 Dec 2014 20:29:06 +0100 Subject: Removed deprecated commands setmadogear, checkmadogear Follow-up to b3aef69 Signed-off-by: Haru --- doc/script_commands.txt | 19 ------------------- src/map/script.c | 43 ------------------------------------------- 2 files changed, 62 deletions(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 2165d8a8f..dcb64ffb8 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3933,25 +3933,6 @@ riding a dragon and 0 if they aren't. --------------------------------------- -*setmadogear {}; -*checkmadogear() - - @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ - @ /!\ This command is deprecated @ - @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ - -This command is deprecated and it should not be used in new scripts, as it -is scheduled to be removed on or after November 30th, 2014. Please consider -using setmount and checkmount() instead. - -If is 0 this command will remove the mount from the character. -Otherwise it gives the invoking character a Mado (if they are a Mechanic). - -The accompanying function will return 1 if the invoking character has a -Mado and 0 if they don't. - ---------------------------------------- - *setcashmount; *hascashmount() 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() -> -/// -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. -/// defaults to 1 -/// -/// setmadogear ; -/// 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 "",, @@ -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"), -- cgit v1.2.3-60-g2f50