Anubis-K Posted August 24, 2014 Share Posted August 24, 2014 (edited) Hi, In the old forum of eathena there was a very cool mod that did the following: You can buy items from a certain NPC that sell them as a Battleground Items, which you can use just inside of Battleground and other approved mapflag: "bg_consume". Here I do a release of the updated script compatible with rAthena (eAthena's patch is comming): Important: You need to create a character named "Battleground" and set the apropiate char id in the src: yes hard coded. in: src/map/battleground.h //Brian Bg Items - updated by [AnubisK] #define BG_CHARID 165100 // char named "Battleground" // you can change the character id. #define BG_TRADE 91 // trade mask of BG consumables // You can edit the mask Known bugs: If you have in your inventary Bg items and normal items plus you are outside of battleground or bg_consume maps, you will not be able to use the items. Example: Imagine that you are in map prontera: You have "1 Battleground Blue Gemstone" and one normal "Blue Gemstone" If you use "Warp portar", the skill will fail, because reads first the BG item. Note: I'm not the Autor, I just did a patch compatible with rAthena that is the only credit I can get. The credits of for the original idea must go to (as fas as I know) Brian one of the devs (http://rathena.org/board/user/237-brian/). Plesae inform any bug you find Click here to download this file Edited September 10, 2014 by Anubis-K 1 Quote Link to comment Share on other sites More sharing options...
Timy Posted August 6, 2018 Share Posted August 6, 2018 An question for you... How I can put this in my server rATHEA? Quote Link to comment Share on other sites More sharing options...