Jump to content

Home

Script won't compile.. Little help?


dead1486

Recommended Posts

Here is the script

void main()
{
   int nScriptNumber = GetScriptParameter( 1 );
   object oWho;
   switch nScriptNumber {
   case 0:
     oWho = GetObjectByTag ("Atton");
     break;
   case 1:
     oWho = GetObjectByTag ("BaoDur");
     break;
   case 4:
     oWho = GetObjectByTag ("Handmaiden");
     break;
   case 7:
     oWho = GetObjectByTag ("Mira");
     break;
   case 11:
     oWho = GetObjectByTag ("Disciple");
     break;
   default:
     return;
   }
   AddMultiClass (CLASS_TYPE_JEDICONSULAR, oWho);
   CreateItemOnObject("g_w_lghtsbr04", oWho);  // on the char not the main PC
}

 

Anyone have any insights?

 

Oh and it says something about nScriptNumber when it won't compile

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...