From f49984841dc39c63e7a2befd2cef4f88f60cbade Mon Sep 17 00:00:00 2001 From: gumi Date: Mon, 5 Jun 2017 11:24:45 -0400 Subject: remove isstr --- src/emap/init.c | 1 - src/emap/script_buildins.c | 15 --------------- src/emap/script_buildins.h | 1 - 3 files changed, 17 deletions(-) diff --git a/src/emap/init.c b/src/emap/init.c index d46254d..835d8b3 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -165,7 +165,6 @@ HPExport void plugin_init (void) addScriptCommand("failedremovecardsindex", "ii", failedRemoveCardsIndex); addScriptCommand("getcardbyindex", "ii", getCardByIndex); addScriptCommand("removecardbyindex", "ii", removeCardByIndex); - addScriptCommand("isstr", "v", isStr); addScriptCommand("setbgteam", "ii", setBgTeam); addScriptCommand("checknpccell", "siii", checkNpcCell); addScriptCommand("setcells", "siiiiis", setCells); diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index ae705ce..0c125c2 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -1438,21 +1438,6 @@ BUILDIN(removeCardByIndex) return true; } -// return paramater type -// 0 - int -// 1 - string -// 2 - other -BUILDIN(isStr) -{ - if (script_isinttype(st, 2)) - script_pushint(st, 0); - else if (script_isstringtype(st, 2)) - script_pushint(st, 1); - else - script_pushint(st, 2); - return true; -} - BUILDIN(npcSit) { TBL_NPC *nd = NULL; diff --git a/src/emap/script_buildins.h b/src/emap/script_buildins.h index 374e1eb..aebdb49 100644 --- a/src/emap/script_buildins.h +++ b/src/emap/script_buildins.h @@ -54,7 +54,6 @@ BUILDIN(successRemoveCardsIndex); BUILDIN(failedRemoveCardsIndex); BUILDIN(getCardByIndex); BUILDIN(removeCardByIndex); -BUILDIN(isStr); BUILDIN(npcSit); BUILDIN(npcStand); BUILDIN(npcWalkTo); -- cgit v1.2.3-70-g09d2