I think there's a way to determine which mounts people have, which Shortcuts does. This addon should be possible.
I think there's a way to determine which mounts people have, which Shortcuts does. This addon should be possible.
and you can use this to get a random number
math.floor(math.random(1, 5))
math.ceil(math.random(0, 4))
See here is where I fail, I have no idea how you would utilize that random number thing. I honestly wouldnt know where to begin on something like this.
math.random(0,#mountarray) will return a number between 0 and the number of elements in mountarray. That number will be ceil()'d and will give you an integer from 0 to #mountarray, which is astronomically unlikely to be 0 but will error out if it is. Anyway, then it look for that key in the mountarray table and returns the string value associated with it.Code:mountarray = {[1]="Crab",[2]="Tiger"} -- etc. generate this dynamically based on the mounts they have function random_mount(mountarray) return mountarray[math.ceil(math.random(0,#mountarray))] end
I have a couple of questions about the dressup addon for windower, but I tried to make an account at windower.net and the registration process is broken, sends a link to your email address that doesn't work, and the code given doesn't work either, tried it 2x to be sure, so I decided to come over to this huge thread to ask my questions and hopefully get them answered, so here goes.
I have the DressUp addon for windower and I can't for the life of me figure out how to stop my character from blinking or other chars from blinking. I looked at the link for the readme but I can't make heads or tails of that thing. I tried //du blinking self on- still blinked so I tried //du blinking self off and that didn't work either, so if someone knows how to turn the blinking off like blinkmenot used to do, please share because I am really frustrated trying figure this out. Thanks
I think the old blinkmenot commands work with dressup or did at one time. did you try typing "//dressup help" most addons will print out commands when you type help at the end. I am not on my pc with ffxi atm so i cant check if that works for this addon or not.
You might need to completely unload the addons then alter the settings xml file. Sometimes the addons like to keep their settings while loaded. I cant believe i totally forgot about that method anyway, I use it half the time myself. Also if i think back on it I think that blinking command i could never get to work but the old blinkmenot ones would work for me. I dunno why, that just how it was.
OK so the the command for summoning mounts taken from the version update notes was
How do you utilize that from the random selection? Unless you can figure out how to do it via packets or whatever. I dunno whatever is easiest.You may also mount using the text command /mount [mount name].
windower.send_command('input /mount '..random_mount(mountarray)..' <me>')
like this
Code:function random_mount(mountarray) local select_mount = 0 while select_mount < 1 do select_mount = math.ceil(math.random(0,#mountarray))] end return mountarray[select_mount] end function UseMount() --Build mountarray not sure how to do this because i dont know where to look for mounts you have windower.send_command("input /mount "..random_mount(mountarray)) end
Just tossed together your code parts with some of that copywrite stuff you guys likeCode:--[[ Copyright (c) 2013, Whoever All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of azureSets nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL The Addon's Contributors BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ]] _addon.name = 'MountUp' _addon.version = '1.00' _addon.author = 'Whoever (Shiva)' _addon.commands = {'mu','mountup'} mountarray = {[1]="Crab",[2]="Tiger"} -- etc. generate this dynamically based on the mounts they have function random_mount(mountarray) local select_mount = 0 while select_mount < 1 do select_mount = math.ceil(math.random(0,#mountarray))] end return mountarray[select_mount] end function UseMount() --Build mountarray not sure how to do this because i dont know where to look for mounts you have windower.send_command("input /mount "..random_mount(mountarray)) end
And then to use you would type?
//mu usemount
When I created the account and was sent to my email and clicked the link provided I got:
PWM 5033
The PWM configuration is invalid or corrupt. Please correct the error, or remove the configuration file. { 5033 ERROR_INVALID_CONFIG (New User Registration -> New User Form does not contain the ldap naming attribute 'cn', but is required because it is the ldap naming attribute and the username is not being automatically generated.) }
And when I use the code given and click the verify or whatever it is I get sent back to the account making screen:
New User Registration
Password Self Service
To register a new account, please complete the following form. Your password must conform to the following requirements:
Password is not case sensitive.
Must be at least 5 characters long.
Must not include any of the following values: password test
Must not include part of your name or username.
Must not include a common word or commonly used sequence of characters.
Username
Email Address
First name
Last name
New Password
Confirm Password
Create
To me that's broken
Lockstyle is amazing. i still use the blinkmenot features of Dressup though. But I also dual box and it helps with mule followin and some blinking like if i change weapon mid fight that lockstyle doesnt keep you from blinking. but the modifyin the settings file is literally not coding. you open the settings file in the data folder of that addon (via notepad or notepad++) and change falses to true and vice versa save and load the addon. its not even complex. This is the entirety of the settings file (some settings files are even less than this). just alter the parts in the blinking. Also dressup helps cause there are still assholes out there who dont use lockstyle and they will be blinkin like a christmas tree if you are ever a job that might have to target anything during battle like WHM for example.
Code:<?xml version="1.1" ?> <settings> <global> <autoupdate>false</autoupdate> <blinking> <all> <always>false</always> <combat>true</combat> <target>true</target> </all> <follow> <always>true</always> <combat>true</combat> <target>true</target> </follow> <others> <always>false</always> <combat>true</combat> <target>true</target> </others> <party> <always>false</always> <combat>true</combat> <target>true</target> </party> <self> <always>false</always> <combat>true</combat> <target>true</target> </self> </blinking> <others> </others> <profiles> </profiles> <replacements> <body> </body> <face> </face> <feet> </feet> <hands> </hands> <head> </head> <legs> </legs> <main> </main> <race> </race> <ranged> </ranged> <sub> </sub> </replacements> </global> </settings>