From 0b8e6ee15a1137d25aaa3071dc5a1410e49faec4 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Sat, 23 May 2009 20:48:32 +0200 Subject: *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 --- src/bindings/interface/Scripts/sc_default.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/bindings/interface/Scripts') 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(); } -- cgit v1.2.3