Added missing crafting maps, removed unnecessary maps, changed a few miscellaneous things.
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
///////////////////////////////////////
|
|
// Door Script - Allows on Mages to enter
|
|
//
|
|
////////////////////////////////////////
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
DelayCommand(30.0, ActionCloseDoor(OBJECT_SELF));
|
|
|
|
object oClicker = GetClickingObject();
|
|
object oTarget = GetTransitionTarget(OBJECT_SELF);
|
|
location lLoc = GetLocation(oTarget);
|
|
location lLoc2 = GetLocation(GetObjectByTag("WP_Throw_out"));
|
|
int oClass_1 = GetClassByPosition(1, oClicker);
|
|
int oClass_2 = GetClassByPosition(2, oClicker);
|
|
int oClass_3 = GetClassByPosition(3, oClicker);
|
|
int iPassed = 0;
|
|
|
|
if ((oClass_1==CLASS_TYPE_BARD)||(oClass_1==CLASS_TYPE_SORCERER))
|
|
iPassed = 1 ;
|
|
if((iPassed == 0) && (oClass_1==CLASS_TYPE_WIZARD))
|
|
iPassed = 1 ;
|
|
if ((oClass_2==CLASS_TYPE_BARD)||(oClass_2==CLASS_TYPE_SORCERER))
|
|
iPassed = 1 ;
|
|
if((iPassed == 0) && (oClass_2==CLASS_TYPE_WIZARD))
|
|
iPassed = 1 ;
|
|
if ((oClass_3==CLASS_TYPE_BARD)||(oClass_3==CLASS_TYPE_SORCERER))
|
|
iPassed = 1 ;
|
|
if((iPassed == 0) && (oClass_3==CLASS_TYPE_WIZARD))
|
|
iPassed = 1 ;
|
|
|
|
switch (iPassed)
|
|
{
|
|
case 0:
|
|
AssignCommand(oClicker,JumpToLocation(lLoc2));
|
|
break;
|
|
|
|
case 1:
|
|
AssignCommand(oClicker,JumpToLocation(lLoc));
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
}
|