summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-27 12:45:12 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-27 12:45:12 +0000
commit4c0b6e20600032b95b6ff4b0add236f44daabb3c (patch)
treef72f7cd308b68f43c0e116e1fc155af481ed8a24 /src/map/atcommand.c
parent842984c9a12ca4d641314d3f1f5651c3a77d3f61 (diff)
downloadhercules-4c0b6e20600032b95b6ff4b0add236f44daabb3c.tar.gz
hercules-4c0b6e20600032b95b6ff4b0add236f44daabb3c.tar.bz2
hercules-4c0b6e20600032b95b6ff4b0add236f44daabb3c.tar.xz
hercules-4c0b6e20600032b95b6ff4b0add236f44daabb3c.zip
Removed 'petid', a command from r284 to look up pet ids by name.
Cleaned up some pet-related code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11586 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 045448888..8a23c9d05 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -201,7 +201,6 @@ ACMD_FUNC(uptime); // by MC Cameri
ACMD_FUNC(changesex); // by MC Cameri
ACMD_FUNC(mute); // celest
ACMD_FUNC(refresh); // by MC Cameri
-ACMD_FUNC(petid); // by MC Cameri
ACMD_FUNC(identify); // by MC Cameri
ACMD_FUNC(gmotd); // Added by MC Cameri, created by davidsiaw
ACMD_FUNC(misceffect); // by MC Cameri
@@ -486,7 +485,6 @@ static AtCommandInfo atcommand_info[] = {
{ AtCommand_Mute, "@mute", 80, atcommand_mute }, // [celest]
{ AtCommand_WhoZeny, "@whozeny", 20, atcommand_whozeny }, // [Valaris]
{ AtCommand_Refresh, "@refresh", 1, atcommand_refresh }, // by MC Cameri
- { AtCommand_PetId, "@petid", 40, atcommand_petid }, // by MC Cameri
{ AtCommand_Identify, "@identify", 40, atcommand_identify }, // by MC Cameri
{ AtCommand_Gmotd, "@gmotd", 20, atcommand_gmotd }, // Added by MC Cameri, created by davidsiaw
{ AtCommand_MiscEffect, "@misceffect", 50, atcommand_misceffect }, // by MC Cameri
@@ -7592,44 +7590,6 @@ int atcommand_refresh(const int fd, struct map_session_data* sd, const char* com
}
/*==========================================
- * @petid <part of pet name>
- * => Displays a list of matching pets.
- *------------------------------------------*/
-int atcommand_petid(const int fd, struct map_session_data* sd, const char* command, const char* message)
-{
- char searchtext[100];
- char temp0[100];
- int cnt = 0, i = 0;
-
- nullpo_retr(-1, sd);
-
- if (!message || !*message || sscanf(message, "%99s", searchtext) < 1)
- {
- clif_displaymessage(fd, "Please, enter a pet name (usage: @petid <part of pet name>).");
- return -1;
- }
-
- snprintf(temp0, sizeof(temp0), "First %i search results for: %s", MAX_SEARCH, searchtext);
- clif_displaymessage(fd,temp0);
-
- for (i = 0; i < MAX_PET_DB; i++)
- {
- if (stristr(pet_db[i].name, searchtext) || stristr(pet_db[i].jname, searchtext))
- {
- cnt++;
- if (cnt <= MAX_SEARCH) { // limits the number of search results
- snprintf(temp0, sizeof(temp0), "ID: %i -- Name: %s", pet_db[i].class_, pet_db[i].jname);
- clif_displaymessage(fd, temp0);
- }
- }
- }
-
- snprintf(temp0, sizeof(temp0), "%i pets have '%s' in their name.", cnt, searchtext);
- clif_displaymessage(fd, temp0);
- return 0;
-}
-
-/*==========================================
* @identify
* => GM's magnifier.
*------------------------------------------*/