strutZ
Australian OT Member {AKA Beastn}
- Joined
- Nov 16, 2014
- Messages
- 1,391
- Solutions
- 7
- Reaction score
- 550
Hey Otland,
I made a addon and mount doll script that uses Modal Windows. No more typing "!addon"Demon" All you need to do is use the doll and select the mount/addon from the list.
FEATURES
- Confirm button is not enabled if addon doll is not in backpack
- Error message if using doll in backpack and then throwing on ground
- All outfits/mounts from 10.76
- Tested with TFS 1.1 and 1.2
First up you'll need to register these to events in your login.lua.
Next you will need to make sure you enable the scripts in both your actions.xml and your creaturescripts.xml as following
(data/actions/actions.xml)
data/creaturescripts/creaturescripts.xml
Next, Add these into the following paths
Mount Doll
/data/creaturescripts/scripts/modalMD.lua
http://pastebin.com/JeMuWvt8
Addon Doll
/data/creaturescripts/scripts/modalAD.lua
http://pastebin.com/nRF0sje8
Mount Doll
/data/actions/scripts/modalMD.lua
http://pastebin.com/jDJHLa7L
Addon Doll
/data/actions/scripts/modalAD.lua
http://pastebin.com/fiL9cEef
Thats it!
Regards,
Beastn.
CREDITS
@RazorBlade
I made a addon and mount doll script that uses Modal Windows. No more typing "!addon"Demon" All you need to do is use the doll and select the mount/addon from the list.
FEATURES
- Confirm button is not enabled if addon doll is not in backpack
- Error message if using doll in backpack and then throwing on ground
- All outfits/mounts from 10.76
- Tested with TFS 1.1 and 1.2
First up you'll need to register these to events in your login.lua.
Code:
'modalAD',
'modalMD'
Next you will need to make sure you enable the scripts in both your actions.xml and your creaturescripts.xml as following
(data/actions/actions.xml)
Code:
<action itemid="8982" script="custom/modalAD.lua"/>
<action itemid="9019" script="custom/modalMD.lua"/>
data/creaturescripts/creaturescripts.xml
Code:
<event type="modalwindow" name="modalAD" script="custom/modalAD.lua"/>
<event type="modalwindow" name="modalMD" script="custom/modalMD.lua"/>
Next, Add these into the following paths
Mount Doll
/data/creaturescripts/scripts/modalMD.lua
http://pastebin.com/JeMuWvt8
Addon Doll
/data/creaturescripts/scripts/modalAD.lua
http://pastebin.com/nRF0sje8
Mount Doll
/data/actions/scripts/modalMD.lua
http://pastebin.com/jDJHLa7L
Addon Doll
/data/actions/scripts/modalAD.lua
http://pastebin.com/fiL9cEef
Thats it!
Regards,
Beastn.
CREDITS
@RazorBlade
Last edited: