// Token: 0x0600035F RID: 863 RVA: 0x00019F78 File Offset: 0x00018178 public override void update() { if (this.template.npcTemplateId == 51) { this.cur = mSystem.currentTimeMillis(); if (this.cur - this.last >= 1000L) { this.seconds--; this.last = this.cur; if (this.seconds < 0) { this.seconds = 0; } } } if (this.isShadown) { base.updateShadown(); } if (this.effTask == null) { sbyte[] array = new sbyte[] { -1, 9, 9, 10, 10, 11, 11 }; if (global::Char.myCharz().ctaskId >= 9 && global::Char.myCharz().ctaskId <= 10 && global::Char.myCharz().nClass.classId > 0 && (int)array[global::Char.myCharz().nClass.classId] == this.template.npcTemplateId) { if (global::Char.myCharz().taskMaint == null) { this.effTask = GameScr.efs[57]; this.indexEffTask = 0; } else if (global::Char.myCharz().taskMaint != null && global::Char.myCharz().taskMaint.index + 1 == global::Char.myCharz().taskMaint.subNames.Length) { this.effTask = GameScr.efs[62]; this.indexEffTask = 0; } } else { sbyte taskNpcId = GameScr.getTaskNpcId(); if (global::Char.myCharz().taskMaint == null && (int)taskNpcId == this.template.npcTemplateId) { this.indexEffTask = 0; } else if (global::Char.myCharz().taskMaint != null && (int)taskNpcId == this.template.npcTemplateId) { if (global::Char.myCharz().taskMaint.index + 1 == global::Char.myCharz().taskMaint.subNames.Length) { this.effTask = GameScr.efs[98]; } else { this.effTask = GameScr.efs[98]; } this.indexEffTask = 0; } } } base.update(); if (TileMap.mapID == 51) { if (this.cx > global::Char.myCharz().cx) { this.cdir = -1; } else { this.cdir = 1; } if (this.template.npcTemplateId % 2 == 0) { if (this.cf == 1) { this.cf = 0; } else { this.cf = 1; } } } }