Anyways, I'm having a slight problem with adding custom items through add-ins. I've followed werikk's tutorial, but I seem to have messed the script up. If you guys could look it over and tell me what's wrong, I'll worship your masterful hands for centuries.
The script:
#include "utility_h"
#include "plt_my_custom_legends"
void main()
{
if ( WR_GetPlotFlag( PLT_MY_CUSTOM_LEGENDS, CUSTOM_PLOT_LEGENDS_FLAG ) == TRUE
return;
)
event ev = GetCurrentEvent();
int nEventType = GetEventType(ev);
switch ( nEventType )
{
case EVENT_TYPE_MODULE_LOAD:
{
UT_AddItemToInventory(R"walker_boot.uti", 1);
UT_AddItemToInventory(R"walker_glove.uti", 1);
UT_AddItemToInventory(R"walker_robe.uti", 1);
UT_AddItemToInventory(R"walker_sword.uti", 1);
WR_SetPlotFlag( PLT_MY_CUSTOM_LEGENDS, CUSTOM_PLOT_LEGENDS_FLAG, TRUE
);
break;
}
default:
break;
}
}
Modifié par EthrenDiak, 10 décembre 2009 - 10:14 .





Retour en haut






