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 addon 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 outfits from the list. Instead it just adds "[Owned]" to the end of the outfits that are already unlocked. If a player is a little silly and clicks on an already owned outfit by mistake it will give them an error message and allow them to go back. There is also a check to make sure the addon doll is in the players backpack before the addons are received.
Will be updating my mount doll script later today aswell.
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 "addon_doll.lua" and paste the following:
http://pastebin.com/9zLsJuHm
4) Add the following line to your global.lua:
5) Create a new text document in /data/lib/ and name it "addon_doll.lua" and paste the following:
http://pastebin.com/FRhtGR8n
Enjoy =)
I have converted my modal window addon 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 = 8982, -- Change this to your dolls or items, item ID
-- Main Window Messages (The first window the player sees)
mainTitle = "Choose an outfit",
mainMsg = "You will recieve both addons aswell as the outfit you choose.",
-- Already Owned Window (The window that appears when the player already owns the addon)
ownedTitle = "Whoops!",
ownedMsg = "You already have this addon. 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 addon doll must be in your backpack.",
-- End Config
The system now however, Does not remove the outfits from the list. Instead it just adds "[Owned]" to the end of the outfits that are already unlocked. If a player is a little silly and clicks on an already owned outfit by mistake it will give them an error message and allow them to go back. There is also a check to make sure the addon doll is in the players backpack before the addons are received.
Will be updating my mount doll script later today aswell.
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="addon_doll.lua"/>
http://pastebin.com/9zLsJuHm
4) Add the following line to your global.lua:
Code:
dofile('data/lib/addon_doll.lua')
http://pastebin.com/FRhtGR8n
Enjoy =)