Advertisement
existence_dev92

Untitled

Mar 22nd, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.51 KB | None | 0 0
  1.  db/re/item_db.txt  |  5 +++++
  2.  src/map/itemdb.hpp |  6 ++++++
  3.  src/map/skill.cpp  | 10 ++++++++++
  4.  3 files changed, 21 insertions(+)
  5.  
  6. diff --git a/db/re/item_db.txt b/db/re/item_db.txt
  7. index 45e9a2075..cc3074cd8 100644
  8. --- a/db/re/item_db.txt
  9. +++ b/db/re/item_db.txt
  10. @@ -12664,3 +12664,8 @@
  11.  33045,N_Petti_Tail_Noodle,Petite Tail Noodles,2,,,50,,,,,0xFFFFFFFF,63,2,,,,,,{ sc_start SC_PUTTI_TAILS_NOODLES,300000,25; },{},{}
  12.  33046,E_Phone,E Phone,11,0,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ doevent "E-Phone::OnDoTalk"; },{},{}
  13.  33047,E_Phone2,E Phone,11,0,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ doevent "E-Phone::OnDoTalk2"; },{},{}
  14. +69000,Fire_Bottle2,Bottle Grenade,3,200,,25000,,,,,,,,,,,,,{},{},{}
  15. +69001,Acid_Bottle2,Acid Bottle,3,200,,25000,,,,,,,,,,,,,{},{},{}
  16. +69002,Red_Gemstone2,Red Gemstone,3,600,,3500,,,,,,,,,,,,,{},{},{}
  17. +69003,Blue_Gemstone2,Blue Gemstone,3,600,,3500,,,,,,,,,,,,,{},{},{}
  18. +69004,Yellow_Gemstone2,Yellow Gemstone,3,600,,3500,,,,,,,,,,,,,{},{},{}
  19. diff --git a/src/map/itemdb.hpp b/src/map/itemdb.hpp
  20. index 6e134f65f..4628944b3 100644
  21. --- a/src/map/itemdb.hpp
  22. +++ b/src/map/itemdb.hpp
  23. @@ -113,6 +113,12 @@ enum item_itemid
  24.     ITEMID_WOB_RACHEL                   = 14584,
  25.     ITEMID_WOB_LOCAL                    = 14585,
  26.     ITEMID_SIEGE_TELEPORT_SCROLL        = 14591,
  27. +   ITEMID_FIRE_BOTTLE2                 = 69000,
  28. +   ITEMID_ACID_BOTTLE2                 = 69001,
  29. +   ITEMID_RED_GEMSTONE2                = 69002,
  30. +   ITEMID_BLUE_GEMSTONE2               = 69003,
  31. +   ITEMID_YELLOW_GEMSTONE              = 715,
  32. +   ITEMID_YELLOW_GEMSTONE2             = 69004,
  33.  };
  34.  
  35.  ///Rune Knight
  36. diff --git a/src/map/skill.cpp b/src/map/skill.cpp
  37. index 387036f6f..0533386b8 100755
  38. --- a/src/map/skill.cpp
  39. +++ b/src/map/skill.cpp
  40. @@ -16406,6 +16406,16 @@ struct skill_condition skill_get_requirement(struct map_session_data* sd, uint16
  41.                         req.itemid[i] = req.amount[i] = 0;
  42.                     }
  43.                 }
  44. +               if (req.itemid[i] == ITEMID_FIRE_BOTTLE && pc_search_inventory(sd, ITEMID_FIRE_BOTTLE2) > -1)
  45. +                   req.itemid[i] = req.amount[i] = 0;
  46. +               if (req.itemid[i] == ITEMID_ACID_BOTTLE && pc_search_inventory(sd, ITEMID_ACID_BOTTLE2) > -1)
  47. +                   req.itemid[i] = req.amount[i] = 0;
  48. +               if (req.itemid[i] == ITEMID_RED_GEMSTONE && pc_search_inventory(sd, ITEMID_RED_GEMSTONE2) > -1)
  49. +                   req.itemid[i] = req.amount[i] = 0;
  50. +               if (req.itemid[i] == ITEMID_BLUE_GEMSTONE && pc_search_inventory(sd, ITEMID_BLUE_GEMSTONE2) > -1)
  51. +                   req.itemid[i] = req.amount[i] = 0;
  52. +               if (req.itemid[i] == ITEMID_YELLOW_GEMSTONE && pc_search_inventory(sd, ITEMID_YELLOW_GEMSTONE2) > -1)
  53. +                   req.itemid[i] = req.amount[i] = 0;
  54.             }
  55.             break;
  56.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement