Jump to content

help with scripting


gans71

Recommended Posts

Here's the script:

#include "wrappers_h"
#include "plt_YOUR_PLOT"

void main()
{
 event ev = GetCurrentEvent();
 int nEventType = GetEventType(ev);

 switch (nEventType)
 {
   case EVENT_TYPE_MODULE_LOAD:
   { 
     object vendor = GetObjectByTag("store_camp_bodahn"); //camp merchant
     if (WR_GetPlotFlag(PLT_YOUR_PLOT, YOUR_FLAG) || !IsObjectValid(vendor)) return;
     CreateItemOnObject(R"your_item1.uti", vendor);
     WR_SetPlotFlag(PLT_YOUR_PLOT, YOUR_FLAG, TRUE);
   }
 }
}

 

PS: This question was already answered many times here, just use the search button. :biggrin:

Link to comment
Share on other sites

  • Recently Browsing   0 members

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