public void CreateBloomNpc() { bloomNpc = Game.CreateNpc(bloomIDs, 1190, 449, 2, -1, 60, 0); bloomNpc.SetRelateDemagemRect(-10, -43, 15, 26); bloomNpc.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.TTSM3302.msg1"), 0, 1500, 3000); Game.AddAction(new ShowBloodItem(bloomNpc.Id, 0, 0)); }
private void CreateTotem() { int delay = GetMaxDelay(); if (totemType == 0) { int x = Game.FindBombPlayerX(100); SimpleNpc npc = ((PVEGame)Game).CreateNpc(blowTotemID, x, 500, 1, 1, 1); ((PVEGame)Game).ChangeMissionDelay(1, delay + 100); } else { int rand = Game.Random.Next(0, 2); int x = 0; if (rand == 0) { x = Game.Random.Next(Body.X - 200, Body.X - 100); } else { x = Game.Random.Next(Body.X + 100, Body.X + 200); } TotemBlood = ((PVEGame)Game).CreateNpc(bloodTotemID, x, 500, 1, 1, 2); TotemBlood.SetRelateDemagemRect(-15, -120, 30, 120); ((PVEGame)Game).ChangeMissionDelay(2, delay + 100); } }
public void Createbattle() { battleNpc = Game.CreateNpc(battleID, 1394, 500, 0, 1, -1); battleNpc.SetRelateDemagemRect(-21, -103, 39, 56); battleNpc.Degree = 3; Game.AddAction(new LivingCallFunctionAction(null, CreateBoss, 2000)); Game.AddAction(new ShowBloodItem(battleNpc.Id, 0, 0)); }
public void CreateNpc() { if (createNpcCount <= maxQuizSize) { if (isCreateNpcFirst) { someNpc = Game.CreateNpc(redNpcID, 1375, 505, 2); someNpc.SetRelateDemagemRect(-25, -55, 45, 55); isCreateNpcFirst = false; createNpcCount++; return; } someNpc = Game.CreateNpc(redNpcID, createNpcX[currQuizID], 505, 2); someNpc.SetRelateDemagemRect(-25, -55, 45, 55); createNpcCount++; } }
private void CreateTotem() { int x; SimpleNpc totem = null; if (totemType == 0) { x = Game.Random.Next(0, totemLeftPoint.Length); totem = ((PVEGame)Game).CreateNpc(lockTotemID, totemLeftPoint[x].X, totemLeftPoint[x].Y, 2, -1, -1); } else { x = Game.Random.Next(0, totemRightPoint.Length); totem = ((PVEGame)Game).CreateNpc(FagTotemID, totemRightPoint[x].X, totemRightPoint[x].Y, 2, -1, -1); } totem.SetRelateDemagemRect(-5, -65, 10, 44); totem.Degree = 3; }
public void CreateNpc() { if (createNpcCount <= maxTurnSize) { if (isCreateNpcFirst) { someNpc = Game.CreateNpc(redNpcID, 1075, 565, 2); someNpc.SetRelateDemagemRect(-25, -55, 45, 55); isCreateNpcFirst = false; Game.WaitTime(0); return; } someNpc = Game.CreateNpc(redNpcID, createNpcX[currTurnID], 565, 2); someNpc.SetRelateDemagemRect(-25, -55, 45, 55); createNpcCount++; currTurnID++; Game.WaitTime(0); } }
public void CreateNpc() { if (createNpcCount <= maxTurnSize) { if (isCreateNpcFirst) { someNpc = Game.CreateNpc(redNpcID, 932, 769, 2); someNpc.SetRelateDemagemRect(-25, -55, 45, 55); isCreateNpcFirst = false; Game.WaitTime(0); return; } int x = Game.Random.Next(0, createNpcX.Length); someNpc = Game.CreateNpc(redNpcID, createNpcX[x].X, createNpcX[x].Y, 2); someNpc.SetRelateDemagemRect(-25, -55, 45, 55); createNpcCount++; currTurnID++; Game.WaitTime(0); } }
public override void OnPrepareNewGame() { base.OnPrepareNewGame(); doorNpc = Game.CreateNpc(doorNpcID, 1450, 400, 1); doorNpc.SetRelateDemagemRect(-26, -170, 52, 170); doorNpc.Degree = 1; blowNpc = Game.CreateBoss(blowNpcID, 600, 400, 1, 3); blowNpc.Degree = 3; gunNpc = Game.CreateBoss(gunNpcID, 1400, 400, 1, 3); gunNpc.SetRelateDemagemRect(-1000, -1000, 2, 2); int index = Game.Random.Next(0, npcBirthPoint.Length); someNpc.Add(Game.CreateNpc(shortNpcID, npcBirthPoint[index].X, npcBirthPoint[index].Y, 1)); index = Game.Random.Next(0, npcBirthPoint.Length); someNpc.Add(Game.CreateNpc(shortNpcID, npcBirthPoint[index].X, npcBirthPoint[index].Y, 1)); index = Game.Random.Next(0, npcBirthPoint.Length); someNpc.Add(Game.CreateNpc(shortNpcID, npcBirthPoint[index].X, npcBirthPoint[index].Y, 1)); someNpc[0].Degree = 2; someNpc[1].Degree = 2; someNpc[2].Degree = 2; }