// Token: 0x06000306 RID: 774 RVA: 0x00004C59 File Offset: 0x00002E59 public void perform(int idAction, object p) { if (idAction == 1000) { ChatTextField.gI().startChat(GameScr.gI(), mResources.chat_player); } }
// Token: 0x06000395 RID: 917 RVA: 0x0001BF0C File Offset: 0x0001A10C private void endMe() { if (!this.charBelong.isUseSkillAfterCharge && this.x >= GameScr.cmx && this.x <= GameScr.cmx + GameCanvas.w) { SoundMn.gI().explode_1(); } this.charBelong.setAttack(); if (this.charBelong.me) { this.charBelong.saveLoadPreviousSkill(); } if (this.charBelong.isUseSkillAfterCharge) { this.charBelong.isUseSkillAfterCharge = false; if (this.charBelong.isLockMove && this.charBelong.me && this.charBelong.statusMe != 14 && this.charBelong.statusMe != 5) { this.charBelong.isLockMove = false; } GameScr.gI().activeSuperPower(this.x, this.y); } this.charBelong.dart = null; this.charBelong.isCreateDark = false; this.charBelong.skillPaint = null; this.charBelong.skillPaintRandomPaint = null; }
// Token: 0x060003AE RID: 942 RVA: 0x0001CF30 File Offset: 0x0001B130 public void update() { if (this.info != null) { this.X = GameCanvas.w - 5 - this.W; this.Y = 45; if (GameCanvas.w - 50 > 155 + this.W) { this.X = GameCanvas.w - 55 - this.W; this.Y = 5; } this.cmdYes.x = this.X - 35; this.cmdYes.y = this.Y; this.curr = mSystem.currentTimeMillis(); Res.outz("curr - last= " + (this.curr - this.last)); if (this.curr - this.last >= 1000L) { this.last = mSystem.currentTimeMillis(); this.dem--; } if (this.dem == 0) { GameScr.gI().popUpYesNo = null; } } }
// Token: 0x060003E2 RID: 994 RVA: 0x0001E49C File Offset: 0x0001C69C public static void drawSmallImage(mGraphics g, int id, int f, int x, int y, int w, int h, int transform, int anchor) { if (SmallImage.imgbig == null) { Small small = SmallImage.imgNew[id]; if (small == null) { SmallImage.createImage(id); } else { g.drawRegion(small.img, 0, f * w, w, h, transform, x, y, anchor); } return; } if (SmallImage.smallImg != null) { if (id >= SmallImage.smallImg.Length || SmallImage.smallImg[id] == null || SmallImage.smallImg[id][1] >= 256 || SmallImage.smallImg[id][3] >= 256 || SmallImage.smallImg[id][2] >= 256 || SmallImage.smallImg[id][4] >= 256) { Small small2 = SmallImage.imgNew[id]; if (small2 == null) { SmallImage.createImage(id); } else { small2.paint(g, transform, f, x, y, w, h, anchor); } } else if (SmallImage.smallImg[id][0] != 4 && SmallImage.imgbig[SmallImage.smallImg[id][0]] != null) { g.drawRegion(SmallImage.imgbig[SmallImage.smallImg[id][0]], 0, f * w, w, h, transform, x, y, anchor); } else { Small small3 = SmallImage.imgNew[id]; if (small3 == null) { SmallImage.createImage(id); } else { small3.paint(g, transform, f, x, y, w, h, anchor); } } } else if (GameCanvas.currentScreen != GameScr.gI()) { Small small4 = SmallImage.imgNew[id]; if (small4 == null) { SmallImage.createImage(id); } else { small4.paint(g, transform, f, x, y, w, h, anchor); } } }
// Token: 0x0600060A RID: 1546 RVA: 0x0004A9F8 File Offset: 0x00048BF8 public override void update() { GameScr.gI().update(); for (int i = 0; i < this.tf.Length; i++) { this.tf[i].update(); } }
// Token: 0x06000764 RID: 1892 RVA: 0x00006A58 File Offset: 0x00004C58 public override void update() { GameScr.gI().update(); this.tfSerial.update(); this.tfCode.update(); if (Main.isWindowsPhone) { this.updateTfWhenOpenKb(); } }
// Token: 0x06000355 RID: 853 RVA: 0x00019B1C File Offset: 0x00017D1C public static void paint(mGraphics g, int x, int y) { if (!MobCapcha.isAttack) { if (GameCanvas.gameTick % 3 == 0) { if (global::Char.myCharz().cdir == 1) { MobCapcha.cmtoX = x - 20 - GameScr.cmx; } if (global::Char.myCharz().cdir == -1) { MobCapcha.cmtoX = x + 20 - GameScr.cmx; } } MobCapcha.cmtoY = global::Char.myCharz().cy - 40 - GameScr.cmy; } else { MobCapcha.delay++; if (MobCapcha.delay == 5) { MobCapcha.isAttack = false; MobCapcha.delay = 0; } MobCapcha.cmtoX = x - GameScr.cmx; MobCapcha.cmtoY = y - GameScr.cmy; } if (MobCapcha.cmx > x - GameScr.cmx) { MobCapcha.dir = -1; } else { MobCapcha.dir = 1; } g.drawImage(GameScr.imgCapcha, MobCapcha.cmx, MobCapcha.cmy - 40, 3); PopUp.paintPopUp(g, MobCapcha.cmx - 25, MobCapcha.cmy - 70, 50, 20, 16777215, false); mFont.tahoma_7b_dark.drawString(g, GameScr.gI().keyInput, MobCapcha.cmx, MobCapcha.cmy - 65, 2); if (MobCapcha.isCreateMob) { MobCapcha.isCreateMob = false; EffecMn.addEff(new Effect(18, MobCapcha.cmx + GameScr.cmx, MobCapcha.cmy + GameScr.cmy, 2, 10, -1)); } if (MobCapcha.explode) { MobCapcha.explode = false; EffecMn.addEff(new Effect(18, MobCapcha.cmx + GameScr.cmx, MobCapcha.cmy + GameScr.cmy, 2, 10, -1)); GameScr.gI().mobCapcha = null; MobCapcha.cmtoX = -GameScr.cmx; MobCapcha.cmtoY = -GameScr.cmy; } g.drawRegion(MobCapcha.imgMob, 0, MobCapcha.f * 40, 40, 40, (MobCapcha.dir != 1) ? 2 : 0, MobCapcha.cmx, MobCapcha.cmy + 3 + ((GameCanvas.gameTick % 10 <= 5) ? 0 : 1), 3); MobCapcha.moveCamera(); }
// Token: 0x06000763 RID: 1891 RVA: 0x00062F24 File Offset: 0x00061124 public override void paint(mGraphics g) { GameScr.gI().paint(g); PopUp.paintPopUp(g, this.x, this.y, this.w, this.h, -1, true); for (int i = 0; i < this.strPaint.Length; i++) { mFont.tahoma_7b_green2.drawString(g, this.strPaint[i], GameCanvas.w / 2, this.y + 15 + i * 20, mFont.CENTER); } this.tfSerial.paint(g); this.tfCode.paint(g); base.paint(g); }
// Token: 0x060002D5 RID: 725 RVA: 0x00016564 File Offset: 0x00014764 public static void paint(mGraphics g) { if (ChatPopup.serverChatPopUp != null) { return; } if (global::Char.myCharz().isUsePlane || global::Char.myCharz().isTeleport) { return; } Hint.paintArrowPointToHint(g); if (GameCanvas.menu.tDelay != 0) { return; } if (!Hint.isPaint) { return; } if (ChatPopup.scr != null) { return; } if (global::Char.ischangingMap) { return; } if (GameCanvas.currentScreen != GameScr.gI()) { return; } if (GameCanvas.panel.isShow && GameCanvas.panel.cmx != 0) { return; } if (Hint.isCamera) { g.translate(-GameScr.cmx, -GameScr.cmy); } if (Hint.trans == 0) { g.drawImage(Panel.imgBantay, Hint.x - 15, Hint.y, 0); } if (Hint.trans == 1) { g.drawRegion(Panel.imgBantay, 0, 0, 14, 16, 2, Hint.x + 15, Hint.y, StaticObj.TOP_RIGHT); } if (Hint.paintFlare) { g.drawImage(ItemMap.imageFlare, Hint.x, Hint.y, 3); } }
// Token: 0x0600042F RID: 1071 RVA: 0x00023A9C File Offset: 0x00021C9C public void perform(int idAction, object p) { if (idAction != 1) { if (idAction == 2) { GameScr.gI().auto = 0; if (global::Char.myCharz().isInEnterOfflinePoint() != null) { Service.gI().charMove(); InfoDlg.showWait(); Service.gI().getMapOffline(); global::Char.ischangingMap = true; return; } if (global::Char.myCharz().isInEnterOnlinePoint() != null) { Service.gI().charMove(); Service.gI().requestChangeMap(); global::Char.isLockKey = true; global::Char.ischangingMap = true; GameCanvas.clearKeyHold(); GameCanvas.clearKeyPressed(); InfoDlg.showWait(); return; } int xEnd = (int)((this.minX + this.maxX) / 2); int yEnd = (int)this.maxY; global::Char.myCharz().currentMovePoint = new MovePoint(xEnd, yEnd); global::Char.myCharz().cdir = ((global::Char.myCharz().cx - global::Char.myCharz().currentMovePoint.xEnd <= 0) ? 1 : -1); global::Char.myCharz().endMovePointCommand = new Command(null, this, 2, null); return; } } else { int xEnd2 = (int)((this.minX + this.maxX) / 2); int yEnd2 = (int)this.maxY; if (this.maxY > this.minY + 24) { yEnd2 = (int)((this.minY + this.maxY) / 2); } GameScr.gI().auto = 0; global::Char.myCharz().currentMovePoint = new MovePoint(xEnd2, yEnd2); global::Char.myCharz().cdir = ((global::Char.myCharz().cx - global::Char.myCharz().currentMovePoint.xEnd <= 0) ? 1 : -1); Service.gI().charMove(); } }
// Token: 0x060003E1 RID: 993 RVA: 0x0001E328 File Offset: 0x0001C528 public static void drawSmallImage(mGraphics g, int id, int x, int y, int transform, int anchor) { if (SmallImage.imgbig == null) { Small small = SmallImage.imgNew[id]; if (small == null) { SmallImage.createImage(id); } else { g.drawRegion(small, 0, 0, mGraphics.getImageWidth(small.img), mGraphics.getImageHeight(small.img), transform, x, y, anchor); } return; } if (SmallImage.smallImg != null) { if (id >= SmallImage.smallImg.Length || SmallImage.smallImg[id][1] >= 256 || SmallImage.smallImg[id][3] >= 256 || SmallImage.smallImg[id][2] >= 256 || SmallImage.smallImg[id][4] >= 256) { Small small2 = SmallImage.imgNew[id]; if (small2 == null) { SmallImage.createImage(id); } else { small2.paint(g, transform, x, y, anchor); } } else if (SmallImage.imgbig[SmallImage.smallImg[id][0]] != null) { g.drawRegion(SmallImage.imgbig[SmallImage.smallImg[id][0]], SmallImage.smallImg[id][1], SmallImage.smallImg[id][2], SmallImage.smallImg[id][3], SmallImage.smallImg[id][4], transform, x, y, anchor); } } else if (GameCanvas.currentScreen != GameScr.gI()) { Small small3 = SmallImage.imgNew[id]; if (small3 == null) { SmallImage.createImage(id); } else { small3.paint(g, transform, x, y, anchor); } } }
// Token: 0x060002BD RID: 701 RVA: 0x00015AAC File Offset: 0x00013CAC public void performAction() { GameCanvas.clearAllPointerEvent(); if (this.isPlaySoundButton && ((this.caption != null && !this.caption.Equals(string.Empty) && !this.caption.Equals(mResources.saying)) || this.img != null)) { SoundMn.gI().buttonClick(); } if (this.idAction > 0) { if (this.actionListener != null) { this.actionListener.perform(this.idAction, this.p); } else { GameScr.gI().actionPerform(this.idAction, this.p); } } }
// Token: 0x060008D5 RID: 2261 RVA: 0x0007FC68 File Offset: 0x0007DE68 public static void update() { long num = mSystem.currentTimeMillis(); if (Timer.isON && num > Timer.timeExecute) { Timer.isON = false; try { if (Timer.idAction > 0) { GameScr.gI().actionPerform(Timer.idAction, null); } } catch (Exception ex) { } } }
// Token: 0x06000731 RID: 1841 RVA: 0x000602C4 File Offset: 0x0005E4C4 public void paintMenu(mGraphics g) { if (GameScr.gI().activeRongThan&& GameScr.gI().isUseFreez) { return; } g.translate(-g.getTranslateX(), -g.getTranslateY()); g.setClip(0, 0, GameCanvas.w, GameCanvas.h); g.translate(-Menu.cmx, 0); for (int i = 0; i < this.menuItems.size(); i++) { if (i == this.menuSelectedItem) { g.drawImage(Menu.imgMenu2, this.menuX + i * this.menuW + 1, Menu.menuTemY[i], 0); } else { g.drawImage(Menu.imgMenu1, this.menuX + i * this.menuW + 1, Menu.menuTemY[i], 0); } string[] array = ((Command)this.menuItems.elementAt(i)).subCaption; if (array == null) { array = new string[] { ((Command)this.menuItems.elementAt(i)).caption }; } int num = Menu.menuTemY[i] + (this.menuH - array.Length * 14) / 2 + 1; for (int j = 0; j < array.Length; j++) { if (i == this.menuSelectedItem) { mFont.tahoma_7b_green2.drawString(g, array[j], this.menuX + i * this.menuW + this.menuW / 2, num + j * 14, 2); } else { mFont.tahoma_7b_dark.drawString(g, array[j], this.menuX + i * this.menuW + this.menuW / 2, num + j * 14, 2); } } } g.translate(-g.getTranslateX(), -g.getTranslateY()); }
// Token: 0x060008C5 RID: 2245 RVA: 0x0007F510 File Offset: 0x0007D710 public static void paintTilemap(mGraphics g) { if (global::Char.isLoadingMap) { return; } GameScr.gI().paintBgItem(g, 1); for (int i = 0; i < GameScr.vItemMap.size(); i++) { ((ItemMap)GameScr.vItemMap.elementAt(i)).paintAuraItemEff(g); } for (int j = GameScr.gssx; j < GameScr.gssxe; j++) { for (int k = GameScr.gssy; k < GameScr.gssye; k++) { if (j != 0) { if (j != TileMap.tmw - 1) { int num = TileMap.maps[k * TileMap.tmw + j] - 1; if ((TileMap.tileTypeAt(j, k) & 256) != 256) { if ((TileMap.tileTypeAt(j, k) & 32) == 32) { g.drawRegion(TileMap.imgWaterfall, 0, 24 * (GameCanvas.gameTick % 8 >> 1), 24, 24, 0, j * (int)TileMap.size, k * (int)TileMap.size, 0); } else if ((TileMap.tileTypeAt(j, k) & 128) == 128) { g.drawRegion(TileMap.imgTopWaterfall, 0, 24 * (GameCanvas.gameTick % 8 >> 1), 24, 24, 0, j * (int)TileMap.size, k * (int)TileMap.size, 0); } else if (TileMap.tileID == 13) { if (!GameCanvas.lowGraphic) { return; } if (num != -1) { TileMap.paintTile(g, 0, j, k); } } else { if (TileMap.tileID == 2 && (TileMap.tileTypeAt(j, k) & 512) == 512 && num != -1) { TileMap.paintTile(g, num, j * (int)TileMap.size, k * (int)TileMap.size, 24, 1); TileMap.paintTile(g, num, j * (int)TileMap.size, k * (int)TileMap.size + 1, 24, 24); } if (TileMap.tileID == 3) { } if ((TileMap.tileTypeAt(j, k) & 16) == 16) { TileMap.bx = j * (int)TileMap.size - GameScr.cmx; TileMap.dbx = TileMap.bx - GameScr.gW2; TileMap.dfx = ((int)TileMap.size - 2) * TileMap.dbx / (int)TileMap.size; TileMap.fx = TileMap.dfx + GameScr.gW2; TileMap.paintTile(g, num, TileMap.fx + GameScr.cmx, k * (int)TileMap.size, 24, 24); } else if ((TileMap.tileTypeAt(j, k) & 512) == 512) { if (num != -1) { TileMap.paintTile(g, num, j * (int)TileMap.size, k * (int)TileMap.size, 24, 1); TileMap.paintTile(g, num, j * (int)TileMap.size, k * (int)TileMap.size + 1, 24, 24); } } else if (num != -1) { TileMap.paintTile(g, num, j, k); } } } } } } } if (GameScr.cmx < 24) { for (int l = GameScr.gssy; l < GameScr.gssye; l++) { int num2 = TileMap.maps[l * TileMap.tmw + 1] - 1; if (num2 != -1) { TileMap.paintTile(g, num2, 0, l); } } } if (GameScr.cmx > GameScr.cmxLim) { int num3 = TileMap.tmw - 2; for (int m = GameScr.gssy; m < GameScr.gssye; m++) { int num4 = TileMap.maps[m * TileMap.tmw + num3] - 1; if (num4 != -1) { TileMap.paintTile(g, num4, num3 + 1, m); } } } }
// Token: 0x0600072F RID: 1839 RVA: 0x0005FA70 File Offset: 0x0005DC70 public void updateMenuKey() { if (GameScr.gI().activeRongThan&& GameScr.gI().isUseFreez) { return; } if (!this.showMenu) { return; } if (this.isScrolling()) { return; } bool flag = false; if (GameCanvas.keyPressed[(!Main.isPC) ? 2 : 21] || GameCanvas.keyPressed[(!Main.isPC) ? 4 : 23]) { flag = true; this.menuSelectedItem--; if (this.menuSelectedItem < 0) { this.menuSelectedItem = this.menuItems.size() - 1; } } else if (GameCanvas.keyPressed[(!Main.isPC) ? 8 : 22] || GameCanvas.keyPressed[(!Main.isPC) ? 6 : 24]) { flag = true; this.menuSelectedItem++; if (this.menuSelectedItem > this.menuItems.size() - 1) { this.menuSelectedItem = 0; } } else if (GameCanvas.keyPressed[(!Main.isPC) ? 5 : 25]) { if (this.center != null) { if (this.center.idAction > 0) { if (this.center.actionListener == GameScr.gI()) { GameScr.gI().actionPerform(this.center.idAction, this.center.p); } else { this.perform(this.center.idAction, this.center.p); } } } else { this.waitToPerform = 2; } } else if (GameCanvas.keyPressed[12] && !GameScr.gI().isRongThanMenu()) { if (this.isScrolling()) { return; } if (this.left.idAction > 0) { this.perform(this.left.idAction, this.left.p); } else { this.waitToPerform = 2; } SoundMn.gI().buttonClose(); } else if (!GameScr.gI().isRongThanMenu() && !this.disableClose && (GameCanvas.keyPressed[13] || mScreen.getCmdPointerLast(this.right))) { if (this.isScrolling()) { return; } if (!this.close) { this.close = true; } this.isClose = true; SoundMn.gI().buttonClose(); } if (flag) { Menu.cmtoX = this.menuSelectedItem * this.menuW + this.menuW - GameCanvas.w / 2; if (Menu.cmtoX > Menu.cmxLim) { Menu.cmtoX = Menu.cmxLim; } if (Menu.cmtoX < 0) { Menu.cmtoX = 0; } if (this.menuSelectedItem == this.menuItems.size() - 1 || this.menuSelectedItem == 0) { Menu.cmx = Menu.cmtoX; } } if (this.disableClose || !GameCanvas.isPointerJustRelease || GameCanvas.isPointer(this.menuX, this.menuY, this.w, this.menuH) || this.pointerIsDowning || GameScr.gI().isRongThanMenu()) { if (GameCanvas.isPointerDown) { if (!this.pointerIsDowning && GameCanvas.isPointer(this.menuX, this.menuY, this.w, this.menuH)) { for (int i = 0; i < this.pointerDownLastX.Length; i++) { this.pointerDownLastX[0] = GameCanvas.px; } this.pointerDownFirstX = GameCanvas.px; this.pointerIsDowning = true; this.isDownWhenRunning = (this.cmRun != 0); this.cmRun = 0; } else if (this.pointerIsDowning) { this.pointerDownTime++; if (this.pointerDownTime > 5 && this.pointerDownFirstX == GameCanvas.px && !this.isDownWhenRunning) { this.pointerDownFirstX = -1000; this.menuSelectedItem = (Menu.cmtoX + GameCanvas.px - this.menuX) / this.menuW; } int num = GameCanvas.px - this.pointerDownLastX[0]; if (num != 0 && this.menuSelectedItem != -1) { this.menuSelectedItem = -1; } for (int j = this.pointerDownLastX.Length - 1; j > 0; j--) { this.pointerDownLastX[j] = this.pointerDownLastX[j - 1]; } this.pointerDownLastX[0] = GameCanvas.px; Menu.cmtoX -= num; if (Menu.cmtoX < 0) { Menu.cmtoX = 0; } if (Menu.cmtoX > Menu.cmxLim) { Menu.cmtoX = Menu.cmxLim; } if (Menu.cmx < 0 || Menu.cmx > Menu.cmxLim) { num /= 2; } Menu.cmx -= num; if (Menu.cmx < -(GameCanvas.h / 3)) { this.wantUpdateList = true; } else { this.wantUpdateList = false; } } } if (GameCanvas.isPointerJustRelease && this.pointerIsDowning) { int i2 = GameCanvas.px - this.pointerDownLastX[0]; GameCanvas.isPointerJustRelease = false; if (Res.abs(i2) < 20 && Res.abs(GameCanvas.px - this.pointerDownFirstX) < 20 && !this.isDownWhenRunning) { this.cmRun = 0; Menu.cmtoX = Menu.cmx; this.pointerDownFirstX = -1000; this.menuSelectedItem = (Menu.cmtoX + GameCanvas.px - this.menuX) / this.menuW; this.pointerDownTime = 0; this.waitToPerform = 10; } else if (this.menuSelectedItem != -1 && this.pointerDownTime > 5) { this.pointerDownTime = 0; this.waitToPerform = 1; } else if (this.menuSelectedItem == -1 && !this.isDownWhenRunning) { if (Menu.cmx < 0) { Menu.cmtoX = 0; } else if (Menu.cmx > Menu.cmxLim) { Menu.cmtoX = Menu.cmxLim; } else { int num2 = GameCanvas.px - this.pointerDownLastX[0] + (this.pointerDownLastX[0] - this.pointerDownLastX[1]) + (this.pointerDownLastX[1] - this.pointerDownLastX[2]); if (num2 > 10) { num2 = 10; } else if (num2 < -10) { num2 = -10; } else { num2 = 0; } this.cmRun = -num2 * 100; } } this.pointerIsDowning = false; this.pointerDownTime = 0; GameCanvas.isPointerJustRelease = false; } GameCanvas.clearKeyPressed(); GameCanvas.clearKeyHold(); return; } if (this.isScrolling()) { return; } this.pointerDownTime = (this.pointerDownFirstX = 0); this.pointerIsDowning = false; GameCanvas.clearAllPointerEvent(); Res.outz("menu select= " + this.menuSelectedItem); this.isClose = true; this.close = true; SoundMn.gI().buttonClose(); }
// Token: 0x06000361 RID: 865 RVA: 0x0001A2A0 File Offset: 0x000184A0 public override void paint(mGraphics g) { if (global::Char.isLoadingMap) { return; } if (this.isHide) { return; } if (!base.isPaint()) { return; } if (this.statusMe == 15) { return; } if ((int)this.cTypePk != 0) { base.paint(g); return; } if (this.template == null) { return; } if (this.template.npcTemplateId != 4 && this.template.npcTemplateId != 51 && this.template.npcTemplateId != 50) { g.drawImage(TileMap.bong, this.cx, this.cy, 3); } if (this.template.npcTemplateId == 3) { SmallImage.drawSmallImage(g, 265, this.cx, this.cy, 0, mGraphics.BOTTOM | mGraphics.HCENTER); if (global::Char.myCharz().npcFocus != null && global::Char.myCharz().npcFocus.Equals(this)) { if (ChatPopup.currChatPopup == null) { g.drawRegion(Mob.imgHP, 0, 0, 9, 6, 0, this.cx, this.cy - this.ch + 4, mGraphics.BOTTOM | mGraphics.HCENTER); } } this.dyEff = 60; } else if (this.template.npcTemplateId != 4) { if (this.template.npcTemplateId == 50 || this.template.npcTemplateId == 51) { if (this.duahau != null) { if (this.template.npcTemplateId == 50 && Npc.mabuEff) { Npc.tMabuEff++; if (GameCanvas.gameTick % 3 == 0) { Effect me = new Effect(19, this.cx + Res.random(-50, 50), this.cy, 2, 1, -1); EffecMn.addEff(me); } if (GameCanvas.gameTick % 15 == 0) { Effect me2 = new Effect(18, this.cx + Res.random(-5, 5), this.cy + Res.random(-90, 0), 2, 1, -1); EffecMn.addEff(me2); } if (Npc.tMabuEff == 100) { GameScr.gI().activeSuperPower(this.cx, this.cy); } if (Npc.tMabuEff == 110) { Npc.mabuEff = false; this.template.npcTemplateId = 4; } } int num = 0; if (SmallImage.imgNew[this.duahau[this.duaHauIndex]] != null && SmallImage.imgNew[this.duahau[this.duaHauIndex]].img != null) { num = mGraphics.getImageHeight(SmallImage.imgNew[this.duahau[this.duaHauIndex]].img); } SmallImage.drawSmallImage(g, this.duahau[this.duaHauIndex], this.cx + Res.random(-1, 1), this.cy, 0, mGraphics.BOTTOM | mGraphics.HCENTER); if (global::Char.myCharz().npcFocus != null && global::Char.myCharz().npcFocus.Equals(this)) { if (ChatPopup.currChatPopup == null) { g.drawRegion(Mob.imgHP, 0, 0, 9, 6, 0, this.cx, this.cy - this.ch - 9 + 16 - num, mGraphics.BOTTOM | mGraphics.HCENTER); } mFont.tahoma_7b_white.drawString(g, NinjaUtil.getTime(this.seconds), this.cx, this.cy - this.ch - 16 - mFont.tahoma_7.getHeight() - 20 - num + 16, mFont.CENTER, mFont.tahoma_7b_dark); } else { mFont.tahoma_7b_white.drawString(g, NinjaUtil.getTime(this.seconds), this.cx, this.cy - this.ch - 8 - mFont.tahoma_7.getHeight() - 20 - num + 16, mFont.CENTER, mFont.tahoma_7b_dark); } } } else if (this.template.npcTemplateId == 6) { SmallImage.drawSmallImage(g, 545, this.cx, this.cy + 5, 0, mGraphics.BOTTOM | mGraphics.HCENTER); if (global::Char.myCharz().npcFocus != null && global::Char.myCharz().npcFocus.Equals(this)) { if (ChatPopup.currChatPopup == null) { g.drawRegion(Mob.imgHP, 0, 0, 9, 6, 0, this.cx, this.cy - this.ch - 9, mGraphics.BOTTOM | mGraphics.HCENTER); } } mFont.tahoma_7b_white.drawString(g, TileMap.zoneID + string.Empty, this.cx, this.cy - this.ch + 19 - mFont.tahoma_7.getHeight(), mFont.CENTER); } else { int headId = this.template.headId; int legId = this.template.legId; int bodyId = this.template.bodyId; Part part = GameScr.parts[headId]; Part part2 = GameScr.parts[legId]; Part part3 = GameScr.parts[bodyId]; if (this.cdir == 1) { SmallImage.drawSmallImage(g, (int)part.pi[global::Char.CharInfo[this.cf][0][0]].id, this.cx + global::Char.CharInfo[this.cf][0][1] + (int)part.pi[global::Char.CharInfo[this.cf][0][0]].dx, this.cy - global::Char.CharInfo[this.cf][0][2] + (int)part.pi[global::Char.CharInfo[this.cf][0][0]].dy, 0, 0); SmallImage.drawSmallImage(g, (int)part2.pi[global::Char.CharInfo[this.cf][1][0]].id, this.cx + global::Char.CharInfo[this.cf][1][1] + (int)part2.pi[global::Char.CharInfo[this.cf][1][0]].dx, this.cy - global::Char.CharInfo[this.cf][1][2] + (int)part2.pi[global::Char.CharInfo[this.cf][1][0]].dy, 0, 0); SmallImage.drawSmallImage(g, (int)part3.pi[global::Char.CharInfo[this.cf][2][0]].id, this.cx + global::Char.CharInfo[this.cf][2][1] + (int)part3.pi[global::Char.CharInfo[this.cf][2][0]].dx, this.cy - global::Char.CharInfo[this.cf][2][2] + (int)part3.pi[global::Char.CharInfo[this.cf][2][0]].dy, 0, 0); } else { SmallImage.drawSmallImage(g, (int)part.pi[global::Char.CharInfo[this.cf][0][0]].id, this.cx - global::Char.CharInfo[this.cf][0][1] - (int)part.pi[global::Char.CharInfo[this.cf][0][0]].dx, this.cy - global::Char.CharInfo[this.cf][0][2] + (int)part.pi[global::Char.CharInfo[this.cf][0][0]].dy, 2, 24); SmallImage.drawSmallImage(g, (int)part2.pi[global::Char.CharInfo[this.cf][1][0]].id, this.cx - global::Char.CharInfo[this.cf][1][1] - (int)part2.pi[global::Char.CharInfo[this.cf][1][0]].dx, this.cy - global::Char.CharInfo[this.cf][1][2] + (int)part2.pi[global::Char.CharInfo[this.cf][1][0]].dy, 2, 24); SmallImage.drawSmallImage(g, (int)part3.pi[global::Char.CharInfo[this.cf][2][0]].id, this.cx - global::Char.CharInfo[this.cf][2][1] - (int)part3.pi[global::Char.CharInfo[this.cf][2][0]].dx, this.cy - global::Char.CharInfo[this.cf][2][2] + (int)part3.pi[global::Char.CharInfo[this.cf][2][0]].dy, 2, 24); } if (TileMap.mapID != 51) { int num2 = 15; if (this.template.npcTemplateId == 47) { num2 = 47; } if (global::Char.myCharz().npcFocus != null && global::Char.myCharz().npcFocus.Equals(this)) { if (ChatPopup.currChatPopup == null) { g.drawRegion(Mob.imgHP, 0, 0, 9, 6, 0, this.cx, this.cy - this.ch - (num2 - 8), mGraphics.BOTTOM | mGraphics.HCENTER); } } else if (this.template.npcTemplateId == 47) { } } this.dyEff = 65; } } if (this.indexEffTask >= 0 && this.effTask != null && (int)this.cTypePk == 0) { SmallImage.drawSmallImage(g, this.effTask.arrEfInfo[this.indexEffTask].idImg, this.cx + this.effTask.arrEfInfo[this.indexEffTask].dx, this.cy + this.effTask.arrEfInfo[this.indexEffTask].dy - this.dyEff, 0, mGraphics.VCENTER | mGraphics.HCENTER); if (GameCanvas.gameTick % 2 == 0) { this.indexEffTask++; if (this.indexEffTask >= this.effTask.arrEfInfo.Length) { this.indexEffTask = 0; } } } if (this.chatInfo != null) { this.chatInfo.paint(g, this.cx, this.cy - this.ch, this.cdir); } }
// Token: 0x0600032F RID: 815 RVA: 0x00004E74 File Offset: 0x00003074 public ItemOption(int optionTemplateId, int param) { this.param = param; this.optionTemplate = GameScr.gI().iOptionTemplates[optionTemplateId]; }
// Token: 0x060002AF RID: 687 RVA: 0x00015000 File Offset: 0x00013200 public void paint(mGraphics g) { if (global::Char.isLoadingMap) { return; } if (this.idImage == 279 && GameScr.gI().tMabuEff >= 110) { return; } int cmx = GameScr.cmx; int cmy = GameScr.cmy; Image image; if ((int)this.layer == 2 || (int)this.layer == 4) { image = (Image)BgItem.imgNew.get(this.idImage + string.Empty); } else if (!this.isNotBlend()) { image = (Image)BgItem.imgNew.get(this.idImage + "blend" + this.layer); } else { image = (Image)BgItem.imgNew.get(this.idImage + string.Empty); } if (image != null) { if (this.idImage == 96) { return; } if ((int)this.layer == 4) { this.transX = -cmx / 2 + 100; } if (this.idImage == 28 && (int)this.layer == 3) { this.transX = -cmx / 3 + 200; } if ((this.idImage == 67 || this.idImage == 68 || this.idImage == 69 || this.idImage == 70) && (int)this.layer == 3) { this.transX = -cmx / 3 + 200; } if (this.isMiniBg() && (int)this.layer < 4) { this.transX = -(cmx >> 4) + 50; this.transY = (cmy >> 5) - 15; } int num = this.x + this.dx + this.transX; int num2 = this.y + this.dy + this.transY; if (this.x + this.dx + image.getWidth() + this.transX >= cmx && this.x + this.dx + this.transX <= cmx + GameCanvas.w && this.y + this.dy + this.transY + image.getHeight() >= cmy && this.y + this.dy + this.transY <= cmy + GameCanvas.h) { g.drawRegion(image, 0, 0, mGraphics.getImageWidth(image), mGraphics.getImageHeight(image), this.trans, this.x + this.dx + this.transX, this.y + this.dy + this.transY, 0); if (this.idImage == 11 && TileMap.mapID != 122) { g.setClip(num, num2 + 24, 48, 14); for (int i = 0; i < 2; i++) { g.drawRegion(TileMap.imgWaterflow, 0, (GameCanvas.gameTick % 8 >> 2) * 24, 24, 24, 0, num + i * 24, num2 + 24, 0); } g.setClip(GameScr.cmx, GameScr.cmy, GameScr.gW, GameScr.gH); } } if (TileMap.isDoubleMap() && this.idImage > 137 && this.idImage != 156 && this.idImage != 159 && this.idImage != 157 && this.idImage != 165 && this.idImage != 167 && this.idImage != 168 && this.idImage != 169 && this.idImage != 170 && this.idImage != 238 && TileMap.pxw - (this.x + this.dx + this.transX) >= cmx && TileMap.pxw - (this.x + this.dx + this.transX + image.getWidth()) <= cmx + GameCanvas.w && this.y + this.dy + this.transY + image.getHeight() >= cmy && this.y + this.dy + this.transY <= cmy + GameCanvas.h && (this.idImage < 241 || this.idImage >= 266)) { g.drawRegion(image, 0, 0, mGraphics.getImageWidth(image), mGraphics.getImageHeight(image), 2, TileMap.pxw - (this.x + this.dx + this.transX), this.y + this.dy + this.transY, StaticObj.TOP_RIGHT); } } }
// Token: 0x060002D6 RID: 726 RVA: 0x00016690 File Offset: 0x00014890 public static void hint() { if (global::Char.myCharz().taskMaint != null && GameCanvas.currentScreen == GameScr.instance) { int taskId = (int)global::Char.myCharz().taskMaint.taskId; int index = global::Char.myCharz().taskMaint.index; Hint.isCamera = false; Hint.trans = 0; Hint.type = 0; Hint.isPaint = true; Hint.isPaintArrow = true; if (GameCanvas.menu.showMenu && taskId > 0) { Hint.isPaint = false; } switch (taskId) { case 0: if (ChatPopup.currChatPopup != null || global::Char.myCharz().statusMe == 14) { Hint.x = GameCanvas.w / 2; Hint.y = GameCanvas.h - 15; } else { if (index == 0 && TileMap.vGo.size() != 0) { Hint.x = (int)(((Waypoint)TileMap.vGo.elementAt(0)).minX - 100); Hint.y = (int)(((Waypoint)TileMap.vGo.elementAt(0)).minY + 40); Hint.isCamera = true; } if (index == 1) { Hint.nextMap(0); } if (index == 2) { Hint.clickNpc(); } if (index == 3) { if (!GameCanvas.panel.isShow) { Hint.clickNpc(); } else if (GameCanvas.panel.currentTabIndex == 0) { if (GameCanvas.panel.cp == null) { Hint.x = GameCanvas.panel.xScroll + GameCanvas.panel.wScroll / 2; Hint.y = GameCanvas.panel.yScroll + 20; } else if (GameCanvas.menu.tDelay != 0) { Hint.x = GameCanvas.panel.xScroll + 25; Hint.y = GameCanvas.panel.yScroll + 60; } } else if (GameCanvas.panel.currentTabIndex == 1) { Hint.x = GameCanvas.panel.startTabPos + 10; Hint.y = 65; } } if (index == 4) { if (GameCanvas.panel.isShow) { Hint.x = GameCanvas.panel.cmdClose.x + 5; Hint.y = GameCanvas.panel.cmdClose.y + 5; } else if (GameCanvas.menu.showMenu) { Hint.x = GameCanvas.w / 2; Hint.y = GameCanvas.h - 20; } else { Hint.clickNpc(); } } if (index == 5) { Hint.clickNpc(); } } break; case 1: if (ChatPopup.currChatPopup != null || global::Char.myCharz().statusMe == 14) { Hint.x = GameCanvas.w / 2; Hint.y = GameCanvas.h - 15; } else { if (index == 0) { if (TileMap.isOfflineMap()) { Hint.nextMap(0); } else { Hint.clickMob(); } } if (index == 1) { if (!TileMap.isOfflineMap()) { Hint.nextMap(1); } else { Hint.clickNpc(); } } } break; case 2: if (ChatPopup.currChatPopup != null || global::Char.myCharz().statusMe == 14) { Hint.x = GameCanvas.w / 2; Hint.y = GameCanvas.h - 15; } else { if (index == 0) { if (!TileMap.isOfflineMap()) { Hint.isViewMap = true; } if (!GameCanvas.panel.isShow) { if (!Hint.isViewMap) { Hint.x = GameScr.gI().cmdMenu.x; Hint.y = GameScr.gI().cmdMenu.y + 13; Hint.trans = 1; } else { if (GameScr.getTaskMapId() == TileMap.mapID) { if (!Hint.isHaveItem()) { Hint.clickMob(); } } else { Hint.nextMap(0); } if (Hint.isViewMap) { Hint.isCloseMap = true; } } } else if (!Hint.isViewMap) { if (GameCanvas.panel.currentTabIndex == 0) { int num = (GameCanvas.h <= 300) ? 10 : 15; Hint.x = GameCanvas.panel.xScroll + GameCanvas.panel.wScroll / 2; Hint.y = GameCanvas.panel.yScroll + GameCanvas.panel.hScroll - num; } else { Hint.x = GameCanvas.panel.startTabPos + 10; Hint.y = 65; } } else if (!Hint.isCloseMap) { Hint.x = GameCanvas.panel.cmdClose.x + 5; Hint.y = GameCanvas.panel.cmdClose.y + 5; } else { Hint.isPaint = false; } if (global::Char.myCharz().cMP <= 0) { Hint.x = GameScr.xHP + 5; Hint.y = GameScr.yHP + 13; Hint.isCamera = false; } } if (index == 1) { Hint.isPaint = false; Hint.isPaintArrow = false; } } break; default: if (global::Char.myCharz().taskMaint.taskId == 9 && global::Char.myCharz().taskMaint.index == 2) { for (int i = 0; i < PopUp.vPopups.size(); i++) { PopUp popUp = (PopUp)PopUp.vPopups.elementAt(i); if (popUp.cy <= 24) { Hint.x = popUp.cx + popUp.sayWidth / 2; Hint.y = popUp.cy + 30; Hint.isCamera = true; Hint.isPaint = false; Hint.isPaintArrow = true; return; } } } Hint.isPaint = false; Hint.isPaintArrow = false; break; } } else { Hint.isPaint = false; Hint.isPaintArrow = false; } }
// Token: 0x060006F5 RID: 1781 RVA: 0x0005C7D0 File Offset: 0x0005A9D0 public void update() { if (this.Equals(GameScr.info2) && GameScr.gI().popUpYesNo != null) { return; } if (!this.isUpdate) { return; } this.moveCamera(); if (this.info == null) { return; } if (this.info != null && this.info.info == null) { return; } if (!this.isDone) { if (this.timeDelay > 0) { this.timeDelay--; if (this.timeDelay == 0) { GameCanvas.panel.setTypeMessage(); GameCanvas.panel.show(); } } if (GameCanvas.gameTick % 3 == 0) { if (global::Char.myCharz().cdir == 1) { this.cmtoX = global::Char.myCharz().cx - 20 - GameScr.cmx; } if (global::Char.myCharz().cdir == -1) { this.cmtoX = global::Char.myCharz().cx + 20 - GameScr.cmx; } if (this.cmtoX <= 24) { this.cmtoX += this.info.sayWidth / 2; } if (this.cmtoX >= GameCanvas.w - 24) { this.cmtoX -= this.info.sayWidth / 2; } this.cmtoY = global::Char.myCharz().cy - 40 - GameScr.cmy; if (this.info.says != null && this.cmtoY < (this.info.says.Length + 1) * 12 + 10) { this.cmtoY = (this.info.says.Length + 1) * 12 + 10; } if (this.info.info.charInfo != null) { if (GameCanvas.w - 50 > 155 + this.info.W) { this.cmtoX = GameCanvas.w - 60 - this.info.W / 2; this.cmtoY = this.info.H + 10; } else { this.cmtoX = GameCanvas.w - 20 - this.info.W / 2; this.cmtoY = 45 + this.info.H; if (GameCanvas.w > GameCanvas.h || GameCanvas.w < 220) { this.cmtoX = GameCanvas.w - 20 - this.info.W / 2; this.cmtoY = this.info.H + 10; } } } } if (this.cmx > global::Char.myCharz().cx - GameScr.cmx) { this.dir = -1; } else { this.dir = 1; } } if (this.info.info != null) { if (this.info.infoWaitToShow.size() > 1) { if (this.info.info.timeCount == 0) { this.info.time++; if (this.info.time >= this.info.info.speed) { this.info.time = 0; this.info.infoWaitToShow.removeElementAt(0); InfoItem infoItem = (InfoItem)this.info.infoWaitToShow.firstElement(); this.info.info = infoItem; this.info.getInfo(); return; } } else { this.info.info.curr = mSystem.currentTimeMillis(); if (this.info.info.curr - this.info.info.last >= 100L) { this.info.info.last = mSystem.currentTimeMillis(); this.info.info.timeCount--; } if (this.info.info.timeCount == 0) { this.info.infoWaitToShow.removeElementAt(0); if (this.info.infoWaitToShow.size() == 0) { return; } InfoItem infoItem2 = (InfoItem)this.info.infoWaitToShow.firstElement(); this.info.info = infoItem2; this.info.getInfo(); return; } } } else if (this.info.infoWaitToShow.size() == 1) { if (this.info.info.timeCount == 0) { this.info.time++; if (this.info.time >= this.info.info.speed) { this.isDone = true; } if (this.info.time == this.info.info.speed) { this.cmtoY = -40; this.cmtoX = global::Char.myCharz().cx - GameScr.cmx + ((global::Char.myCharz().cdir != 1) ? 20 : -20); } if (this.info.time >= this.info.info.speed + 20) { this.info.time = 0; this.info.infoWaitToShow.removeAllElements(); this.info.says = null; return; } } else { this.info.info.curr = mSystem.currentTimeMillis(); if (this.info.info.curr - this.info.info.last >= 100L) { this.info.info.last = mSystem.currentTimeMillis(); this.info.info.timeCount--; } if (this.info.info.timeCount == 0) { this.isDone = true; this.cmtoY = -40; this.cmtoX = global::Char.myCharz().cx - GameScr.cmx + ((global::Char.myCharz().cdir != 1) ? 20 : -20); this.info.time = 0; this.info.infoWaitToShow.removeAllElements(); this.info.says = null; this.cmdChat = null; } } } } }