aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/interface/Scripts
diff options
context:
space:
mode:
authorAnubisss <none@none>2009-05-23 20:48:32 +0200
committerAnubisss <none@none>2009-05-23 20:48:32 +0200
commit0b8e6ee15a1137d25aaa3071dc5a1410e49faec4 (patch)
treece3a9434d479215874325f31c358232577acf6d6 /src/bindings/interface/Scripts
parent9fda5c57e18ceb130850b55411d40c44bbb3ad81 (diff)
*Some changes in bindings/interface.
*Fix the bug that You build it without Trinity Script the emu try to load the libtrinityscript lib instead of libtrinityinterface. --HG-- branch : trunk
Diffstat (limited to 'src/bindings/interface/Scripts')
-rw-r--r--src/bindings/interface/Scripts/sc_default.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/bindings/interface/Scripts/sc_default.cpp b/src/bindings/interface/Scripts/sc_default.cpp
index 495de39c270..88b1414ce05 100644
--- a/src/bindings/interface/Scripts/sc_default.cpp
+++ b/src/bindings/interface/Scripts/sc_default.cpp
@@ -35,6 +35,16 @@ bool GossipSelectWithCode_default( Player* /*player*/, Creature* /*_Creature*/,
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;
@@ -105,6 +115,8 @@ void AddSC_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;
@@ -117,6 +129,6 @@ void AddSC_default()
newscript->pGOQuestAccept = &GOQuestAccept_default;
newscript->pGOChooseReward = &GOChooseReward_default;
- m_scripts[nrscripts++] = newscript;
+ newscript->RegisterSelf();
}