strutZ
Australian OT Member {AKA Beastn}
- Joined
- Nov 16, 2014
- Messages
- 1,391
- Solutions
- 7
- Reaction score
- 550
Hello Otland!
I have made an easy to use buy potion lever/item whatever i'm not your mum... it uses @Non Sequitur modal window system which can be found HERE
You will have to install that in order to be able to use this system.
Information on the system
It has an easy config section for you to customize it how you would like it! You just need to fill out the config table found in the action script (pictured below)
Installation
1) Install the modal window helper HERE
2) Register the script in /data/actions/actions.xml by adding this line (Replacing "ITEMID" with the item you want to use: (Note you can use an action ID aswell)
3) Create a new text document in /data/actions/scripts and name it "buy_potions.lua" and paste the following:
http://pastebin.com/KbgcJmGv
4) Add the following line to your global.lua:
5) Create a new text document in /data/lib/ and name it "buy_potions.lua" and paste the following:
http://pastebin.com/uA2nyjyR
Enjoy =)
Thanks to
@MatheusMkalo
I have made an easy to use buy potion lever/item whatever i'm not your mum... it uses @Non Sequitur modal window system which can be found HERE
You will have to install that in order to be able to use this system.
Information on the system
It has an easy config section for you to customize it how you would like it! You just need to fill out the config table found in the action script (pictured below)
Code:
-- Config
titleMsg = "Choose your Potion",
mainMsg = "Please select how many potions you would like to buy.",
moneyMsg = "You do not have enough money!", -- This is the message the player will recieve when he does not have enough money.
capacityMsg = "I need more cap", -- This is the message the player will recieve when he does not have enough capactiy.
buyMsg = "You have bought ", -- This is the message the player will recieve when he succesfully buys.
-- End Config
Installation
1) Install the modal window helper HERE
2) Register the script in /data/actions/actions.xml by adding this line (Replacing "ITEMID" with the item you want to use: (Note you can use an action ID aswell)
Code:
<action itemid="ITEMID" script="buy_potions.lua"/>
Code:
<action actionid="ACTIONID" script="buy_potions.lua"/>
http://pastebin.com/KbgcJmGv
4) Add the following line to your global.lua:
Code:
dofile('data/lib/buy_potions.lua')
http://pastebin.com/uA2nyjyR
Enjoy =)
Thanks to
@MatheusMkalo
Last edited: