Item Search
     
BG-Wiki Search
Page 213 of 328 FirstFirst ... 163 203 211 212 213 214 215 223 263 ... LastLast
Results 4241 to 4260 of 6548
  1. #4241
    Salvage Bans
    Join Date
    Mar 2010
    Posts
    769
    BG Level
    5
    FFXI Server
    Leviathan

    On line 11, you have a distance variable and its set to 6.5'. It's been a long time since I have fought Glavoid, but I think you can hit it from further then that, so changing that variable would have allowed you to WS. Shackled Fists is the trigger spell that allows you to change this distance on the fly.

    Edit: Same goes for Tyler.

  2. #4242
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    Quote Originally Posted by Ikonic
    Is it possible with spellcast to split a variable? What I want to do is pass a variable such as m1m2p1 or m.m2.p1 and have it split into 3 variables (m1, m2, p1) that I can then use to run predefined commands with.
    Need clarification. You mean you want some way of passing a value into spellcast that you can then examine for multiple potential values within the variable itself?

    EG: instead of [/ws "Shackled Fists"] to set weaponskill distance, [/ws "Shackled Fists" m.m2.p1], and be able to check the m.m2.p1 value?


    This can be done via the SpellTargetRaw variable/rule. SpellTargetRaw contains everything after the spell name as it was originally written, though it does have some restrictions based on how the spell name itself is parsed, and it cannot contain any spaces. It also has issues with the singular numeral "1", so avoid that.

    The sort of testing you'd need to extract multiple values would depend on the formatting of the variable. I'd certainly recommend the use of a delimiter character such as the period you used in your example, though full delimiters would make it easier to parse, though a bit more difficult to type (eg: (m)(m1)(p1) would make it so you don't have to worry about the order of the values at all).

    So you could then test something like:

    Code:
    <if Spell="$MyTriggerSpell">
        <if SpellTargetRaw="m.*">
            ~ first item
        </if>
        <if SpellTargetRaw="*.m1.*">
            ~ second item
        </if>
        <if SpellTargetRaw="*.p1">
            ~ third item
        </if>
        
        <!-- Less likely to break: -->
        <if SpellTargetRaw="*(m)*">
            ~ first item
        </if>
        <if SpellTargetRaw="*(m1)*">
            ~ second item
        </if>
        <if SpellTargetRaw="*(p1)*">
            ~ third item
        </if>
    </if>

    Now, if you want to actually extract the value and make use of it, that's a bit more problematic. For example, [/ws "Shackled Fists" distance:7.0], and trying to assign 7.0 as the weaponskill distance. There aren't any standard means of extracting a portion of the variable value for use, however it might be possible if you can use a regex in a <var> command (I haven't tried this). Barring that, you'd have to use a brute-force approach of checking all possible input values, and assigning the appropriate result based on the input.

  3. #4243
    Melee Summoner
    Join Date
    Mar 2010
    Posts
    25
    BG Level
    1
    FFXI Server
    Caitsith

    I'd like to extract the values from what I pass. My plan is to use this for my BRD xml to be able to pass 3 song codes and then have spellcast split them and sing each song according to code so that it can handle all waits instead of having to have waits within my aliases. The order would be important since I would want songs to be sung in a specific order.

    I could even have various delimiters to designate order of songs or if song is to use Daurdabla. Something like m1.m2/i1 vs m1.m2,i1 if that would make it easier to parse.

    Current alias examples:
    alias vmmi send vivika /ma Victory March;wait 12;send vivika /ma Advancing March;wait 12;send vivika /ma Valor Minuet V
    alias vmmid send vivika /ma Victory March;wait 12;send vivika /ma Advancing March;wait 1;3rd;wait 11;send vivika /ma Valor Minuet V
    alias viii send vivika /ma Valor Minuet V;wait 12;send vivika /ma Valor Minuet IV;wait 12;send vivika /ma Valor Minuet III
    alias viiid send vivika /ma Valor Minuet V;wait 12;send vivika /ma Valor Minuet IV;wait 1;3rd;wait 11;send vivika /ma Valor Minuet III
    alias 3rd send vivika \/\/sc var set thirdsong 1

    Song Codes:
    m1 = Victory March
    m2 = Advancing March
    i1 = Valor Minuet V
    i2 = Valor Minuet IV
    i3 = Valor Minuet III

    Also, is there anywhere I can look to find more information about spellcast coding (specifically SpellTargetRaw)? I've read everything I can find on the windower wiki, windower forum, and bg, but there's not a lot of details for coding.

  4. #4244
    New Spam Forum
    Join Date
    Mar 2008
    Posts
    171
    BG Level
    3
    FFXI Server
    Ragnarok

    I've not found much luck in making daurdabla any easier to use even with SC. I've pretty much given up and use a sc var to lock in daurdabla for the 3rd cast but it's a pretty manual process as far as casting.

    I'd be interested in anything you find out though.

  5. #4245
    Puppetmaster
    Join Date
    Dec 2011
    Posts
    57
    BG Level
    2

    Quote Originally Posted by Haborym View Post
    On line 11, you have a distance variable and its set to 6.5'. It's been a long time since I have fought Glavoid, but I think you can hit it from further then that, so changing that variable would have allowed you to WS. Shackled Fists is the trigger spell that allows you to change this distance on the fly.

    Edit: Same goes for Tyler.
    Cool thx. Makes sense and I love not lossing tp if out of range that's a great feature

    So is it /ma shackled fist 10? Sorry what would the command look like? Thx

  6. #4246
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    Quote Originally Posted by Tyler View Post
    Cool thx. Makes sense and I love not lossing tp if out of range that's a great feature

    So is it /ma shackled fist 10? Sorry what would the command look like? Thx
    Just [//shackled fists] from the command line, or [/ws "Shackled Fists"] or whatever. It sets the max distance to be whatever distance you're standing at at the moment.

  7. #4247
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    Quote Originally Posted by Ikonic View Post
    I'd like to extract the values from what I pass. My plan is to use this for my BRD xml to be able to pass 3 song codes and then have spellcast split them and sing each song according to code so that it can handle all waits instead of having to have waits within my aliases. The order would be important since I would want songs to be sung in a specific order.

    I could even have various delimiters to designate order of songs or if song is to use Daurdabla. Something like m1.m2/i1 vs m1.m2,i1 if that would make it easier to parse.

    Current alias examples:
    alias vmmi send vivika /ma Victory March;wait 12;send vivika /ma Advancing March;wait 12;send vivika /ma Valor Minuet V
    alias vmmid send vivika /ma Victory March;wait 12;send vivika /ma Advancing March;wait 1;3rd;wait 11;send vivika /ma Valor Minuet V
    alias viii send vivika /ma Valor Minuet V;wait 12;send vivika /ma Valor Minuet IV;wait 12;send vivika /ma Valor Minuet III
    alias viiid send vivika /ma Valor Minuet V;wait 12;send vivika /ma Valor Minuet IV;wait 1;3rd;wait 11;send vivika /ma Valor Minuet III
    alias 3rd send vivika \/\/sc var set thirdsong 1

    Song Codes:
    m1 = Victory March
    m2 = Advancing March
    i1 = Valor Minuet V
    i2 = Valor Minuet IV
    i3 = Valor Minuet III

    Also, is there anywhere I can look to find more information about spellcast coding (specifically SpellTargetRaw)? I've read everything I can find on the windower wiki, windower forum, and bg, but there's not a lot of details for coding.

    SpellTargetRaw is just like any other variable. You can use <if SpellTargetRaw="something">, or <if SpellTarget="%SpellTargetRaw"> or whatever. The only thing unique about it is the ability to pass in a string value when you perform an action, and read it before Spellcast tries to convert it to a player name or target selection.

    If I were doing something like this, this is how I would go about it:

    Define delimiters for 1st/2nd/3rd song. EG:

    (Q) -- Q is the first song
    [Q] -- Q is the second song
    {Q} -- Q is the third song

    Use a backtick (`) as a flag for Daurdubla to be used on the following song.

    So you could have something like:

    (m1)[m2]`{i5}

    Then, assuming you're using the new Radsources and, we'll say, the ClassTrigger trigger.

    Code:
    <var name="UseDaurdabla">No</var>
    <var name="DaurdablaFlag">No</var>
    <var name="Song">None</var>
    <var name="WaitTime">12</var>
    <var name="Command1">wait 0</var>
    <var name="Command2">wait 0</var>
    <var name="Command3">wait 0</var>
    
    
    <if Spell="ClassTrigger">
        <cancelspell />
        
        <if SpellTargetRaw="*(*)*">
            <!-- First song -->
            <if SpellTargetRaw="*`(*">
                <var cmd="set DaurdablaFlag Yes" />
            </if>
            <else>
                <var cmd="set DaurdablaFlag No" />
            </else>
            
            <if SpellTargetRaw="*(m1)*">
                <var cmd="set Song Victory March" />
            </if>
            <elseif SpellTargetRaw="*(m2)*">
                <var cmd="set Song Advancing March" />
            </elseif>
            <elseif SpellTargetRaw="*(i1)*">
                <var cmd="set Song Valor Minuet V" />
            </elseif>
            <elseif SpellTargetRaw="*(i2)*">
                <var cmd="set Song Valor Minuet IV" />
            </elseif>
            <elseif SpellTargetRaw="*(i3)*">
                <var cmd="set Song Valor Minuet III" />
            </elseif>
            
            <var cmd="set Command1 spellcast var set UseDaurdabla $DaurdablaFlag; input /ma $Song" />
        </if>
        <else>
            <var cmd="set Command1 wait 0" />
        </else>
        
        <if SpellTargetRaw="*[*]*">
            <!-- Second song -->
            <if SpellTargetRaw="*`[*">
                <var cmd="set DaurdablaFlag Yes" />
            </if>
            <else>
                <var cmd="set DaurdablaFlag No" />
            </else>
            
            <if SpellTargetRaw="*[m1]*">
                <var cmd="set Song Victory March" />
            </if>
            <elseif SpellTargetRaw="*[m2]*">
                <var cmd="set Song Advancing March" />
            </elseif>
            <elseif SpellTargetRaw="*[i1]*">
                <var cmd="set Song Valor Minuet V" />
            </elseif>
            <elseif SpellTargetRaw="*[i2]*">
                <var cmd="set Song Valor Minuet IV" />
            </elseif>
            <elseif SpellTargetRaw="*[i3]*">
                <var cmd="set Song Valor Minuet III" />
            </elseif>
            
            <var cmd="set Command2 wait $WaitTime;spellcast var set UseDaurdabla $DaurdablaFlag; input /ma $Song" />
        </if>
        <else>
            <var cmd="set Command2 wait 0" />
        </else>
    
        <if SpellTargetRaw="*{*}*">
            <!-- Third song -->
            <if SpellTargetRaw="*`{*">
                <var cmd="set DaurdablaFlag Yes" />
            </if>
            <else>
                <var cmd="set DaurdablaFlag No" />
            </else>
            
            <if SpellTargetRaw="*{m1}*">
                <var cmd="set Song Victory March" />
            </if>
            <elseif SpellTargetRaw="*{m2}*">
                <var cmd="set Song Advancing March" />
            </elseif>
            <elseif SpellTargetRaw="*{i1}*">
                <var cmd="set Song Valor Minuet V" />
            </elseif>
            <elseif SpellTargetRaw="*{i2}*">
                <var cmd="set Song Valor Minuet IV" />
            </elseif>
            <elseif SpellTargetRaw="*{i3}*">
                <var cmd="set Song Valor Minuet III" />
            </elseif>
            
            <var cmd="set Command3 wait $WaitTime;spellcast var set UseDaurdabla $DaurdablaFlag; input /ma $Song" />
        </if>
        <else>
            <var cmd="set Command3 wait 0" />
        </else>
        
        <command>$Command1;$Command2;$Command3</command>
    </if>
    then

    Code:
    <if Type="BardSong">
        <if advanced='"$UseDaurdabla"="Yes"'>
            <equip when="Precast|Midcast">
                <range lock="t">Daurdabla</range>
            </equip>
        </if>
        
        ... other stuff
    </if>

  8. #4248
    Melee Summoner
    Join Date
    Mar 2010
    Posts
    25
    BG Level
    1
    FFXI Server
    Caitsith

    Quote Originally Posted by Motenten View Post
    Bunch of stuff
    This definitely gives me something to work with. It's not exactly how I was wanting to go about it, but I can make it work.

    Quote Originally Posted by Sekundes View Post
    I've not found much luck in making daurdabla any easier to use even with SC.
    As for using Daurdabla I have a very simple way to go about that:

    Code:
    <variables>
     <var name="thirdsong">0</var>
    </variables>
    Code:
    <elseif type="BardSong">
     <if advanced='$thirdsong=1'>
      <addtochat>Third Song Active, Locking Daurdabla</addtochat>
      <equip when="precast" set="daurdabla" />
      <action type="ChangeLock" when="precast|midcast|aftercast|engaged" slot="range|ammo" lock="yes" />
      <var cmd='set thirdsong 0' />
     </if>
    ... rest of song rules ...
    </elseif>
    Code:
    alias 3rd send vivika \/\/sc var set thirdsong 1
    I can //3rd if i forget to pass the command before the 3rd song starts and still activate Daurdabla.

  9. #4249
    ccl
    ccl is offline
    Old Merits
    Join Date
    Sep 2008
    Posts
    1,016
    BG Level
    6
    FFXI Server
    Asura

    What's the buff active rule for a vw set ?

  10. #4250
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    <if buffactive="Voidwatcher">

  11. #4251
    ccl
    ccl is offline
    Old Merits
    Join Date
    Sep 2008
    Posts
    1,016
    BG Level
    6
    FFXI Server
    Asura

    Quote Originally Posted by Yugl View Post
    <if buffactive="Voidwatcher">
    thank you.

  12. #4252
    Hydra
    Join Date
    Dec 2008
    Posts
    104
    BG Level
    3
    FFXI Server
    Siren

    Already posted this on the RQT but I have no idea what's going on and I already tried uninstalling etc..

    My spellcast refuses to work for me when I'm on SCH, but works perfectly on every other job. I'm trying everything but I can't get it to work, the moment I use a macro (regardless if its tailored for SC, ex: /equip feet "Desert Boots" <me>) spellcast crashes, and if I reload and try again, FFXI completely crashes.

    This is my latest debug:
    Spoiler: show

    [5:56:33 PM] 10556:<0> SPELLCAST::INIT - Version 2.45
    [5:56:33 PM] 10556:<0> Attempting to auto load XML.
    [5:56:33 PM] 10556:<0> Checking: Necromage/SCH_BLM
    [5:56:33 PM] 10556:<0> Loading filename: Necromage/SCH_BLM.xml
    [5:56:33 PM] 10556:<0> Checking: Necromage/SCH
    [5:56:33 PM] 10556:<0> Loading filename: Necromage/SCH.xml
    [5:56:33 PM] 10556:<0> Checking: Necromage_SCH_BLM
    [5:56:33 PM] 10556:<0> Loading filename: Necromage_SCH_BLM.xml
    [5:56:33 PM] 10556:<0> Checking: Necromage_SCH
    [5:56:33 PM] 10556:<0> Loading filename: Necromage_SCH.xml
    [5:56:33 PM] 10556:<0> Checking: SCH_BLM
    [5:56:33 PM] 10556:<0> Loading filename: SCH_BLM.xml
    [5:56:33 PM] 10556:<0> Checking: SCH
    [5:56:33 PM] 10556:<0> Loading filename: SCH.xml
    [5:56:33 PM] 10556:<0> Checking: Necromage/default.xml
    [5:56:33 PM] 10556:<0> Loading filename: Necromage/default.xml
    [5:56:33 PM] 10556:<0> Checking: Necromage
    [5:56:33 PM] 10556:<0> Loading filename: Necromage.xml


    forgot to mention: The error is "Spellcast encountered a fatal error and must be terminated. Error: Access violation in OutgoingText method."

  13. #4253
    New Spam Forum
    Join Date
    Mar 2008
    Posts
    171
    BG Level
    3
    FFXI Server
    Ragnarok

    Quote Originally Posted by Ikonic View Post
    As for using Daurdabla I have a very simple way to go about that:

    Code:
    <variables>
     <var name="thirdsong">0</var>
    </variables>
    Code:
    <elseif type="BardSong">
     <if advanced='$thirdsong=1'>
      <addtochat>Third Song Active, Locking Daurdabla</addtochat>
      <equip when="precast" set="daurdabla" />
      <action type="ChangeLock" when="precast|midcast|aftercast|engaged" slot="range|ammo" lock="yes" />
      <var cmd='set thirdsong 0' />
     </if>
    ... rest of song rules ...
    </elseif>
    Code:
    alias 3rd send vivika \/\/sc var set thirdsong 1
    I can //3rd if i forget to pass the command before the 3rd song starts and still activate Daurdabla.
    I use something pretty similar but it's not really as automated as I want.

    Code:
    <var name="3rdSong">0</var>
    
    <if advanced='"$3rdSong" == 1' SpellTargetType="Player|Self">
    				<equip when="Precast|Midcast"><range Lock="True">Daurdabla</range></equip>
    				<cmd>input /echo Daurdabla Active</cmd>
    				<var cmd="set 3rdSong 0" />
    			</if>
    Also have a macro that does: /sc v s 3rdSong 1
    This sets the variable so I can cast the third song, whatever it is with Daurdabla.

    As far as I know, buffactive can't see two of the same song so it makes it rather difficult to make a flexible spellcast control for it.

    One of the main reasons I've just decided to go for manual control is simply because regardless of if my alt has 3 songs or not, if someone else in the pt does not, then it won't override correctly for them.

  14. #4254
    Radsourceful

    Join Date
    Jul 2007
    Posts
    1,964
    BG Level
    6
    FFXI Server
    Bismarck

    Quote Originally Posted by Necromage View Post
    Already posted this on the RQT but I have no idea what's going on and I already tried uninstalling etc..

    My spellcast refuses to work for me when I'm on SCH, but works perfectly on every other job. I'm trying everything but I can't get it to work, the moment I use a macro (regardless if its tailored for SC, ex: /equip feet "Desert Boots" <me>) spellcast crashes, and if I reload and try again, FFXI completely crashes.

    This is my latest debug:
    Spoiler: show

    [5:56:33 PM] 10556:<0> SPELLCAST::INIT - Version 2.45
    [5:56:33 PM] 10556:<0> Attempting to auto load XML.
    [5:56:33 PM] 10556:<0> Checking: Necromage/SCH_BLM
    [5:56:33 PM] 10556:<0> Loading filename: Necromage/SCH_BLM.xml
    [5:56:33 PM] 10556:<0> Checking: Necromage/SCH
    [5:56:33 PM] 10556:<0> Loading filename: Necromage/SCH.xml
    [5:56:33 PM] 10556:<0> Checking: Necromage_SCH_BLM
    [5:56:33 PM] 10556:<0> Loading filename: Necromage_SCH_BLM.xml
    [5:56:33 PM] 10556:<0> Checking: Necromage_SCH
    [5:56:33 PM] 10556:<0> Loading filename: Necromage_SCH.xml
    [5:56:33 PM] 10556:<0> Checking: SCH_BLM
    [5:56:33 PM] 10556:<0> Loading filename: SCH_BLM.xml
    [5:56:33 PM] 10556:<0> Checking: SCH
    [5:56:33 PM] 10556:<0> Loading filename: SCH.xml
    [5:56:33 PM] 10556:<0> Checking: Necromage/default.xml
    [5:56:33 PM] 10556:<0> Loading filename: Necromage/default.xml
    [5:56:33 PM] 10556:<0> Checking: Necromage
    [5:56:33 PM] 10556:<0> Loading filename: Necromage.xml


    forgot to mention: The error is "Spellcast encountered a fatal error and must be terminated. Error: Access violation in OutgoingText method."
    Sounds like you have some post march26 update gear on for sch. Try //updateresources (it works now, I promise!) and see if that helps.

  15. #4255
    Hydra
    Join Date
    Dec 2008
    Posts
    104
    BG Level
    3
    FFXI Server
    Siren

    Quote Originally Posted by Radec View Post
    Sounds like you have some post march26 update gear on for sch. Try //updateresources (it works now, I promise!) and see if that helps.
    I did that the other day and nothing happened, and yet today it worked and fixed everything. Thank you!

  16. #4256
    Salvage Bans
    Join Date
    Mar 2010
    Posts
    769
    BG Level
    5
    FFXI Server
    Leviathan

    Ok I need some help on this. My and Yugl tried the other day, but we couldn't quit get it to work, so I'm asking here to see if anyone else has any ideas. There is two problems, at least that I know of. One, when I have Bravura equipped and I gain aftermath my TP set does not trigger on aftercast. If aftermath is already up and I WS all works as it should. The second problem is with my rule for PD/Physical Shield. I use Herb Pastoral as the trigger spell and it doesn't seem to work. The trigger spell gives me the "...A command error occured." message.

    Here is my spellcast file, let me know if you want, or need the autoexec or include files. Thanks in advance for the help.

  17. #4257
    xXNyteFyreXx420Sharingan
    Join Date
    May 2009
    Posts
    3,709
    BG Level
    7
    FFXI Server
    Fenrir

    Is Netherspikes your AutoExec trigger for recognizing aftermath?

    Mind posting a debug log of you using Metatron Torment? Might be easier to find the issue that way.

  18. #4258
    Salvage Bans
    Join Date
    Mar 2010
    Posts
    769
    BG Level
    5
    FFXI Server
    Leviathan

    Yeah I use that as the tigger. here are the two AutoExec rules that relate to the above post.

    Code:
    <register event="gainbuff_Aftermath|losebuff_Aftermath" silent="true">input /weaponskill "Netherspikes" &lt;t&gt;</register>
    <register event="gainbuff_*Shield|losebuff_*Shield|gainbuff_Perfect*|losebuff_Perfect*" silent="true">input /ma "Herb Pastoral"</register>
    Edit:
    The debug file.

  19. #4259
    xXNyteFyreXx420Sharingan
    Join Date
    May 2009
    Posts
    3,709
    BG Level
    7
    FFXI Server
    Fenrir

    <command>Dancing Chains</command> should be <command when="precast">Dancing Chains</command> at line 559. Your <cancelspell/> command for Netherspikes means it never executes beyond precast phase, so Dancing Chains never fires on a trigger spell as written.

    I think that's it anyway... just realized I don't have when="precast" in my xmls either, but my <cancelspell/> command is placed differently which may allow for Dancing Chains to process first.

  20. #4260
    Masamune
    Guest

    is not when="Precast" the default for ALL xml commands (<equip/><cmd/><addtochat/><var/>) ?

Page 213 of 328 FirstFirst ... 163 203 211 212 213 214 215 223 263 ... LastLast

Similar Threads

  1. Spellcast Shop Thread
    By Yugl in forum FFXI: Everything
    Replies: 232
    Last Post: 2014-03-18, 04:47
  2. time spent on ls events, helping friends and your own time
    By freewind in forum FFXI: Everything
    Replies: 6
    Last Post: 2005-09-06, 16:42