summaryrefslogtreecommitdiff
path: root/src/map/npc.cpp
diff options
context:
space:
mode:
authormekolat <mekolat@gmail.com>2015-04-05 17:42:57 -0400
committermekolat <mekolat@gmail.com>2015-04-05 17:42:57 -0400
commit6386c30dc06a5fdf739ed26abe4c706a8eddb62e (patch)
tree91de4b705dcea5119840f97f2097a8e113cf6f30 /src/map/npc.cpp
parent6f4699ff0c6400a2adc5e4008b2e289737f4a303 (diff)
downloadtmwa-6386c30dc06a5fdf739ed26abe4c706a8eddb62e.tar.gz
tmwa-6386c30dc06a5fdf739ed26abe4c706a8eddb62e.tar.bz2
tmwa-6386c30dc06a5fdf739ed26abe4c706a8eddb62e.tar.xz
tmwa-6386c30dc06a5fdf739ed26abe4c706a8eddb62e.zip
remove deprecated cmdothernpc
Diffstat (limited to 'src/map/npc.cpp')
-rw-r--r--src/map/npc.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/map/npc.cpp b/src/map/npc.cpp
index 3320039..56c33cc 100644
--- a/src/map/npc.cpp
+++ b/src/map/npc.cpp
@@ -482,27 +482,6 @@ int npc_event(dumb_ptr<map_session_data> sd, NpcEvent eventname,
return 0;
}
-static
-void npc_command_sub(NpcEvent key, struct event_data *ev, NpcName npcname, XString command)
-{
- if (ev->nd->name == npcname
- && key.label.startswith("OnCommand"_s))
- {
- XString temp = key.label.xslice_t(9);
-
- if (command == temp)
- run_script(ScriptPointer(borrow(*ev->nd->scr.script), ev->pos), BlockId(), ev->nd->bl_id);
- }
-}
-
-int npc_command(dumb_ptr<map_session_data>, NpcName npcname, XString command)
-{
- for (auto& pair : ev_db)
- npc_command_sub(pair.first, &pair.second, npcname, command);
-
- return 0;
-}
-
/*==========================================
* 接触型のNPC処理
*------------------------------------------