aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/interface
diff options
context:
space:
mode:
authorRat <none@none>2010-01-19 11:36:05 +0100
committerRat <none@none>2010-01-19 11:36:05 +0100
commit0cc053ea4d42ce405a915857f75ee00f0f65666b (patch)
tree7c25955ee5db618deee963f515ba061fbb1e1e8c /src/bindings/interface
parentf5dea61b66a616110cfc82ff640ec448b1efa702 (diff)
*Integrate Script system to Core
-added ScriptMgr for loading scripts -removed bindings -moved script system to src/game -moved scripts to src/scripts -VC project files updated -cmakes updated (not 100% done yet) NOTE to Devs: -file locations changed -precompiled renamed to ScriptedPch -ecsort_ai renamed to ScriptedEscortAI -follower_ai renamed to ScriptedFollowerAI -guard_ai renamed to ScriptedGuardAI -simple_ai renamed to ScriptedSimpleAI -sc_creature renamed to ScriptedCreature -sc_gossip renamed to ScriptedGossip -sc_instance renamed to ScriptedInstance *use the new headers in scripts, thank you NOTE to ALL: cmake not fully tested, please report any errors with it could make creashes, incompability USE AT YOUR OWN RISK before further tests!! --HG-- branch : trunk
Diffstat (limited to 'src/bindings/interface')
-rw-r--r--src/bindings/interface/CMakeLists.txt20
-rw-r--r--src/bindings/interface/Readme.txt32
-rw-r--r--src/bindings/interface/ScriptMgr.cpp452
-rw-r--r--src/bindings/interface/ScriptMgr.h177
-rw-r--r--src/bindings/interface/Scripts/on_events.cpp108
-rw-r--r--src/bindings/interface/Scripts/sc_default.cpp152
-rw-r--r--src/bindings/interface/Scripts/sc_defines.cpp155
-rw-r--r--src/bindings/interface/Scripts/sc_defines.h99
-rw-r--r--src/bindings/interface/config.h34
-rw-r--r--src/bindings/interface/system.cpp28
10 files changed, 0 insertions, 1257 deletions
diff --git a/src/bindings/interface/CMakeLists.txt b/src/bindings/interface/CMakeLists.txt
deleted file mode 100644
index 47159df79cc..00000000000
--- a/src/bindings/interface/CMakeLists.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-
-########### next target ###############
-
-SET(trinityinterface_LIB_SRCS
- ScriptMgr.cpp
- ScriptMgr.h
- config.h
- system.cpp
- Scripts/sc_default.cpp
- Scripts/sc_defines.cpp
- Scripts/sc_defines.h
- Scripts/on_events.cpp
-)
-
-add_library(trinityinterface SHARED ${trinityinterface_LIB_SRCS})
-
-target_link_libraries(trinityinterface)
-
-set_target_properties(trinityinterface PROPERTIES VERSION 4.2.0 SOVERSION 4)
-install(TARGETS trinityinterface DESTINATION lib)
diff --git a/src/bindings/interface/Readme.txt b/src/bindings/interface/Readme.txt
deleted file mode 100644
index 821f2367be4..00000000000
--- a/src/bindings/interface/Readme.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-
-** HOW TO SCRIPT IN C++ **
-
-1 - create a file myscript.cpp in scripts folder.
-2 - copy the content of script_default.cpp, it as the structure on how the scripting fuctions are organized.
- dont forget to change the name of fuctions, like GossipHello_default to GossipHello_myscript.
-
-3 - in fuction AddSC_default change to AddSC_myscript.
-4 - newscript->Name="default"; change the string to "myscript" this name is the one to be called from the db
-5 - dont forget to change the name in here to newscript->pGossipHello = &GossipHello_default; this is where the scripted fuctions are stored.
-6 - and last thing is in ScriptMgr.cpp
-
-add your AddSC_myscript in here
-
-// -- Scripts to be added --
-extern void AddSC_default();
-// -------------------
-
-and here
-
-// -- Inicialize the Scripts to be Added --
- AddSC_default();
- // ----------------------------------------
-
-now start using the player fuctions to script ;)
-see the sc_defines.h for some fuctions to use.
-
-hope it helps, any question use our forum.
-
-copy libscript.so and libscript.a to your server/lib path
-
-made by: mmcs.
diff --git a/src/bindings/interface/ScriptMgr.cpp b/src/bindings/interface/ScriptMgr.cpp
deleted file mode 100644
index 25f674f3b72..00000000000
--- a/src/bindings/interface/ScriptMgr.cpp
+++ /dev/null
@@ -1,452 +0,0 @@
-/*
- * Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/>
- *
- * Thanks to the original authors: MaNGOS <http://getmangos.com/>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "config.h"
-#include "ScriptMgr.h"
-#include "GossipDef.h"
-#include "GameObject.h"
-#include "Player.h"
-#include "Map.h"
-#include "ObjectMgr.h"
-
-int num_sc_scripts;
-Script *m_scripts[MAX_SCRIPTS];
-
-// -- Scripts to be added --
-extern void AddSC_default();
-// -------------------
-
-TRINITY_DLL_EXPORT
-void ScriptsFree()
-{ // Free resources before library unload
- for(int i = 0; i < num_sc_scripts; i++)
- delete m_scripts[i];
-
- num_sc_scripts = 0;
-}
-
-TRINITY_DLL_EXPORT
-void ScriptsInit(char const* cfg_file = "trinitycore.conf")
-{
- num_sc_scripts = 0;
- for(int i=0;i<MAX_SCRIPTS;i++)
- m_scripts[i]=NULL;
-
- // -- Inicialize the Scripts to be Added --
- AddSC_default();
- // ----------------------------------------
-
-}
-
-Script* GetScriptByName(std::string Name)
-{
- if(Name.empty())
- return NULL;
- for(int i=0;i<MAX_SCRIPTS;i++)
- {
- if( m_scripts[i] && m_scripts[i]->Name == Name )
- return m_scripts[i];
- }
- return NULL;
-}
-
-//*********************************
-//*** Functions used internally ***
-
-void Script::RegisterSelf()
-{
- int id = GetScriptId(Name.c_str());
- if(id)
- {
- m_scripts[id] = this;
- ++num_sc_scripts;
- }
-}
-
-//********************************
-//*** Functions to be Exported ***
-
-TRINITY_DLL_EXPORT
-void OnLogin(Player *pPlayer)
-{
- Script *tmpscript = m_scripts[GetScriptId("scripted_on_events")];
- if (!tmpscript || !tmpscript->pOnLogin) return;
- tmpscript->pOnLogin(pPlayer);
-}
-
-TRINITY_DLL_EXPORT
-void OnLogout(Player *pPlayer)
-{
- Script *tmpscript = m_scripts[GetScriptId("scripted_on_events")];
- if (!tmpscript || !tmpscript->pOnLogout) return;
- tmpscript->pOnLogout(pPlayer);
-}
-
-TRINITY_DLL_EXPORT
-void OnPVPKill(Player *killer, Player *killed)
-{
- Script *tmpscript = m_scripts[GetScriptId("scripted_on_events")];
- if (!tmpscript || !tmpscript->pOnPVPKill) return;
- tmpscript->pOnPVPKill(killer, killed);
-}
-
-TRINITY_DLL_EXPORT
-bool OnSpellCast (Unit *pUnitTarget, Item *pItemTarget, GameObject *pGoTarget, uint32 i, SpellEntry const *spell)
-{
- Script *tmpscript = m_scripts[GetScriptId("scripted_on_events")];
- if (!tmpscript || !tmpscript->pOnSpellCast) return true;
- return tmpscript->pOnSpellCast(pUnitTarget,pItemTarget,pGoTarget,i,spell);
-}
-
-TRINITY_DLL_EXPORT
-uint32 OnGetXP(Player *pPlayer, uint32 amount)
-{
- Script *tmpscript = m_scripts[GetScriptId("scripted_on_events")];
- if (!tmpscript || !tmpscript->pOnGetXP) return amount;
- return tmpscript->pOnGetXP(pPlayer,amount);
-}
-
-TRINITY_DLL_EXPORT
-uint32 OnGetMoney(Player *pPlayer, int32 amount)
-{
- Script *tmpscript = m_scripts[GetScriptId("scripted_on_events")];
- if (!tmpscript || !tmpscript->pOnGetMoney) return amount;
- return tmpscript->pOnGetMoney(pPlayer,amount);
-}
-
-TRINITY_DLL_EXPORT
-bool OnPlayerChat(Player *pPlayer, const char *text)
-{
- Script *tmpscript = m_scripts[GetScriptId("scripted_on_events")];
- if (!tmpscript || !tmpscript->pOnPlayerChat) return true;
- return tmpscript->pOnPlayerChat(pPlayer,text);
-}
-
-TRINITY_DLL_EXPORT
-void OnServerStartup()
-{
- Script *tmpscript = m_scripts[GetScriptId("scripted_on_events")];
- if (!tmpscript || !tmpscript->pOnServerStartup) return;
- tmpscript->pOnServerStartup();
-}
-
-TRINITY_DLL_EXPORT
-void OnServerShutdown()
-{
- Script *tmpscript = m_scripts[GetScriptId("scripted_on_events")];
- if (!tmpscript || !tmpscript->pOnServerShutdown) return;
- tmpscript->pOnServerShutdown();
-}
-
-TRINITY_DLL_EXPORT
-void OnAreaChange(Player *pPlayer, AreaTableEntry const *pArea)
-{
- Script *tmpscript = m_scripts[GetScriptId("scripted_on_events")];
- if (!tmpscript || !tmpscript->pOnAreaChange) return;
- tmpscript->pOnAreaChange(pPlayer, pArea);
-}
-
-TRINITY_DLL_EXPORT
-bool OnItemClick (Player *pPlayer, Item *pItem)
-{
- Script *tmpscript = m_scripts[GetScriptId("scripted_on_events")];
- if (!tmpscript || !tmpscript->pOnItemClick) return true;
- return tmpscript->pOnItemClick(pPlayer,pItem);
-}
-
-TRINITY_DLL_EXPORT
-bool OnItemOpen (Player *pPlayer, Item *pItem)
-{
- Script *tmpscript = m_scripts[GetScriptId("scripted_on_events")];
- if (!tmpscript || !tmpscript->pOnItemOpen) return true;
- return tmpscript->pOnItemOpen(pPlayer,pItem);
-}
-
-TRINITY_DLL_EXPORT
-bool OnGoClick (Player *pPlayer, GameObject *pGameObject)
-{
- Script *tmpscript = m_scripts[GetScriptId("scripted_on_events")];
- if (!tmpscript || !tmpscript->pOnGoClick) return true;
- return tmpscript->pOnGoClick(pPlayer,pGameObject);
-}
-
-TRINITY_DLL_EXPORT
-void OnCreatureKill (Player *pPlayer, Creature *pCreature)
-{
- Script *tmpscript = m_scripts[GetScriptId("scripted_on_events")];
- if (!tmpscript || !tmpscript->pOnCreatureKill) return;
- tmpscript->pOnCreatureKill(pPlayer,pCreature);
-}
-
-TRINITY_DLL_EXPORT
-char const* ScriptsVersion()
-{
- return "Default Trinity scripting library";
-}
-TRINITY_DLL_EXPORT
-bool GossipHello ( Player * player, Creature *_Creature )
-{
- Script *tmpscript = m_scripts[_Creature->GetScriptId()];
- if (!tmpscript || !tmpscript->pGossipHello) return false;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pGossipHello(player,_Creature);
-}
-
-TRINITY_DLL_EXPORT
-bool GossipSelect( Player *player, Creature *_Creature, uint32 sender, uint32 action )
-{
- debug_log("TSCR: Gossip selection, sender: %d, action: %d",sender, action);
-
- Script *tmpscript = m_scripts[_Creature->GetScriptId()];
- if (!tmpscript || !tmpscript->pGossipSelect) return false;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pGossipSelect(player,_Creature,sender,action);
-}
-
-TRINITY_DLL_EXPORT
-bool GossipSelectWithCode( Player *player, Creature *_Creature, uint32 sender, uint32 action, const char* sCode )
-{
- debug_log("TSCR: Gossip selection with code, sender: %d, action: %d",sender, action);
-
- Script *tmpscript = m_scripts[_Creature->GetScriptId()];
- if (!tmpscript || !tmpscript->pGossipSelectWithCode) return false;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pGossipSelectWithCode(player,_Creature,sender,action,sCode);
-}
-
-TRINITY_DLL_EXPORT
-bool GOSelect( Player *player, GameObject *_GO, uint32 sender, uint32 action )
-{
- if(!_GO)
- return false;
- debug_log("TSCR: Gossip selection, sender: %d, action: %d",sender, action);
-
- Script *tmpscript = m_scripts[_GO->GetGOInfo()->ScriptId];
- if(!tmpscript || !tmpscript->pGOSelect) return false;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pGOSelect(player,_GO,sender,action);
-}
-
-TRINITY_DLL_EXPORT
-bool GOSelectWithCode( Player *player, GameObject *_GO, uint32 sender, uint32 action, const char* sCode )
-{
- if(!_GO)
- return false;
- debug_log("TSCR: Gossip selection, sender: %d, action: %d",sender, action);
-
- Script *tmpscript = m_scripts[_GO->GetGOInfo()->ScriptId];
- if(!tmpscript || !tmpscript->pGOSelectWithCode) return false;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pGOSelectWithCode(player,_GO,sender,action,sCode);
-}
-
-TRINITY_DLL_EXPORT
-bool QuestAccept( Player *player, Creature *_Creature, Quest const *_Quest )
-{
- Script *tmpscript = m_scripts[_Creature->GetScriptId()];
- if (!tmpscript || !tmpscript->pQuestAccept) return false;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pQuestAccept(player,_Creature,_Quest);
-}
-
-TRINITY_DLL_EXPORT
-bool QuestSelect( Player *player, Creature *_Creature, Quest const *_Quest )
-{
- Script *tmpscript = m_scripts[_Creature->GetScriptId()];
- if (!tmpscript || !tmpscript->pQuestSelect) return false;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pQuestSelect(player,_Creature,_Quest);
-}
-
-TRINITY_DLL_EXPORT
-bool QuestComplete( Player *player, Creature *_Creature, Quest const *_Quest )
-{
- Script *tmpscript = m_scripts[_Creature->GetScriptId()];
- if (!tmpscript || !tmpscript->pQuestComplete) return false;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pQuestComplete(player,_Creature,_Quest);
-}
-
-TRINITY_DLL_EXPORT
-bool ChooseReward( Player *player, Creature *_Creature, Quest const *_Quest, uint32 opt )
-{
- Script *tmpscript = m_scripts[_Creature->GetScriptId()];
- if (!tmpscript || !tmpscript->pChooseReward) return false;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pChooseReward(player,_Creature,_Quest,opt);
-}
-
-TRINITY_DLL_EXPORT
-uint32 NPCDialogStatus( Player *player, Creature *_Creature )
-{
- Script *tmpscript = m_scripts[_Creature->GetScriptId()];
- if (!tmpscript || !tmpscript->pNPCDialogStatus) return 100;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pNPCDialogStatus(player,_Creature);
-}
-
-TRINITY_DLL_EXPORT
-uint32 GODialogStatus( Player *player, GameObject *_GO )
-{
- Script *tmpscript = m_scripts[_GO->GetGOInfo()->ScriptId];
- if (!tmpscript || !tmpscript->pGODialogStatus) return 100;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pGODialogStatus(player,_GO);
-}
-
-TRINITY_DLL_EXPORT
-bool ItemHello( Player *player, Item *_Item, Quest const *_Quest )
-{
- Script *tmpscript = m_scripts[_Item->GetProto()->ScriptId];
- if (!tmpscript || !tmpscript->pItemHello) return false;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pItemHello(player,_Item,_Quest);
-}
-
-TRINITY_DLL_EXPORT
-bool ItemQuestAccept( Player *player, Item *_Item, Quest const *_Quest )
-{
- Script *tmpscript = m_scripts[_Item->GetProto()->ScriptId];
- if (!tmpscript || !tmpscript->pItemQuestAccept) return false;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pItemQuestAccept(player,_Item,_Quest);
-}
-
-TRINITY_DLL_EXPORT
-bool GOHello( Player *player, GameObject *_GO )
-{
- Script *tmpscript = m_scripts[_GO->GetGOInfo()->ScriptId];
- if (!tmpscript || !tmpscript->pGOHello) return false;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pGOHello(player,_GO);
-}
-
-TRINITY_DLL_EXPORT
-bool GOQuestAccept( Player *player, GameObject *_GO, Quest const *_Quest )
-{
- Script *tmpscript = m_scripts[_GO->GetGOInfo()->ScriptId];
- if (!tmpscript || !tmpscript->pGOQuestAccept) return false;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pGOQuestAccept(player,_GO,_Quest);
-}
-
-TRINITY_DLL_EXPORT
-bool GOChooseReward( Player *player, GameObject *_GO, Quest const *_Quest, uint32 opt )
-{
- Script *tmpscript = m_scripts[_GO->GetGOInfo()->ScriptId];
- if (!tmpscript || !tmpscript->pGOChooseReward) return false;
-
- player->PlayerTalkClass->ClearMenus();
- return tmpscript->pGOChooseReward(player,_GO,_Quest,opt);
-}
-
-TRINITY_DLL_EXPORT
-bool AreaTrigger( Player *player, AreaTriggerEntry * atEntry)
-{
- Script *tmpscript = m_scripts[GetAreaTriggerScriptId(atEntry->id)];
- if (!tmpscript || !tmpscript->pAreaTrigger) return false;
-
- return tmpscript->pAreaTrigger(player, atEntry);
-}
-
-TRINITY_DLL_EXPORT
-CreatureAI* GetAI(Creature *_Creature)
-{
- Script *tmpscript = m_scripts[_Creature->GetScriptId()];
- if (!tmpscript || !tmpscript->GetAI) return NULL;
-
- return tmpscript->GetAI(_Creature);
-}
-
-TRINITY_DLL_EXPORT
-bool ItemUse( Player *player, Item* _Item, SpellCastTargets const& targets)
-{
- Script *tmpscript = m_scripts[_Item->GetProto()->ScriptId];
- if (!tmpscript || !tmpscript->pItemUse) return false;
-
- return tmpscript->pItemUse(player,_Item,targets);
-}
-
-TRINITY_DLL_EXPORT
-bool ItemExpire( Player *player, ItemPrototype const *_ItemProto)
-{
- Script *tmpscript = m_scripts[_ItemProto->ScriptId];
- if (!tmpscript || !tmpscript->pItemExpire) return true;
-
- return tmpscript->pItemExpire(player,_ItemProto);
-}
-
-TRINITY_DLL_EXPORT
-bool EffectDummyCreature(Unit *caster, uint32 spellId, uint32 effIndex, Creature *crTarget )
-{
- Script *tmpscript = m_scripts[crTarget->GetScriptId()];
-
- if (!tmpscript || !tmpscript->pEffectDummyCreature) return false;
-
- return tmpscript->pEffectDummyCreature(caster, spellId,effIndex,crTarget);
-}
-
-TRINITY_DLL_EXPORT
-bool EffectDummyGameObj(Unit *caster, uint32 spellId, uint32 effIndex, GameObject *gameObjTarget )
-{
- Script *tmpscript = m_scripts[gameObjTarget->GetGOInfo()->ScriptId];
-
- if (!tmpscript || !tmpscript->pEffectDummyGameObj) return false;
-
- return tmpscript->pEffectDummyGameObj(caster, spellId,effIndex,gameObjTarget);
-}
-
-
-TRINITY_DLL_EXPORT
-bool EffectDummyItem(Unit *caster, uint32 spellId, uint32 effIndex, Item *itemTarget )
-{
- Script *tmpscript = m_scripts[itemTarget->GetProto()->ScriptId];
-
- if (!tmpscript || !tmpscript->pEffectDummyItem) return false;
-
- return tmpscript->pEffectDummyItem(caster, spellId,effIndex,itemTarget);
-}
-
-TRINITY_DLL_EXPORT
-InstanceData* CreateInstanceData(Map *map)
-{
- if (!map->IsDungeon()) return NULL;
-
- Script *tmpscript = m_scripts[((InstanceMap*)map)->GetScriptId()];
- if (!tmpscript || !tmpscript->GetInstanceData) return NULL;
-
- return tmpscript->GetInstanceData(map);
-}
-
diff --git a/src/bindings/interface/ScriptMgr.h b/src/bindings/interface/ScriptMgr.h
deleted file mode 100644
index 172d3feddb3..00000000000
--- a/src/bindings/interface/ScriptMgr.h
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/>
- *
- * Thanks to the original authors: MaNGOS <http://getmangos.com/>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef SCRIPTMGR_H
-#define SCRIPTMGR_H
-
-//Only required includes
-#include "../../game/CreatureAI.h"
-#include "../../game/Creature.h"
-#include "../../game/InstanceData.h"
-
-class Player;
-class Creature;
-class Quest;
-class Item;
-class GameObject;
-class SpellCastTargets;
-class Map;
-
-#define MAX_SCRIPTS 1000
-
-struct Script
-{
- Script() :
- pGossipHello(NULL), pQuestAccept(NULL), pGossipSelect(NULL), pGossipSelectWithCode(NULL), pGOSelect(NULL), pGOSelectWithCode(NULL),
- pQuestSelect(NULL), pQuestComplete(NULL), pNPCDialogStatus(NULL), pGODialogStatus(NULL), pChooseReward(NULL),
- pItemHello(NULL), pGOHello(NULL), pAreaTrigger(NULL), pItemQuestAccept(NULL), pGOQuestAccept(NULL),
- pGOChooseReward(NULL), pItemUse(NULL), pItemExpire(NULL), pEffectDummyCreature(NULL), pEffectDummyGameObj(NULL),
- pEffectDummyItem(NULL), GetAI(NULL), GetInstanceData(NULL)
- {}
-
- std::string Name;
-
- //Methods to be scripted
- void (*pOnLogin )(Player*);
- void (*pOnLogout )(Player*);
- void (*pOnPVPKill )(Player*, Player*);
- bool (*pOnSpellCast )(Unit*, Item*, GameObject*, uint32, SpellEntry const*);
- uint32 (*pOnGetXP )(Player*, uint32);
- int32 (*pOnGetMoney )(Player*, int32);
- bool (*pOnPlayerChat )(Player*, const char*);
- void (*pOnServerStartup )();
- void (*pOnServerShutdown )();
- void (*pOnAreaChange )(Player*, AreaTableEntry const*);
- bool (*pOnItemClick )(Player*, Item*);
- bool (*pOnItemOpen )(Player*, Item*);
- bool (*pOnGoClick )(Player*, GameObject*);
- void (*pOnCreatureKill )(Player*, Creature*);
- bool (*pGossipHello )(Player*, Creature*);
- bool (*pQuestAccept )(Player*, Creature*, Quest const* );
- bool (*pGossipSelect )(Player*, Creature*, uint32 , uint32 );
- bool (*pGossipSelectWithCode)(Player*, Creature*, uint32 , uint32 , const char* );
- bool (*pGOSelect )(Player*, GameObject*, uint32 , uint32 );
- bool (*pGOSelectWithCode )(Player*, GameObject*, uint32 , uint32 , const char* );
- bool (*pQuestSelect )(Player*, Creature*, Quest const* );
- bool (*pQuestComplete )(Player*, Creature*, Quest const* );
- uint32 (*pNPCDialogStatus )(Player*, Creature* );
- uint32 (*pGODialogStatus )(Player*, GameObject* );
- bool (*pChooseReward )(Player*, Creature*, Quest const*, uint32 );
- bool (*pItemHello )(Player*, Item*, Quest const* );
- bool (*pGOHello )(Player*, GameObject* );
- bool (*pAreaTrigger )(Player*, AreaTriggerEntry* );
- bool (*pItemQuestAccept )(Player*, Item *, Quest const* );
- bool (*pGOQuestAccept )(Player*, GameObject*, Quest const* );
- bool (*pGOChooseReward )(Player*, GameObject*, Quest const*, uint32 );
- bool (*pItemUse )(Player*, Item*, SpellCastTargets const& );
- bool (*pItemExpire )(Player*, ItemPrototype const*);
- bool (*pEffectDummyCreature )(Unit*, uint32, uint32, Creature* );
- bool (*pEffectDummyGameObj )(Unit*, uint32, uint32, GameObject* );
- bool (*pEffectDummyItem )(Unit*, uint32, uint32, Item* );
-
- CreatureAI* (*GetAI)(Creature*);
- InstanceData* (*GetInstanceData)(Map*);
-
- void RegisterSelf();
-};
-
-class InstanceDataScript
-{
- public:
- InstanceDataScript() : GetInstanceData(NULL) {};
-
- std::string name;
- InstanceData* (*GetInstanceData)(Map *_Map);
-};
-
-#define VISIBLE_RANGE (50.0f)
-
-struct TRINITY_DLL_DECL ScriptedAI : public CreatureAI
-{
- ScriptedAI(Creature* creature):CreatureAI(creature),m_creature(creature){}
- ~ScriptedAI() {}
-
- // Called if IsVisible(Unit *who) is true at each *who move
- void MoveInLineOfSight(Unit *) {}
-
- // Called at each attack of m_creature by any victim
- void AttackStart(Unit *) {}
-
- // Called at stopping attack by any attacker
- void EnterEvadeMode();
-
- // Called at any heal cast/item used (call non implemented)
- void HealBy(Unit* /*healer*/, uint32 /*amount_healed*/) {}
-
- // Called at any Damage to any victim (before damage apply)
- void DamageDeal(Unit* /*done_to*/, uint32& /*damage*/) {}
-
- // Called at any Damage from any attacker (before damage apply)
- void DamageTaken(Unit* /*done_by*/, uint32& /*damage*/) {}
-
- // Is unit visible for MoveInLineOfSight
- bool IsVisible(Unit* who) const
- {
- return !who->HasStealthAura() && m_creature->GetDistance(who) <= VISIBLE_RANGE;
- }
-
- // Called at World update tick
- void UpdateAI(const uint32);
-
- // Called when the creature is killed
- void JustDied(Unit *){}
-
- // Called when the creature kills a unit
- void KilledUnit(Unit *){}
-
- // Called when hit by a spell
- void SpellHit(Unit *, const SpellEntry*){}
-
- Creature* m_creature;
-
- //= Some useful helpers =========================
-
- // Start attack of victim and go to him
- void DoStartAttack(Unit* victim);
-
- // Stop attack of current victim
- void DoStopAttack();
-
- // Cast spell
- void DoCast(Unit* victim, uint32 spelId)
- {
- m_creature->CastSpell(victim,spelId,true);
- }
-
- void DoCastSpell(Unit* who,SpellEntry *spellInfo)
- {
- m_creature->CastSpell(who,spellInfo,true);
- }
-
- void DoSay(char const* text, uint32 language)
- {
- m_creature->MonsterSay(text,language,0);
- }
-
- void DoGoHome();
-};
-
-#endif
-
diff --git a/src/bindings/interface/Scripts/on_events.cpp b/src/bindings/interface/Scripts/on_events.cpp
deleted file mode 100644
index bfac9b33519..00000000000
--- a/src/bindings/interface/Scripts/on_events.cpp
+++ /dev/null
@@ -1,108 +0,0 @@
-#include "sc_defines.h"
-#include <cstring>
-
-//This function is called when the player logs in (every login)
-void OnLogin(Player *pPlayer)
-{
-
-}
-
-//This function is called when the player logs out
-void OnLogout(Player *pPlayer)
-{
-
-}
-
-//This function is called when the player kills another player
-void OnPVPKill(Player *killer, Player *killed)
-{
-
-}
-
-//This function is called when a players AreaID changes
-void OnAreaChange(Player *pPlayer, AreaTableEntry const *pArea)
-{
-
-}
-
-//This is called when a player kills a creature (non pvp)
-void OnCreatureKill(Player *pPlayer, Creature *pCreature)
-{
-
-}
-
-//This function is called when a player has a money exchange
-int32 OnGetMoney(Player *pPlayer, int32 amount)
-{
- return amount;
-}
-
-//This function is called whenever a player gets XP
-uint32 OnGetXP(Player *pPlayer, uint32 amount)
-{
- return amount;
-}
-
-//This function is called when a player clicks a GO Object
-bool OnGoClick(Player *pPlayer, GameObject *pGameObject)
-{
- return true;
-}
-
-//This function is called when a player clicks and item
-bool OnItemClick(Player *pPlayer, Item *pItem)
-{
- return true;
-}
-
-//This function is called when a player opens an item (like a clam)
-bool OnItemOpen(Player *pPlayer, Item *pItem)
-{
- return true;
-}
-
-//This function is called when a player sends a chat message
-bool OnPlayerChat(Player *pPlayer, const char *text)
-{
- return true;
-}
-
-//this function is called when the server starts
-void OnServerStartup()
-{
-
-}
-//this function is called when the server shuts down
-void OnServerShutdown()
-{
-
-}
-
-//this function is called when a player casts a spell
-bool OnSpellCast(Unit *pUnitTarget, Item *pItemTarget, GameObject *pGoTarget, uint32 i, SpellEntry const *spell)
-{
- return true;
-}
-
- void AddSC_onevents()
-{
- Script *newscript;
- newscript = new Script;
- newscript->Name = "scripted_on_events";
- newscript->pOnLogin = &OnLogin;
- newscript->pOnLogout = &OnLogout;
- newscript->pOnPVPKill = &OnPVPKill;
- newscript->pOnAreaChange = &OnAreaChange;
- newscript->pOnCreatureKill = &OnCreatureKill;
- newscript->pOnGetMoney = &OnGetMoney;
- newscript->pOnGetXP = &OnGetXP;
- newscript->pOnGoClick = &OnGoClick;
- newscript->pOnItemClick = &OnItemClick;
- newscript->pOnItemOpen = &OnItemOpen;
- newscript->pOnPlayerChat = &OnPlayerChat;
- newscript->pOnServerShutdown = &OnServerShutdown;
- newscript->pOnServerStartup = &OnServerStartup;
- newscript->pOnSpellCast = &OnSpellCast;
-
- newscript->RegisterSelf();
-}
diff --git a/src/bindings/interface/Scripts/sc_default.cpp b/src/bindings/interface/Scripts/sc_default.cpp
deleted file mode 100644
index 7be3c54444d..00000000000
--- a/src/bindings/interface/Scripts/sc_default.cpp
+++ /dev/null
@@ -1,152 +0,0 @@
-/*
- * Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/>
- *
- * Thanks to the original authors: MaNGOS <http://getmangos.com/>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "sc_defines.h"
-
-bool GossipHello_default(Player* /*player*/, Creature* /*_Creature*/)
-{
- return false;
-}
-
-bool GossipSelect_default(Player* /*player*/, Creature* /*_Creature*/, uint32 /*sender*/, uint32 /*action*/ )
-{
- return false;
-}
-
-bool GossipSelectWithCode_default( Player* /*player*/, Creature* /*_Creature*/, uint32 /*sender*/, uint32 /*action*/, const char* /*sCode*/ )
-{
- return false;
-}
-
-bool GOSelect_default(Player* /*player*/, GameObject* /*_GO*/, uint32 /*sender*/, uint32 /*action*/)
-{
- return false;
-}
-
-bool GOSelectWithCode_default(Player* /*player*/, GameObject* /*_GO*/, uint32 /*sender*/, uint32 /*action*/, const char* /*sCode*/)
-{
- return false;
-}
-
-bool QuestAccept_default(Player* /*player*/, Creature* /*_Creature*/, Quest const* /*_Quest*/ )
-{
- return false;
-}
-
-bool QuestSelect_default(Player* /*player*/, Creature* /*_Creature*/, Quest const* /*_Quest*/ )
-{
- return false;
-}
-
-bool QuestComplete_default(Player* /*player*/, Creature* /*_Creature*/, Quest const* /*_Quest*/ )
-{
- return false;
-}
-
-bool ChooseReward_default(Player* /*player*/, Creature* /*_Creature*/, Quest const* /*_Quest*/, uint32 /*opt*/ )
-{
- return false;
-}
-
-uint32 NPCDialogStatus_default(Player* /*player*/, Creature* /*_Creature*/ )
-{
- return 128;
-}
-
-uint32 GODialogStatus_default(Player* /*player*/, GameObject* /*_Creature*/ )
-{
- return 128;
-}
-
-bool ItemHello_default(Player* /*player*/, Item* /*_Item*/, Quest const* /*_Quest*/ )
-{
- return false;
-}
-
-bool ItemQuestAccept_default(Player* /*player*/, Item* /*_Item*/, Quest const* /*_Quest*/ )
-{
- return false;
-}
-
-bool GOHello_default(Player* /*player*/, GameObject* /*_GO*/ )
-{
- return false;
-}
-
-bool GOQuestAccept_default(Player* /*player*/, GameObject* /*_GO*/, Quest const* /*_Quest*/ )
-{
- return false;
-}
-
-bool GOChooseReward_default(Player* /*player*/, GameObject* /*_GO*/, Quest const* /*_Quest*/, uint32 /*opt*/ )
-{
- return false;
-}
-
-bool AreaTrigger_default(Player* /*player*/, AreaTriggerEntry* /*atEntry*/ )
-{
- return false;
-}
-
-bool EffectDummyCreature_default(Unit* /*caster*/, uint32 /*spellId*/, uint32 /*effIndex*/, Creature* /*crTarget*/ )
-{
- return false;
-}
-
-bool EffectDummyGameObj_default(Unit* /*caster*/, uint32 /*spellId*/, uint32 /*effIndex*/, GameObject* /*gameObjTarget*/ )
-{
- return false;
-}
-
-bool EffectDummyItem_default(Unit* /*caster*/, uint32 /*spellId*/, uint32 /*effIndex*/, Item* /*itemTarget*/ )
-{
- return false;
-}
-
-void AddSC_default()
-{
- Script *newscript;
-
- newscript = new Script;
- newscript->Name="default";
- newscript->pGossipHello = &GossipHello_default;
- newscript->pQuestAccept = &QuestAccept_default;
- newscript->pGossipSelect = &GossipSelect_default;
- newscript->pGossipSelectWithCode = &GossipSelectWithCode_default;
- newscript->pGOSelect = &GOSelect_default;
- newscript->pGOSelectWithCode = &GOSelectWithCode_default;
- newscript->pQuestSelect = &QuestSelect_default;
- newscript->pQuestComplete = &QuestComplete_default;
- newscript->pNPCDialogStatus = &NPCDialogStatus_default;
- newscript->pGODialogStatus = &GODialogStatus_default;
- newscript->pChooseReward = &ChooseReward_default;
- newscript->pItemHello = &ItemHello_default;
- newscript->pGOHello = &GOHello_default;
- newscript->pAreaTrigger = &AreaTrigger_default;
- newscript->pItemQuestAccept = &ItemQuestAccept_default;
- newscript->pGOQuestAccept = &GOQuestAccept_default;
- newscript->pGOChooseReward = &GOChooseReward_default;
- newscript->pEffectDummyCreature = &EffectDummyCreature_default;
- newscript->pEffectDummyGameObj = &EffectDummyGameObj_default;
- newscript->pEffectDummyItem = &EffectDummyItem_default;
-
- newscript->RegisterSelf();
-}
-
diff --git a/src/bindings/interface/Scripts/sc_defines.cpp b/src/bindings/interface/Scripts/sc_defines.cpp
deleted file mode 100644
index aef952be2d7..00000000000
--- a/src/bindings/interface/Scripts/sc_defines.cpp
+++ /dev/null
@@ -1,155 +0,0 @@
-/*
- * Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/>
- *
- * Thanks to the original authors: MaNGOS <http://getmangos.com/>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "sc_defines.h"
-
-#include "../../game/Player.h"
-
-uint32 GetSkillLevel(Player *player,uint32 trskill)
-{
- // Returns the level of some tradetrskill known by player
- // Need to add missing spells
-
- uint32 spell_apprentice = 0;
- uint32 spell_journeyman = 0;
- uint32 spell_expert = 0;
- uint32 spell_artisan = 0;
- uint32 spell_master = 0;
-
- switch(trskill)
- {
- case TRADESKILL_ALCHEMY:
- spell_apprentice = 2259;
- spell_journeyman = 3101;
- spell_expert = 3464;
- spell_artisan = 11611;
- spell_master = 28596; // teached by 28597
- break;
- case TRADESKILL_BLACKSMITHING:
- spell_apprentice = 2018;
- spell_journeyman = 3100;
- spell_expert = 8768;
- spell_artisan = 11454;
- spell_master = 29844; // teached by 29845
- break;
- case TRADESKILL_COOKING:
- spell_apprentice = 2550;
- spell_journeyman = 3102;
- spell_expert = 3413;
- spell_artisan = 18260;
- spell_master = 33359; // teached by 33361
- break;
- case TRADESKILL_ENCHANTING:
- spell_apprentice = 7411;
- spell_journeyman = 7412;
- spell_expert = 7413;
- spell_artisan = 13920;
- spell_master = 28029; // teached by 28030
- break;
- case TRADESKILL_ENGINEERING:
- spell_apprentice = 4036;
- spell_journeyman = 4037;
- spell_expert = 4038;
- spell_artisan = 12656;
- spell_master = 30350; // teached by 30351
- break;
- case TRADESKILL_FIRSTAID:
- spell_apprentice = 3273;
- spell_journeyman = 3274;
- spell_expert = 7924;
- spell_artisan = 10846;
- spell_master = 27028; // teached by 27029
- break;
- case TRADESKILL_HERBALISM:
- spell_apprentice = 2372;
- spell_journeyman = 2373;
- spell_expert = 3571;
- spell_artisan = 11994;
- spell_master = 0;
- break;
- case TRADESKILL_LEATHERWORKING:
- spell_apprentice = 2108;
- spell_journeyman = 3104;
- spell_expert = 20649;
- spell_artisan = 10662;
- spell_master = 32549; // teached by 32550
- break;
- case TRADESKILL_POISONS:
- spell_apprentice = 0;
- spell_journeyman = 0;
- spell_expert = 0;
- spell_artisan = 0;
- spell_master = 0;
- break;
- case TRADESKILL_TAILORING:
- spell_apprentice = 3908;
- spell_journeyman = 3909;
- spell_expert = 3910;
- spell_artisan = 12180;
- spell_master = 26790; // teached by 26791
- break;
- case TRADESKILL_MINING:
- spell_apprentice = 2581;
- spell_journeyman = 2582;
- spell_expert = 3568;
- spell_artisan = 10249;
- spell_master = 29354; // teached by 29355
- break;
- case TRADESKILL_FISHING:
- spell_apprentice = 7733;
- spell_journeyman = 7734;
- spell_expert = 7736;
- spell_artisan = 18249;
- spell_master = 33098; // teached by 33100
- break;
- case TRADESKILL_SKINNING:
- spell_apprentice = 8615;
- spell_journeyman = 8619;
- spell_expert = 8620;
- spell_artisan = 10769;
- spell_master = 32679; // teached by 32678
- break;
- case TRADESKILL_JEWELCRAFTING:
- spell_apprentice = 25229; // teached by 25245
- spell_journeyman = 25230; // teached by 25246
- spell_expert = 28894; // teached by 28896
- spell_artisan = 28895; // teached by 28899
- spell_master = 28897; // teached by 28901
- break;
- }
-
- if (player->HasSpell(spell_master))
- return TRADESKILL_LEVEL_MASTER;
-
- if (player->HasSpell(spell_artisan))
- return TRADESKILL_LEVEL_ARTISAN;
-
- if (player->HasSpell(spell_expert))
- return TRADESKILL_LEVEL_EXPERT;
-
- if (player->HasSpell(spell_journeyman))
- return TRADESKILL_LEVEL_JOURNEYMAN;
-
- if (player->HasSpell(spell_apprentice))
- return TRADESKILL_LEVEL_APPRENTICE;
-
- return TRADESKILL_LEVEL_NONE;
-}
-
diff --git a/src/bindings/interface/Scripts/sc_defines.h b/src/bindings/interface/Scripts/sc_defines.h
deleted file mode 100644
index 119b7e27b52..00000000000
--- a/src/bindings/interface/Scripts/sc_defines.h
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/>
- *
- * Thanks to the original authors: MaNGOS <http://getmangos.com/>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef SC_DEFINES_H
-#define SC_DEFINES_H
-
-#include "../ScriptMgr.h"
-
-// Skill defines
-
-#define TRADESKILL_ALCHEMY 1
-#define TRADESKILL_BLACKSMITHING 2
-#define TRADESKILL_COOKING 3
-#define TRADESKILL_ENCHANTING 4
-#define TRADESKILL_ENGINEERING 5
-#define TRADESKILL_FIRSTAID 6
-#define TRADESKILL_HERBALISM 7
-#define TRADESKILL_LEATHERWORKING 8
-#define TRADESKILL_POISONS 9
-#define TRADESKILL_TAILORING 10
-#define TRADESKILL_MINING 11
-#define TRADESKILL_FISHING 12
-#define TRADESKILL_SKINNING 13
-#define TRADESKILL_JEWELCRAFTING 14
-
-#define TRADESKILL_LEVEL_NONE 0
-#define TRADESKILL_LEVEL_APPRENTICE 1
-#define TRADESKILL_LEVEL_JOURNEYMAN 2
-#define TRADESKILL_LEVEL_EXPERT 3
-#define TRADESKILL_LEVEL_ARTISAN 4
-#define TRADESKILL_LEVEL_MASTER 5
-
-// Gossip defines
-
-#define GOSSIP_ACTION_TRADE 1
-#define GOSSIP_ACTION_TRAIN 2
-#define GOSSIP_ACTION_TAXI 3
-#define GOSSIP_ACTION_GUILD 4
-#define GOSSIP_ACTION_BATTLE 5
-#define GOSSIP_ACTION_BANK 6
-#define GOSSIP_ACTION_INN 7
-#define GOSSIP_ACTION_HEAL 8
-#define GOSSIP_ACTION_TABARD 9
-#define GOSSIP_ACTION_AUCTION 10
-#define GOSSIP_ACTION_INN_INFO 11
-#define GOSSIP_ACTION_UNLEARN 12
-#define GOSSIP_ACTION_INFO_DEF 1000
-
-#define GOSSIP_SENDER_MAIN 1
-#define GOSSIP_SENDER_INN_INFO 2
-#define GOSSIP_SENDER_INFO 3
-#define GOSSIP_SENDER_SEC_PROFTRAIN 4
-#define GOSSIP_SENDER_SEC_CLASSTRAIN 5
-#define GOSSIP_SENDER_SEC_BATTLEINFO 6
-
-#define DEFAULT_GOSSIP_MESSAGE 0xffffff
-
-extern uint32 GetSkillLevel(Player *player,uint32 skill);
-
-// Defined functions to use with player.
-
-#define ADD_GOSSIP_ITEM(a,b,c,d,e,f) PlayerTalkClass->GetGossipMenu()->AddMenuItem(a,b,c,d,e,f)
-#define SEND_GOSSIP_MENU(a,b) PlayerTalkClass->SendGossipMenu(a,b)
-#define SEND_POI(a,b,c,d,e,f) PlayerTalkClass->SendPointOfInterest(a,b,c,d,e,f)
-#define CLOSE_GOSSIP_MENU() PlayerTalkClass->CloseGossip();
-
-#define QUEST_DIALOG_STATUS(a,b,c) GetSession()->getDialogStatus(a,b,c)
-#define SEND_QUEST_DETAILS(a,b,c) PlayerTalkClass->SendQuestDetails(a,b,c)
-#define SEND_REQUESTEDITEMS(a,b,c,d) PlayerTalkClass->SendRequestedItems(a,b,c,d)
-
-#define SEND_VENDORLIST(a) GetSession()->SendListInventory(a)
-#define SEND_TRAINERLIST(a) GetSession()->SendTrainerList(a)
-#define SEND_BANKERLIST(a) GetSession()->SendShowBank(a)
-#define SEND_TABARDLIST(a) GetSession()->SendTabardVendorActivate(a)
-#define SEND_AUCTIONLIST(a) GetSession()->SendAuctionHello(a)
-#define SEND_TAXILIST(a) GetSession()->SendTaxiStatus(a)
-#define SEND_SPRESURRECT() GetSession()->SendSpiritResurrect()
-#define GET_HONORRANK() GetHonorRank()
-
-// -----------------------------------
-#endif
-
diff --git a/src/bindings/interface/config.h b/src/bindings/interface/config.h
deleted file mode 100644
index e46f5253d66..00000000000
--- a/src/bindings/interface/config.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/>
- *
- * Thanks to the original authors: MaNGOS <http://getmangos.com/>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef CONFIG_H
-#define CONFIG_H
-#endif
-//#define WIN32
-
-#ifdef WIN32
-//#include <windows.h>
-#define TRINITY_DLL_EXPORT extern "C" __declspec(dllexport)
-#elif defined( __GNUC__ )
-#define TRINITY_DLL_EXPORT extern "C"
-#else
-#define TRINITY_DLL_EXPORT extern "C" export
-#endif
-
diff --git a/src/bindings/interface/system.cpp b/src/bindings/interface/system.cpp
deleted file mode 100644
index c513ee7eb99..00000000000
--- a/src/bindings/interface/system.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/>
- *
- * Thanks to the original authors: MaNGOS <http://getmangos.com/>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifdef WIN32
-#include <windows.h>
-BOOL APIENTRY DllMain( HANDLE /*hModule*/, DWORD /*ul_reason_for_call*/, LPVOID /*lpReserved*/)
-{
- return true;
-}
-#endif
-