تيم تهيس
التوبات ده انت بقا يبا ظبط نفسك ووقت ومواعدك
انروح علي npc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 |
#region TwinPk case 333399: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Hey there " + client.Entity.Name + " Would you like to join TwinPk?."); dialog.Option("Yes Please", 1); dialog.Option("Not now.", 255); dialog.Send(); break; } case 1: { if (DateTime.Now.Minute >= 10 && DateTime.Now.Minute <= 12) { client.Entity.Teleport(5540, 46, 50); } else { dialog.Text("[TwinPk] War is held during xx:10 To xx:12 in every Hour"); dialog.Option("I don't care.", 255); dialog.Send(); break; } break; } } break; } #endregion #region TwinPk Prize case 333390: switch (npcRequest.OptionID) { case 0: { dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?."); dialog.Option("Yes Please", 1); //dialog.Option("I Need To Leave", 2); // dialog.Option("Potions HP / Magic", 3); dialog.Option("I don't care.", 0xff); dialog.Send(); break; } case 1: { int alive = 0; foreach (GameState players in Kernel.GamePool.Values) if (players.Entity.MapID == 5540 && (!players.Entity.Dead)) alive++; if (DateTime.Now.Minute >= 14) { if (alive == 1) { client.Entity.ConquerPoints += 500; client.Entity.RemoveFlag(Update.Flags.Ride); // client.Entity.AddTopStatus(Update.Flags.TopArcher, DateTime.Now.AddHours(1)); COServer.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + "You Wenner Quest TwinPk Prize 500 CPs.", System.Drawing.Color.Black, Message.Center), Server.Values); client.Entity.SendSpawn(client, true); client.Entity.Teleport(1002, 428, 378); EntityTable.SaveEntity(client); } else { dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!"); dialog.Option("okay", 0xff); dialog.Send(); } } else { dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:14"); dialog.Option("okay", 0xff); dialog.Send(); } break; } case 2: { { client.Entity.Teleport(1002, 302, 280); } break; } case 3: { INpc npc = null; if (client.Map.Npcs.TryGetValue(client.ActiveNpc, out npc)) { Data data = new Data(true); data.ID = Data.OpenWindow; data.UID = client.Entity.UID; data.TimeStamp = Time32.Now; data.dwParam = 0x1FA; data.wParam1 = npc.X; data.wParam2 = npc.Y; client.Send(data); } break; } } break; #endregion #region PhoeinxPk case 25810: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Hey there " + client.Entity.Name + " Would you like to join PhoeinxPk?."); dialog.Option("Yes Please", 1); dialog.Option("Not now.", 255); dialog.Send(); break; } case 1: { if (DateTime.Now.Minute >= 16 && DateTime.Now.Minute <= 18) { client.Entity.Teleport(5452, 83, 112); } else { dialog.Text("[PhoeinxPk] War is held during xx:16 To xx:18 in every Hour"); dialog.Option("I don't care.", 255); dialog.Send(); break; } break; } } break; } #endregion #region PhoeinxPk Prize case 258100: switch (npcRequest.OptionID) { case 0: { dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?."); dialog.Option("Yes Please", 1); //dialog.Option("I Need To Leave", 2); dialog.Option("I don't care.", 0xff); dialog.Send(); break; } case 1: { int alive = 0; foreach (COServer.Client.GameState players in COServer.Kernel.GamePool.Values) if (players.Entity.MapID == 5452 && (!players.Entity.Dead)) alive++; if (DateTime.Now.Minute >= 20) { if (alive == 1) { client.Entity.ConquerPoints += 500; client.Entity.RemoveFlag(Update.Flags.Ride); // client.Entity.AddTopStatus(Update.Flags.TopTrojan, DateTime.Now.AddHours(1)); COServer.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + "You Wenner Quest PhoeinxPk Prize 500 CPs.", System.Drawing.Color.Black, Message.Center), Server.Values); client.Entity.SendSpawn(client, true); client.Entity.Teleport(1002, 428, 378); EntityTable.SaveEntity(client); } else { dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!"); dialog.Option("okay", 0xff); dialog.Send(); } } else { dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:19"); dialog.Option("okay", 0xff); dialog.Send(); } break; } case 2: { { client.Entity.Teleport(1002, 302, 280); } break; } } break; #endregion #region ApePk case 3333990: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Hey there " + client.Entity.Name + " Would you like to join ApePk?."); dialog.Option("Yes Please", 1); dialog.Option("Not now.", 255); dialog.Send(); break; } case 1: { if (DateTime.Now.Minute >= 22 && DateTime.Now.Minute <= 24) { client.Entity.Teleport(5560, 107, 120); } else { dialog.Text("[ApePk] War is held during xx:22 To xx:24 in every Hour"); dialog.Option("I don't care.", 255); dialog.Send(); break; } break; } } break; } #endregion #region ApePk Prize case 3333000: switch (npcRequest.OptionID) { case 0: { dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?."); dialog.Option("Yes Please", 1); //dialog.Option("I Need To Leave", 2); dialog.Option("I don't care.", 0xff); dialog.Send(); break; } case 1: { int alive = 0; foreach (COServer.Client.GameState players in COServer.Kernel.GamePool.Values) if (players.Entity.MapID == 5560 && (!players.Entity.Dead)) alive++; if (DateTime.Now.Minute >= 25) { if (alive == 1) { client.Entity.ConquerPoints += 500; client.Entity.RemoveFlag(Update.Flags.Ride); // client.Entity.AddTopStatus(Update.Flags.TopNinja, DateTime.Now.AddHours(1)); COServer.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + "You Wenner Quest ApePk Prize 500 CPs.", System.Drawing.Color.Black, Message.Center), Server.Values); client.Entity.SendSpawn(client, true); client.Entity.Teleport(1002, 428, 378); EntityTable.SaveEntity(client); } else { dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!"); dialog.Option("okay", 0xff); dialog.Send(); } } else { dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:26"); dialog.Option("okay", 0xff); dialog.Send(); } break; } case 2: { { client.Entity.Teleport(1002, 302, 280); } break; } } break; #endregion #region BirdPk case 252810: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Hey there " + client.Entity.Name + " Would you like to join BirdPk?."); dialog.Option("Yes Please", 1); dialog.Option("Not now.", 255); dialog.Send(); break; } case 1: { if (DateTime.Now.Minute >= 45 && DateTime.Now.Minute <= 47) { client.Entity.Teleport(5450, 94, 113); } else { dialog.Text("[BirdPk] War is held during xx:35 To xx:37 in every Hour"); dialog.Option("I don't care.", 255); dialog.Send(); break; } break; } } break; } #endregion #region BirdPk Prize case 252100: switch (npcRequest.OptionID) { case 0: { dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?."); dialog.Option("Yes Please", 1); //dialog.Option("I Need To Leave", 2); dialog.Option("I don't care.", 0xff); dialog.Send(); break; } case 1: { int alive = 0; foreach (COServer.Client.GameState players in COServer.Kernel.GamePool.Values) if (players.Entity.MapID == 5450 && (!players.Entity.Dead)) alive++; if (DateTime.Now.Minute >= 48) { if (alive == 1) { client.Entity.ConquerPoints += 500; client.Entity.RemoveFlag(Update.Flags.Ride); // client.Entity.AddTopStatus(Update.Flags.TopTrojan, DateTime.Now.AddHours(1)); COServer.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + "You Wenner Quest BirdPk Prize 500 CPs.", System.Drawing.Color.Black, Message.Center), Server.Values); client.Entity.SendSpawn(client, true); client.Entity.Teleport(1002, 428, 378); EntityTable.SaveEntity(client); } else { dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!"); dialog.Option("okay", 0xff); dialog.Send(); } } else { dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:37"); dialog.Option("okay", 0xff); dialog.Send(); } break; } case 2: { { client.Entity.Teleport(1002, 302, 280); } break; } } break; #endregion |
نروح علي ال
1 |
World.cs |
اتبحث عن اي افينت بتاع توب وتحط تحيطهم دول
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
#region PhoeinxPk if ((Now64.Minute == 16) && (Now64.Second == 01)) { foreach (var pclint in Server.GamePool) pclint.MessageBox("PhoeinxPk began! Would you like to Join? ", p => { p.Entity.Teleport(1002, 324, 252); }, null, 60); } #endregion #region ApePk if ((Now64.Minute == 22) && (Now64.Second == 01)) { foreach (var pclint in Server.GamePool) pclint.MessageBox("ApePk began! Would you like to Join? ", p => { p.Entity.Teleport(1002, 318, 252); }, null, 60); } #endregion #region BirdPk if ((Now64.Minute == 45) && (Now64.Second == 01)) { foreach (var pclint in Server.GamePool) pclint.MessageBox("BirdPk began! Would you like to Join? ", p => { p.Entity.Teleport(1002, 321, 252); }, null, 60); } #endregion #region Twin PK if ((Now64.Minute == 10) && (Now64.Second <= 01)) { foreach (var pclint in Server.GamePool) pclint.MessageBox("TwinPk began! Would you like to Join? ", p => { p.Entity.Teleport(1002, 315, 252); }, null, 60); } #endregion |
نروح للنفي كات في ال npc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
انبى سهات الدخول للكوسته -------- 333399 , Twin[PK] , 2 , 5150 , 1002 , 315 , 249 25810 , Phoenix[PK] , 2 , 5150 ,1002 , 324 , 249 3333990 , Ape[Pk] , 2 , 5150 , 1002 , 318 , 249 252810 , Bird[PK] , 2 , 5150 , 1002 , 321 , 249 -------- انبى سهات تسليم الجوايز ------- 333390 , Twin[PK]Prize , 2 , 9350 , 5540 , 46 , 45 258100 , Phoenix[PK]Prize , 2 , 9350 , 5452 , 81 , 119 3333000 , Ape[PK]Prize , 2 , 9350 , 5560 , 102 , 124 252100, Bird[PK]Prize , 2 , 9350 , 5450 , 86 , 112 |
بعدين نروح للmap في النفي كات برضوا
1 2 3 4 5 6 7 |
5540 , 2068 , 7 , 0 5452 ,1509 , 7 , 0 5560 ,1506 , 7, 0 5450 ,1507 , 7 , 0 |
للعلم نحل بعض الايروا لو جالك ايروا في server
بدله ب
1 |
Program |
لو جالك ايروا في GamePool
بدلوا ب
1 |
Values |
او العكس
ياريت دعوه حلوها علشان الامتحان
محمد ياسر