summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-12-20 20:27:15 +0100
committerHaru <haru@dotalux.com>2014-12-23 09:02:37 +0100
commit212949b352ccfcc271bf5ec9403107b04ef7c254 (patch)
tree7d24e73eccd716c46993acec948850d22452aa12 /src/map/script.c
parentcaeeb078b259ff7c6842e042b05d4b4cc8141203 (diff)
downloadhercules-212949b352ccfcc271bf5ec9403107b04ef7c254.tar.gz
hercules-212949b352ccfcc271bf5ec9403107b04ef7c254.tar.bz2
hercules-212949b352ccfcc271bf5ec9403107b04ef7c254.tar.xz
hercules-212949b352ccfcc271bf5ec9403107b04ef7c254.zip
Removed deprecated commands setriding, checkriding
Follow-up to c6f102e Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/map/script.c b/src/map/script.c
index be73fe5b2..2f82a7f13 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -8623,49 +8623,6 @@ BUILDIN(setfalcon)
return true;
}
-/// Returns if the player is riding.
-///
-/// checkriding() -> <bool>
-///
-/// @author Valaris
-BUILDIN(checkriding)
-{
- TBL_PC* sd;
-
- sd = script->rid2sd(st);
- if (sd == NULL)
- return true; // no player attached, report source
-
- if (pc_hasmount(sd))
- script_pushint(st, 1);
- else
- script_pushint(st, 0);
-
- return true;
-}
-
-/// Sets if the player is riding.
-/// <flag> defaults to 1
-///
-/// setriding <flag>;
-/// setriding;
-BUILDIN(setriding)
-{
- int flag = 1;
- 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);
- pc->setridingpeco(sd, flag ? true : false);
-
- return true;
-}
-
enum setmount_type {
SETMOUNT_TYPE_AUTODETECT = -1,
SETMOUNT_TYPE_NONE = 0,
@@ -19378,8 +19335,6 @@ void script_parse_builtin(void) {
BUILDIN_DEF(checkcart,""),
BUILDIN_DEF(setfalcon,"?"),
BUILDIN_DEF(checkfalcon,""),
- BUILDIN_DEF_DEPRECATED(setriding,"?"), // Deprecated 2014-10-30 [Haru]
- BUILDIN_DEF_DEPRECATED(checkriding,""), // Deprecated 2014-10-30 [Haru]
BUILDIN_DEF(setmount,"?"),
BUILDIN_DEF(checkmount,""),
BUILDIN_DEF(checkwug,""),