2 * Copyright (C) 2005,2006 MaNGOS <http://www.mangosproject.org/>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __SCRIPT_CALLS_H
20 #define __SCRIPT_CALLS_H
22 #include "GossipDef.h"
25 bool LoadScriptingModule(char const* libName
= "");
27 typedef void(MANGOS_IMPORT
* scriptCallScriptsInit
) ();
28 typedef void(MANGOS_IMPORT
* scriptCallScriptsFree
) ();
30 typedef bool(MANGOS_IMPORT
* scriptCallGossipHello
) (Player
*player
, Creature
*_Creature
);
31 typedef bool(MANGOS_IMPORT
* scriptCallQuestAccept
) (Player
*player
, Creature
*_Creature
, Quest
*);
32 typedef bool(MANGOS_IMPORT
* scriptCallGossipSelect
)(Player
*player
, Creature
*_Creature
, uint32 sender
34 typedef bool(MANGOS_IMPORT
* scriptCallGossipSelectWithCode
)( Player
*player
, Creature
*_Creature
,
35 uint32 sender
, uint64 action
, char* sCode
);
36 typedef bool(MANGOS_IMPORT
* scriptCallQuestSelect
)( Player
*player
, Creature
*_Creature
, Quest
* );
37 typedef bool(MANGOS_IMPORT
* scriptCallQuestComplete
)(Player
*player
, Creature
*_Creature
, Quest
*);
38 typedef uint32(MANGOS_IMPORT
* scriptCallNPCDialogStatus
)( Player
*player
, Creature
*_Creature
);
39 typedef bool(MANGOS_IMPORT
* scriptCallChooseReward
)( Player
*player
, Creature
*_Creature
, Quest
*,
41 typedef bool(MANGOS_IMPORT
* scriptCallItemHello
)( Player
*player
, Item
*, Quest
*);
42 typedef bool(MANGOS_IMPORT
* scriptCallGOHello
)( Player
*player
, GameObject
* );
43 typedef bool(MANGOS_IMPORT
* scriptCallAreaTrigger
)( Player
*player
, Quest
*, uint32 triggerID
);
45 typedef bool(MANGOS_IMPORT
* scriptCallItemQuestAccept
)(Player
*player
, Item
*, Quest
*);
46 typedef bool(MANGOS_IMPORT
* scriptCallGOQuestAccept
)(Player
*player
, GameObject
*, Quest
*);
47 typedef bool(MANGOS_IMPORT
* scriptCallGOChooseReward
)(Player
*player
, GameObject
*, Quest
*,
50 typedef CreatureAI
* (MANGOS_IMPORT
* scriptCallGetAI
) ( Creature
*_Creature
);
54 scriptCallScriptsInit ScriptsInit
;
55 scriptCallScriptsFree ScriptsFree
;
57 scriptCallGossipHello GossipHello
;
58 scriptCallGOChooseReward GOChooseReward
;
59 scriptCallQuestAccept QuestAccept
;
60 scriptCallGossipSelect GossipSelect
;
61 scriptCallGossipSelectWithCode GossipSelectWithCode
;
62 scriptCallQuestSelect QuestSelect
;
63 scriptCallQuestComplete QuestComplete
;
64 scriptCallNPCDialogStatus NPCDialogStatus
;
65 scriptCallChooseReward ChooseReward
;
66 scriptCallItemHello ItemHello
;
67 scriptCallGOHello GOHello
;
68 scriptCallAreaTrigger scriptAreaTrigger
;
69 scriptCallItemQuestAccept ItemQuestAccept
;
70 scriptCallGOQuestAccept GOQuestAccept
;
71 scriptCallGetAI GetAI
;
73 MANGOS_LIBRARY_HANDLE hScriptsLib
;
74 }_ScriptSet
,*ScriptsSet
;
76 extern ScriptsSet Script
;