yea its set for just one core could just be the operating system being 64 bit being stupid....why Dell had to make it 64 bit is beyond me since none of the hardware in the box requires 64bit... i prefer 32 bit but i dont have a 32 bit win 7 disk >.< or id switch it........but anyway
Edit: For clarifaction it is just toolset that being stupid not the game itself
yes i fixed that line of the script but then toolset regeted your freshly recopied script...... i ended up making a home brew not tested yet but compiles fine its for a Inn in the module im working on. cuz i wanted to have a cool inn with live staff on shift and the staff getting paid when theyre shift is over. let me know what you think and any changes you would suggest?
void main()
{
object oDoor = GetObjectByTag("staffroom");
object oTarget;
int Pay;
if(GetTimeMinute() == 1 && GetTimeSecond() == 1 && GetTimeMillisecond() == 1)
{
AssignCommand(oDoor, ActionSpeakString("Sea Serpent Inn Staff Change If It Has Been 8 Hours Since The Current Staff Have Been On Shift", TALKVOLUME_SHOUT));
//pay the hourly employees
//waitress
oTarget = (GetObjectByTag("Prish"));
Pay = (GetLocalInt(oTarget, "Rate") + GetLocalInt(oTarget, "Bonus"));
GiveGoldToCreature(oTarget, Pay);
//security guard
oTarget = (GetObjectByTag("Keli"));
Pay = (GetLocalInt(oTarget, "Rate") + GetLocalInt(oTarget, "Bonus"));
GiveGoldToCreature(oTarget, Pay);
switch (GetTimeHour())
{
//3rd to 1st shift
case 8:
AssignCommand(oDoor, ActionOpenDoor(oDoor));
AssignCommand(oDoor, ActionSpeakString("Sea Serpent Inn Staff Change It Is Now Time For 3rd Shift To Leave And 1st Shift To Take Over", TALKVOLUME_SHOUT));
//Start Staff change
oTarget = GetObjectByTag("CelawynFears");//Shift ending Room Renter
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("NW_STOREBAR01")));
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("CelawynFearsWP")));
oTarget = GetObjectByTag("DalloDian");//Next shift room renter
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("room_renter")));
oTarget = GetObjectByTag("SiliaBlake");//Shift ending Bar Tender
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("SiliaBlakeWP")));
oTarget = GetObjectByTag("ElvawenAmolyan");//Next shift Bar Tender
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("bar_tender")));
//End Staff Change
DelayCommand(10.0, AssignCommand(oDoor, ActionCloseDoor(oDoor)));
//NPC PAY
oTarget = GetObjectByTag("CelawynFears");//room renter
Pay = (GetLocalInt(oTarget, "Rate") + GetLocalInt(oTarget, "Bonus")) * 8;
GiveGoldToCreature(oTarget, Pay);
oTarget = GetObjectByTag("SiliaBlake");//bar tender
Pay = (GetLocalInt(oTarget, "Rate") + GetLocalInt(oTarget, "Bonus")) * 8;
GiveGoldToCreature(oTarget, Pay);
break;
//1st to 2nd shift
case 16:
AssignCommand(oDoor, ActionOpenDoor(oDoor));
AssignCommand(oDoor, ActionSpeakString("Sea Serpent Inn Staff Change It Is Now Time For 1st Shift To Leave And 2nd Shift To Take Over", TALKVOLUME_SHOUT));
//Start Staff change
oTarget = GetObjectByTag("DalloDian");//Shift ending Room Renter
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("NW_STOREBAR01")));
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("DallosBed")));
oTarget = GetObjectByTag("TeroLane");//Next shift room renter
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("room_renter")));
oTarget = GetObjectByTag("ElvawenAmolyan");//Shift ending Bar Tender
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("ElvawensBed")));
oTarget = GetObjectByTag("CarenaMendt");//Next shift Bar Tender
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("bar_tender")));
//End Staff Change
DelayCommand(10.0, AssignCommand(oDoor, ActionCloseDoor(oDoor)));
//NPC PAY
oTarget = GetObjectByTag("DalloDian");//room renter
Pay = (GetLocalInt(oTarget, "Rate") + GetLocalInt(oTarget, "Bonus")) * 8;
GiveGoldToCreature(oTarget, Pay);
oTarget = GetObjectByTag("ElvawenAmolyan");//bar tender
Pay = (GetLocalInt(oTarget, "Rate") + GetLocalInt(oTarget, "Bonus")) * 8;
GiveGoldToCreature(oTarget, Pay);
break;
//2nd to 3rd shift
case 0:
AssignCommand(oDoor, ActionOpenDoor(oDoor));
AssignCommand(oDoor, ActionSpeakString("Sea Serpent Inn Staff Change It Is Now Time For 2nd Shift To Leave And 3rd Shift To Take Over", TALKVOLUME_SHOUT));
//Start Staff change
oTarget = GetObjectByTag("TeroLane");//Shift ending Room Renter
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("NW_STOREBAR01")));
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("TeroLaneWP")));
oTarget = GetObjectByTag("CelawynFears");//Next shift room renter
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("room_renter")));
oTarget = GetObjectByTag("CarenaMendt");//Shift ending Bar Tender
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("CarenaMendtWP")));
oTarget = GetObjectByTag("SiliaBlake");//Next shift Bar Tender
AssignCommand(oTarget, ActionForceMoveToObject(GetObjectByTag("bar_tender")));
//End Staff Change
DelayCommand(10.0, AssignCommand(oDoor, ActionCloseDoor(oDoor)));
//NPC PAY
oTarget = GetObjectByTag("TeroLane");//room renter
Pay = (GetLocalInt(oTarget, "Rate") + GetLocalInt(oTarget, "Bonus")) * 8;
GiveGoldToCreature(oTarget, Pay);
oTarget = GetObjectByTag("CarenaMendt");//bar tender
Pay = (GetLocalInt(oTarget, "Rate") + GetLocalInt(oTarget, "Bonus")) * 8;
GiveGoldToCreature(oTarget, Pay);
break;
default:
// do nothing
break;
}//end switch
}//end if
}//end main
Modifié par Ryuhi2000, 05 avril 2011 - 03:28 .