السلام عليكم ورحمة الله وبركاته
حل مشكلة الصندوق الي بيبا في الحلبه الي تشتري منه بنقاط الحلبه او الساحه
في ناس مش تلقي المتجر فاضي
لحل المشكله اتبع الاتي
افتح كلاس
1 |
Inventory |
وحط السطر ده عند اي قفل
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 |
public bool Add2(uint id, uint seconds, byte plus, byte bless, byte times, bool bound = false) { try { Database.ConquerItemInformation infos = new Database.ConquerItemInformation(id, plus); while (times > 0) { ConquerItem _ExistingItem; Database.ConquerItemInformation iteminfo = new Database.ConquerItemInformation(id, 0); if (Owner.Inventory.Contains(iteminfo.BaseInformation.ID, bound, iteminfo.BaseInformation.StackSize, out _ExistingItem)) { if (_ExistingItem.StackSize == 0) _ExistingItem.StackSize = 1; ushort _StackCount = iteminfo.BaseInformation.StackSize; _StackCount -= (ushort)_ExistingItem.StackSize; if (_StackCount >= 1) _StackCount += 1; _ExistingItem.StackSize += 1; Database.ConquerItemTable.UpdateStack(_ExistingItem); _ExistingItem.Mode = Game.Enums.ItemMode.Update; _ExistingItem.Send(Owner); _ExistingItem.Mode = Game.Enums.ItemMode.Default; } else { if (Count <= 39) { ConquerItem item = new Network.GamePackets.ConquerItem(true); item.ID = id; item.Plus = plus; item.Bless = bless; item.Bound = bound; item.DayStamp = DateTime.Now; item.Minutes = (seconds / 60); item.TimeLeftInMinutes = seconds; item.Durability = item.MaximDurability = infos.BaseInformation.Durability; item.StackSize = 1; item.MaxStackSize = infos.BaseInformation.StackSize; Add(item, Enums.ItemUse.CreateAndAdd); } } times--; } } catch (Exception e) { Program.SaveException(e); } return true; } public bool AddBound99(uint id, uint seconds, byte plus, byte bless, byte times) { return Add2(id, seconds, plus, bless, times, true); } |
افتح كلاس
1 |
PacketHandler |
ابحث عن
1 |
static void UseItem( |
تنزل شويه لحد
1 |
switch (item.ID) |
تحته علي طول حط الكود ده الايتمات
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 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 |
#region LuckyFashionPack case 3007385: { if (client.Inventory.Count != 38) { switch (((byte)Kernel.Random.Next(1, 47))) { #region MrAli(Champion Garment.)Full case 1: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(193235, 86400, 0, 1, 1);//KungFuSuit client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Kung~Fu~Suit~(B)!", Color.Red, Message.System)); break; case 2: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(193295, 86400, 0, 1, 1);//SongofDespair client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Songof~Despair~(B)!", Color.Red, Message.System)); break; case 3: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(191405, 86400, 0, 1, 1);//DivineRobe client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Divine~Robe~(B)!", Color.Red, Message.System)); break; case 4: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(191305, 86400, 0, 1, 1);//GoodLuck client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Good~Luck~(B)!", Color.Red, Message.System)); break; case 5: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(189085, 86400, 0, 1, 1);//FairyTale client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Fairy~Tale~(B)!", Color.Red, Message.System)); break; case 6: client.Inventory.AddBound99(189075, 86400, 0, 1, 1);//FlyingFishSuit client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Flying~Fish~Suit~(B)!", Color.Red, Message.System)); break; case 7: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(189095, 86400, 0, 1, 1);//CloudRobe client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Cloud~Robe~(B)!", Color.Red, Message.System)); break; case 8: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(189105, 86400, 0, 1, 1);//GoldenDream client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Golden~Dream~(B)!", Color.Red, Message.System)); break; case 9: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(189225, 86400, 0, 1, 1);//IvoryRobe client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Ivory~Robe~(B)!", Color.Red, Message.System)); break; case 10: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(189235, 86400, 0, 1, 1);//DancingDress client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Dancing~Dress~(B)!", Color.Red, Message.System)); break; case 11: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(189245, 86400, 0, 1, 1);//EndlessDance client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Endless~Dance~(B)!", Color.Red, Message.System)); break; case 12: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(184355, 86400, 0, 1, 1);//EveningWear client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Evening~Wear~(B)!", Color.Red, Message.System)); break; case 13: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(184345, 86400, 0, 1, 1);//BeachSuit client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Beach~Suit~(B)!", Color.Red, Message.System)); break; case 14: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(184335, 86400, 0, 1, 1);//PunkRocker client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Punk~Rocker~(B)!", Color.Red, Message.System)); break; case 15: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(184365, 86400, 0, 1, 1);//WhiteCollarSuit client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~White~Collar~Suit~(B)!", Color.Red, Message.System)); break; case 16: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(184385, 86400, 0, 1, 1);//ShanghaiBloodOath client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Shanghai~Blood~Oath~(B)!", Color.Red, Message.System)); break; case 17: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(183385, 86400, 0, 1, 1);//Doctor`sJacket client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Doctor`sJacket~(B)!", Color.Red, Message.System)); break; case 18: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(183395, 86400, 0, 1, 1);//Delight~of~Speed client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Delight~of~Speed~(B)!", Color.Red, Message.System)); break; case 19: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(183425, 86400, 0, 1, 1);//FancyAzure client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~Fancy~Azure~(B)!", Color.Red, Message.System)); break; case 20: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(183345, 86400, 0, 1, 1);//TaekwondoUniform client.Inventory.Add(3007104, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Garment~Fragment~and~1-day~1%~Blessed~TaekwondoUniform~(B)!", Color.Red, Message.System)); break; //MrAli(Champion Garment.)Full #endregion #region MrAli(Champion MountArmor.)Full case 21: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200540, 86400, 0, 1, 1);//SavageBeast client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Savage~Beast~(B)!", Color.Red, Message.System)); break; case 22: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200539, 86400, 0, 1, 1);//DivineFox client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Divine~Fox~(B)!", Color.Red, Message.System)); break; case 23: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200538, 86400, 0, 1, 1);//BronzeRhinoceros client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Bronze~Rhinoceros~(B)!", Color.Red, Message.System)); break; case 24: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200549, 86400, 0, 1, 1);//SoulKylin client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Soul~Kylin~(B)!", Color.Red, Message.System)); break; case 25: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200454, 86400, 0, 1, 1);//LionKing client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Savage~Beast~(B)!", Color.Red, Message.System)); break; case 26: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200441, 86400, 0, 1, 1);//IcePhoenix client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Ice~Phoenix~(B)!", Color.Red, Message.System)); break; case 27: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200481, 86400, 0, 1, 1);//SpiritLion client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Spirit~Lion~(B)!", Color.Red, Message.System)); break; case 28: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200418, 86400, 0, 1, 1);//AncientElephant client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Ancient~Elephant~(B)!", Color.Red, Message.System)); break; case 29: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200465, 86400, 0, 1, 1);//PolarBear client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Polar~Bear~(B)!", Color.Red, Message.System)); break; case 30: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200414, 86400, 0, 1, 1);//RoyalApe client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Royal~Ape~(B)!", Color.Red, Message.System)); break; case 31: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200427, 86400, 0, 1, 1);//WinebibberPanda client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Winebibber~Panda~(B)!", Color.Red, Message.System)); break; case 32: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200438, 86400, 0, 1, 1);//Pegasus client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Pegasus~(B)!", Color.Red, Message.System)); break; case 33: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200411, 86400, 0, 1, 1);//ChaosBull client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Savage~Beast~(B)!", Color.Red, Message.System)); break; case 34: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200488, 86400, 0, 1, 1);//ScaleDragon client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Scale~Dragon~(B)!", Color.Red, Message.System)); break; case 35: client.Inventory.Remove(3007385, 1); client.Inventory.AddBound99(200503, 86400, 0, 1, 1);//WineGourd client.Inventory.Add(3007105, 0, 1); client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~MountArmor~Fragment~and~1-day~1%~Blessed~Wine~Gourd~(B)!", Color.Red, Message.System)); break; //MrAli(Champion MountArmor.)Full #endregion #region MrAli(Champion Accessory.)Full case 36: client.Inventory.Remove(3007385, 1); client.Inventory.Add(3007106, 0, 1); client.Inventory.AddBound99(360174, 86400, 0, 1, 1);//SpringRabbit client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Spring~Rabbit~(B)!", Color.Red, Message.System)); break; case 37: client.Inventory.Remove(3007385, 1); client.Inventory.Add(3007106, 0, 1); client.Inventory.AddBound99(360173, 86400, 0, 1, 1);//ThunderboltTiger client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Thunder~bolt~Tiger~(B)!", Color.Red, Message.System)); break; case 38: client.Inventory.Remove(3007385, 1); client.Inventory.Add(3007106, 0, 1); client.Inventory.AddBound99(360172, 86400, 0, 1, 1);//FancyPinwheel client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Fancy~Pinwheel~(B)!", Color.Red, Message.System)); break; case 39: client.Inventory.Remove(3007385, 1); client.Inventory.Add(3007106, 0, 1); client.Inventory.AddBound99(360171, 86400, 0, 1, 1);//RattleDrum client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Spring~Rabbit~(B)!", Color.Red, Message.System)); break; case 40: client.Inventory.Remove(3007385, 1); client.Inventory.Add(3007106, 0, 1); client.Inventory.AddBound99(350010, 86400, 0, 1, 1);//IceStick client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Ice~Stick~(B)!", Color.Red, Message.System)); break; case 41: client.Inventory.Remove(3007385, 1); client.Inventory.Add(3007106, 0, 1); client.Inventory.AddBound99(380004, 86400, 0, 1, 1);//SunFlower client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Sun~Flower~(B)!", Color.Red, Message.System)); break; case 42: client.Inventory.Remove(3007385, 1); client.Inventory.Add(3007106, 0, 1); client.Inventory.AddBound99(370003, 86400, 0, 1, 1);//SeaHorse client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Sea~Horse~(B)!", Color.Red, Message.System)); break; case 43: client.Inventory.Remove(3007385, 1); client.Inventory.Add(3007106, 0, 1); client.Inventory.AddBound99(360008, 86400, 0, 1, 1);//FishPole client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Fish~Pole~(B)!", Color.Red, Message.System)); break; case 44: client.Inventory.Remove(3007385, 1); client.Inventory.Add(3007106, 0, 1); client.Inventory.AddBound99(360007, 86400, 0, 1, 1);//InvincibleFist client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Invincible~Fist~(B)!", Color.Red, Message.System)); break; case 45: client.Inventory.Remove(3007385, 1); client.Inventory.Add(3007106, 0, 1); client.Inventory.AddBound99(350082, 86400, 0, 1, 1);//SpecialOar client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Specia~lOar~(B)!", Color.Red, Message.System)); break; case 46: client.Inventory.Remove(3007385, 1); client.Inventory.Add(3007106, 0, 1); client.Inventory.AddBound99(360018, 86400, 0, 1, 1);//LightSaber client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Light~Saber~(B)!", Color.Red, Message.System)); break; case 47: client.Inventory.Remove(3007385, 1); client.Inventory.Add(3007106, 0, 1); client.Inventory.AddBound99(360014, 86400, 0, 1, 1);//GoodEveningBear client.Send(new Message("You`ve~used~an~item.", Color.Red, Message.System)); client.Send(new Message("You~received~a~Weapon~Accessory~Fragment~and~1-day~1%~Blessed~Good~Evening~Bear~(B)!", Color.Red, Message.System)); break; //MrAli(Champion Accessory.)Full #endregion } } else client.Send(Constants.FullInventory); break; } #endregion #region GarmentFragment case 3007104: { if (client.Inventory.Count < 38) { if (client.Inventory.Contains(3007104, 15)) { Random R = new Random(); int G = R.Next(0, 20); if (G == 1) client.Inventory.AddBound99(193235, 0, 0, 1, 1);//KungFuSuit if (G == 2) client.Inventory.AddBound99(193295, 0, 0, 1, 1);//SongofDespair if (G == 3) client.Inventory.AddBound99(191405, 0, 0, 1, 1);//DivineRobe if (G == 4) client.Inventory.AddBound99(191305, 0, 0, 1, 1);//GoodLuck if (G == 5) client.Inventory.AddBound99(189085, 0, 0, 1, 1);//FairyTale if (G == 6) client.Inventory.AddBound99(189075, 0, 0, 1, 1);//FlyingFishSuit if (G == 7) client.Inventory.AddBound99(189095, 0, 0, 1, 1);//CloudRobe if (G == 8) client.Inventory.AddBound99(189105, 0, 0, 1, 1);//GoldenDream if (G == 9) client.Inventory.AddBound99(189225, 0, 0, 1, 1);//IvoryRobe if (G == 10) client.Inventory.AddBound99(189235, 0, 0, 1, 1);//DancingDress if (G == 11) client.Inventory.AddBound99(189245, 0, 0, 1, 1);//EndlessDance if (G == 12) client.Inventory.AddBound99(184355, 0, 0, 1, 1);//EveningWear if (G == 13) client.Inventory.AddBound99(184345, 0, 0, 1, 1);//BeachSuit if (G == 14) client.Inventory.AddBound99(184335, 0, 0, 1, 1);//PunkRocker if (G == 15) client.Inventory.AddBound99(184365, 0, 0, 1, 1);//WhiteCollarSuit if (G == 16) client.Inventory.AddBound99(184385, 0, 0, 1, 1);//ShanghaiBloodOath if (G == 17) client.Inventory.AddBound99(183385, 0, 0, 1, 1);//Doctor`sJacket if (G == 18) client.Inventory.AddBound99(183395, 0, 0, 1, 1);//Delight~of~Speed if (G == 19) client.Inventory.AddBound99(183425, 0, 0, 1, 1);//FancyAzure if (G == 20) client.Inventory.AddBound99(183345, 0, 0, 1, 1); client.Inventory.Remove(3007104, 15); client.MessageBox("Congratulations, You received Champion Garment."); } client.Send(new Message("Your GarmentFragment item 15 .", System.Drawing.Color.Red, Message.TopLeft)); } else { client.Send(new Message("You need to make atleast 2 free spots in your inventory.", System.Drawing.Color.Red, Message.System)); } break; } #endregion #region MountArmorFragment case 3007105: { if (client.Inventory.Count < 38) { if (client.Inventory.Contains(3007105, 30)) { Random R = new Random(); int G = R.Next(0, 12); if (G == 1) client.Inventory.AddBound99(200540, 0, 0, 1, 1);//SavageBeast if (G == 2) client.Inventory.AddBound99(200539, 0, 0, 1, 1);//DivineFox if (G == 3) client.Inventory.AddBound99(200538, 0, 0, 1, 1);//BronzeRhinoceros if (G == 4) client.Inventory.AddBound99(200549, 0, 0, 1, 1);//SoulKylin if (G == 5) client.Inventory.AddBound99(200454, 0, 0, 1, 1);//LionKing if (G == 6) client.Inventory.AddBound99(200441, 0, 0, 1, 1);//IcePhoenix if (G == 7) client.Inventory.AddBound99(200481, 0, 0, 1, 1);//SpiritLion if (G == 8) client.Inventory.AddBound99(200418, 0, 0, 1, 1);//AncientElephant if (G == 9) client.Inventory.AddBound99(200465, 0, 0, 1, 1);//PolarBear if (G == 10) client.Inventory.AddBound99(200414, 0, 0, 1, 1);//RoyalApe if (G == 11) client.Inventory.AddBound99(200427, 0, 0, 1, 1);//WinebibberPanda if (G == 12) client.Inventory.AddBound99(200438, 0, 0, 1, 1);//Pegasus if (G == 13) client.Inventory.AddBound99(200411, 0, 0, 1, 1);//ChaosBull if (G == 14) client.Inventory.AddBound99(200488, 0, 0, 1, 1);//ScaleDragon if (G == 15) client.Inventory.AddBound99(200503, 0, 0, 1, 1);//WineGourd client.Inventory.Remove(3007105, 30); client.MessageBox("Congratulations, You received Champion MountArmor."); } client.Send(new Message("Your MountArmorFragment item 30 .", System.Drawing.Color.Red, Message.TopLeft)); } else { client.Send(new Message("You need to make atleast 2 free spots in your inventory.", System.Drawing.Color.Red, Message.System)); } break; } #endregion #region WeaponAccessoryFragment case 3007106: { if (client.Inventory.Count < 38) { // uint Hour24 = 0 * 24 * 60 * 60; // uint days7 = 7 * 24 * 60 * 60; Random R = new Random(); int G = R.Next(0, 12); if (G == 1) client.Inventory.AddBound99(360174, 604800, 0, 1, 1);//SpringRabbit if (G == 2) client.Inventory.AddBound99(360173, 604800, 0, 1, 1);//ThunderboltTiger if (G == 3) client.Inventory.AddBound99(360172, 604800, 0, 1, 1);//FancyPinwheel if (G == 4) client.Inventory.AddBound99(360171, 604800, 0, 1, 1);//RattleDrum if (G == 5) client.Inventory.AddBound99(350010, 604800, 0, 1, 1);//IceStick if (G == 6) client.Inventory.AddBound99(380004, 604800, 0, 1, 1);//SunFlower if (G == 7) client.Inventory.AddBound99(370003, 604800, 0, 1, 1);//SeaHorse if (G == 8) client.Inventory.AddBound99(360008, 604800, 0, 1, 1);//FishPole if (G == 9) client.Inventory.AddBound99(360007, 604800, 0, 1, 1);//InvincibleFist if (G == 10) client.Inventory.AddBound99(350082, 604800, 0, 1, 1);//SpecialOar if (G == 11) client.Inventory.AddBound99(360018, 604800, 0, 1, 1);//LightSaber if (G == 12) client.Inventory.AddBound99(360014, 604800, 0, 1, 1);//GoodEveningBear client.Inventory.Remove(3007106, 1); client.MessageBox("Congratulations, You received Champion Accessory."); } else { client.Send(new Message("You need to make atleast 2 free spots in your inventory.", System.Drawing.Color.Red, Message.System)); } break; } #endregion |
ان شاء الله كده ايظبط معاك 100%
6 تعليقات “حل مشكلة LuckyFashionPack”
بعد اذنك محتاجين شرح اضافة مابه اللي هي ممكن تخليها توقع الحجات اللي نتا عايزها ايا تكنبقى صناديق سيبي او ستون او حصنه او اي حاجه
اللي تبقى ف التون واي حد يشخها ويموت فيها الوحوش شكرا قمقدما
اولا محتاج اعرف اعمل اوتو انفنت ازي الحرب مش بيجلها رساله انها بداات
ثانيا لو عايز اضيف لبس او حاجه جديده زي الاولاين ازي
ثالثا ف راجل بيجي كل ساعه يرمي شنط سبس مش عارف اشيله او اقلل السبس منين
احمد ايه هي مشكلتك
Mina اتفضل
ممكن حد يساعدني ف مشكله ضروري ف سورس
يا باشا ممكن سؤال لو سمحت