I got this script sample straight out of the WIKI. Just so you know EVENT_MODULE_LOAD works just fine. So I know the module does work.
#include "utility_h"
#include "wrappers_h"
#include "events_h"
void main()
{
event ev = GetCurrentEvent();
int nEventType = GetEventType(ev);
string sDebug;
object oPC = GetHero();
object oParty = GetParty(oPC);
int nEventHandled = FALSE;
switch(nEventType)
{
case EVENT_TYPE_UNEQUIP:
{
PrintToLog("WTF");
nEventHandled = TRUE; //set this if no further action is required for this event
break;
}
}
if (!nEventHandled) //If this event wasn't handled by this script, let the core script try
{
HandleEvent(ev, RESOURCE_SCRIPT_RULES_CORE);
}
}
Modifié par JackFuzz, 16 janvier 2010 - 10:51 .





Retour en haut






