strutZ
Australian OT Member {AKA Beastn}
- Joined
- Nov 16, 2014
- Messages
- 1,391
- Solutions
- 7
- Reaction score
- 550
Hello Otland!
I have converted my modal window mount doll script to use @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.
Why use this one instead?
Much cleaner then the last version you just need to add the action script and the lib files. There is no need to register the scripts on login.lua or add creaturescripts!
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)
The system now however, Does not remove the mounts from the list. Instead it just adds "[Owned]" to the end of the mounts that are already unlocked. If a player is a little silly and clicks on an already owned mount by mistake it will give them an error message and allow them to go back. There is also a check to make sure the mount doll is in the players backpack before the mount is received.
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:
3) Create a new text document in /data/actions/scripts and name it "mount_doll.lua" and paste the following:
http://pastebin.com/xeP0bJZT
http://pastebin.com/xeP0bJZT
4) Add the following line to your global.lua:
5) Create a new text document in /data/lib/ and name it "mount_doll.lua" and paste the following:
http://pastebin.com/eB30RfW9
Enjoy =)
I have converted my modal window mount doll script to use @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.
Why use this one instead?
Much cleaner then the last version you just need to add the action script and the lib files. There is no need to register the scripts on login.lua or add creaturescripts!
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
dollID = 9019, -- Change this to your dolls or items, item ID
-- Main Window Messages (The first window the player sees)
mainTitle = "Choose a Mount!",
mainMsg = "Choose a mount to unlock.",
-- Already Owned Window (The window that appears when the player already owns the addon)
ownedTitle = "Whoops!",
ownedMsg = "You already have this mount. Please choose another.",
-- No Doll in Backpack (The window that appears when the player doesnt have the doll in their backpack)
dollTitle = "Whoops!",
dollMsg = "The mount doll must be in your backpack.",
-- End Config
The system now however, Does not remove the mounts from the list. Instead it just adds "[Owned]" to the end of the mounts that are already unlocked. If a player is a little silly and clicks on an already owned mount by mistake it will give them an error message and allow them to go back. There is also a check to make sure the mount doll is in the players backpack before the mount is received.
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:
Code:
<action itemid="ITEMID" script="mount_doll.lua"/>
http://pastebin.com/xeP0bJZT
http://pastebin.com/xeP0bJZT
4) Add the following line to your global.lua:
Code:
dofile('data/lib/mount_doll.lua')
http://pastebin.com/eB30RfW9
Enjoy =)