Jump to content

Script hangs on #include “utility_h”


EMarshall

Recommended Posts

been trying to get past this for a couple days an all the tuts have been of no help. I have tried other peoples clean scripts and the like an no matter what I hang at (line 2 ) #include “utility_h”........

 

 

// All module events

#include “utility_h”

#include “wrappers_h”

#include “events_h”

void main()

{

event ev = GetCurrentEvent();

int nEvent = GetEventType(ev);

Log_Events(“”, ev);

switch (nEvent)

{

 

case EVENT_TYPE_MODULE_LOAD:

{

 

int iModuleLoaded = GetLocalInt(OBJECT_SELF, “_gorgon_items”);

if (iModuleLoaded == 1)

break;

 

object oPlayer = GetHero();

 

 

int iItemCount = CountItemsByTag(oPlayer, “pk_gorgon_armor_00”);

 

if (iItemCount == 0)

UT_AddItemToInventory(R”pk_gorgon_armor_00.uti”,1);

 

iItemCount = CountItemsByTag(oPlayer, “pk_gorgon_boots_00”);

 

if (iItemCount == 0)

UT_AddItemToInventory(R”pk_gorgon_boots_00.uti”,1);

 

iItemCount = CountItemsByTag(oPlayer, “pk_gorgon_gauntlets_00”);

 

if (iItemCount == 0)

UT_AddItemToInventory(R”pk_gorgon_gauntlets_00.uti”,1);

 

iItemCount = CountItemsByTag(oPlayer, “pk_gorgon_helm_00”);

 

if (iItemCount == 0)

UT_AddItemToInventory(R”pk_gorgon_helm_00.uti”,1);

 

iItemCount = CountItemsByTag(oPlayer, “pk_gorgon_shield_00”);

 

if (iItemCount == 0)

UT_AddItemToInventory(R”pk_gorgon_shield_00.uti”,1);

 

iItemCount = CountItemsByTag(oPlayer, “pk_gorgon_longsword_00”);

 

if (iItemCount == 0)

UT_AddItemToInventory(R”pk_gorgon_longsword_00.uti”,1);

 

iItemCount = CountItemsByTag(oPlayer, “pk_gorgon_headcleaver_00”);

 

if (iItemCount == 0)

UT_AddItemToInventory(R”pk_gorgon_headcleaver_00.uti”,1);

 

SetLocalInt(OBJECT_SELF, “_gorgon_items”, 1);

break;

}

default:

{

break;

}

}

}

 

 

 

Anyone see a problem here ??

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...