@@ -13,6 +13,8 @@ public guard_spawner()
1313 {
1414 }
1515 public static final String guardTable = "datatables/npc/guard_spawner/guard.iff" ;
16+ public static final boolean EMPIRE_DAY_RUNNING = utils .checkConfigFlag ("GameServer" , "empireday_ceremony" );
17+
1618 public int OnAttach (obj_id self ) throws InterruptedException
1719 {
1820 messageTo (self , "checkForStart" , null , 3 , false );
@@ -33,8 +35,7 @@ public int OnInitialize(obj_id self) throws InterruptedException
3335 }
3436 else if (city .equals ("theed" ))
3537 {
36- String empiredayRunning = getConfigSetting ("GameServer" , "empireday_ceremony" );
37- if (empiredayRunning != null && (empiredayRunning .equals ("true" ) || empiredayRunning .equals ("1" )))
38+ if (EMPIRE_DAY_RUNNING )
3839 {
3940 utils .setScriptVar (self , "OFF" , "DUE TO EMPIRE DAY" );
4041 return SCRIPT_CONTINUE ;
@@ -294,19 +295,15 @@ public String getGuardArea(obj_id self) throws InterruptedException
294295 String test_city = city ;
295296 if (planet .equals ("naboo" ) || planet .equals ("corellia" ))
296297 {
297- String empiredayRunning = getConfigSetting ("GameServer" , "empireday_ceremony" );
298- if (empiredayRunning != null )
298+ if (EMPIRE_DAY_RUNNING )
299299 {
300- if (empiredayRunning .equals ("true" ) || empiredayRunning .equals ("1" ))
300+ if (city .equals ("coronet" ))
301+ {
302+ return test_city + "_rebel_hard" ;
303+ }
304+ else if (city .equals ("theed" ))
301305 {
302- if (city .equals ("coronet" ))
303- {
304- return test_city + "_rebel_hard" ;
305- }
306- else if (city .equals ("theed" ))
307- {
308- return test_city + "_imperial_hard" ;
309- }
306+ return test_city + "_imperial_hard" ;
310307 }
311308 }
312309 }
0 commit comments