Advertisement
stigs

Untitled

Oct 17th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. itemscripts > itempacks.cs
  2.  
  3. /// <summary>
  4. /// MeteorTearPack
  5. /// </summary>
  6. [ScriptEntry(Entry = 723711)]
  7. public static void MeteorTearPack(Player player)
  8. {
  9. if (player.Inventory.Count < 35)
  10. {
  11. player.Inventory.Add(1088002, 5);
  12. player.Inventory.RemoveById(723711);
  13. }
  14. else
  15. {
  16. //Dialog.SendDialog(player, "Please make room in your inventory."); //send this as diff type of dialog, like top left of screen or something
  17. //Dialog.Finish(player);
  18. return;
  19. }
  20.  
  21. }
  22.  
  23. /// <summary>
  24. /// +1 Stone Pack
  25. /// </summary>
  26. [ScriptEntry(Entry = 723712)]
  27. public static void Plus1StonePack(Player player)
  28. {
  29. if (player.Inventory.Count < 35)
  30. {
  31. player.Inventory.Add(730001, 5);
  32. player.Inventory.RemoveById(723712);
  33. }
  34. else
  35. {
  36. //Dialog.SendDialog(player, "Please make room in your inventory."); //send this as diff type of dialog, like top left of screen or something
  37. //Dialog.Finish(player);
  38. return;
  39. }
  40. }
  41.  
  42. /// <summary>
  43. /// MeteorScroll
  44. /// </summary>
  45. [ScriptEntry(Entry = 720027)]
  46. public static void MeteorScroll(Player player)
  47. {
  48. if (player.Inventory.Count < 30)
  49. {
  50. player.Inventory.Add(1088001, 10);
  51. player.Inventory.RemoveById(720027);
  52. }
  53. else
  54. {
  55. //Dialog.SendDialog(player, "Please make room in your inventory."); //send this as diff type of dialog, like top left of screen or something
  56. //Dialog.Finish(player);
  57. return;
  58. }
  59. }
  60.  
  61. /// <summary>
  62. /// DragonballScroll
  63. /// </summary>
  64. [ScriptEntry(Entry = 720028)]
  65. public static void DragonballScroll(Player player)
  66. {
  67. if (player.Inventory.Count < 30)
  68. {
  69. player.Inventory.Add(1088000, 10);
  70. player.Inventory.RemoveById(720028);
  71. }
  72. else
  73. {
  74. //Dialog.SendDialog(player, "Please make room in your inventory."); //send this as diff type of dialog, like top left of screen or something
  75. //Dialog.Finish(player);
  76. return; //take this out after dialog
  77. }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement