//////////////////////////////////////////////////////////////////////////////// // do_darkartifact - Process request for dark artifact //////////////////////////////////////////////////////////////////////////////// #include "rtsh_multiplay" void main() { object oPC=GetPCSpeaker(); string sID=GetLocalString(oPC,"sTeamID"); object oProxy; object oNew; object oTarget=GetLocalObject(oPC,"oTarget"); int nParm=GetLocalInt(oPC,"nParm"); int nCost=0; string sRes; int nType; if (nParm==1) { sRes="darkward25"; nType=1; // placeable nCost=25; } else if (nParm==2) { sRes="darkward50"; nType=1; // placeable nCost=50; } else if (nParm==3) { sRes="darkward100"; nType=1; // placeable nCost=100; } else if (nParm==4) { sRes="darkshadow"; nType=2; // creature nCost=10; } else if (nParm==5) { sRes="darkshfiend"; nType=2; // creature nCost=50; } else if (nParm==6) { sRes="darknight"; nType=2; // creature nCost=500; } if (nType==1) { // place placeable } // place placeable else if (nType==2) { // place creature } // place creature }