gans71 Posted April 9, 2010 Share Posted April 9, 2010 How to create script for adding an Item to an existing Vendor??? Link to comment Share on other sites More sharing options...
hdhd Posted April 9, 2010 Share Posted April 9, 2010 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 More sharing options...
gans71 Posted April 10, 2010 Author Share Posted April 10, 2010 Thanks, you have very much helped me. :thumbsup: It is difficult to me to use search from for bad knowledge of English language. :wallbash: :smile: Link to comment Share on other sites More sharing options...
Recommended Posts