Cant Get This Script To Work

invertedinverted Join Date: 2004-02-16 Member: 26619Members, NS1 Playtester
<div class="IPBDescription">using a lastinv clientside</div> The description of this code is below. The 1st part is a client side lastinv that works, as my mouse 2 works as lastinv, the other binds are described below.

bind 1 "kk1a"
bind 2 "kk2a"
bind 3 "kk3a"
bind 4 "kk4a"

alias kk1a "kkslot1"
alias kk1b "kkslot1; alias lastw kk2a"
alias kk1c "kkslot1; alias lastw kk3a"
alias kk1d "kkslot1; alias lastw kk4a"
alias kkslot1 "slot1; bind 1 kk1a; bind 2 kk2a; bind 3 kk3a; bind 4 kk4a"

alias kk2a "kkslot2; alias lastw kk1b"
alias kk2b "kkslot2"
alias kk2c "kkslot2; alias lastw kk3b"
alias kk2d "kkslot2; alias lastw kk4b"
alias kkslot2 "slot2; bind 1 kk1b; bind 2 kk2b; bind 3 kk3b; bind 4 kk4b"

alias kk3a "kkslot3; alias lastw kk1c"
alias kk3b "kkslot3; alias lastw kk2c"
alias kk3c "kkslot3"
alias kk3d "kkslot3; alias lastw kk4c"
alias kkslot3 "slot3; bind 1 kk1c; bind 2 kk2c; bind 3 kk3c; bind 4 kk4c"

alias kk4a "kkslot4; alias lastw kk1d"
alias kk4b "kkslot4; alias lastw kk2d"
alias kk4c "kkslot4; alias lastw kk3d"
alias kk4d "kkslot4"
alias kkslot4 "slot4; bind 1 kk1d; bind 2 kk2d; bind 3 kk3d; bind 4 kk4d"

bind "mouse2" "lastw"
bind "mouse3" "lastw;+attack;-attack;lastw"
bind "mouse4" "weapon_leap;weapon_blink;+attack;-attack;lastw"

Ok so the above is a server side last inv I found and I wanted to use it to make a bind to mouse 3 and 4 that did
for mouse 3 changed to the previous weapon, then attacked with it until I let go of mouse 3 and then change back to my original weapon. So if I had selected leap then bite pressing mouse 3 would make me change to leap, leap and then change to bite.
for mouse 4 it was supposed to change to leap or blink depending on my race, if I am a gorge it should do nothing but attack then goto the last inv , then attack with blink/leap until I release it and then change back to the weapon that was selected previously.

Unfortunately neither of them work at all. I have tried moving the -attack to different places and adding +wait aswell. But I cant get it to do what it should do. Different versions have all been similar, some have attacked then changed weapons others have changed weapons and not attacked etc.

Any help would be so greatly appreciated

Thanks guys

Comments

  • DrfuzzyDrfuzzy FEW... MORE.... INCHES... Join Date: 2003-09-21 Member: 21094Members
    im getting SICK of saying this:
    <span style='font-size:21pt;line-height:100%'><a href='http://www.unknownworlds.com/forums/index.php?showforum=43' target='_blank'>ONLY POST QUESTIONS HERE</a></span>
  • TOMMYTANKTOMMYTANK Join Date: 2003-12-04 Member: 23938Members
    chill ****, hes new <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /><!--endemo-->

    ok, not being rude inverted, but u not think that u should use the controls like the rest of us do? i cant say that i havnt got binds/scripts (not in NS tho), but i just think it makes it a bit fairer.
  • LazerLazer Join Date: 2003-03-11 Member: 14406Members, Contributor, Constellation, NS2 Playtester
    edited February 2004
    No, if that is what I think it is it is an improved version of lastinv. So if you accidentally select a different weapon you aren't stuck having to correct your problems before using it again. This lets you select the weapons to toggle between and it can't "break". I made something like this for myself... here:

    //////////////////
    //First Second
    //////////////////
    alias "goprimaryFS" "slot1;+attack;wait;-attack;bind mouse3 smove_FS1"
    alias "gosecondaryFS" "slot2;+attack;wait;-attack;bind mouse3 smove_FS2"

    alias "smove_FS2" "goprimaryFS;"
    alias "smove_FS1" "gosecondaryFS;"

    //////////////////
    //Second Third
    //////////////////
    alias "gosecondaryST" "slot2;+attack;wait;-attack;bind mouse3 smove_ST1"
    alias "gothirdST" "slot3;+attack;wait;-attack;bind mouse3 smove_ST2"

    alias "smove_ST2" "gosecondaryST;"
    alias "smove_ST1" "gothirdST;"

    //////////////////
    //First Third
    //////////////////
    alias "goprimaryFT" "slot1;+attack;wait;-attack;bind mouse3 smove_FT1"
    alias "gothirdFT" "slot3;+attack;wait;-attack;bind mouse3 smove_FT2"

    alias "smove_FT2" "goprimaryFT;"
    alias "smove_FT1" "gothirdFT;"

    //////////////////
    //Here is the toggle between the three.
    //////////////////
    alias "smove_FS" "echo First Second Scripts;bind kp_del smove_ST;bind mouse3 smove_FS1"
    alias "smove_ST" "echo Second Third Scripts;bind kp_del smove_FT;bind mouse3 smove_ST1"
    alias "smove_FT" "echo First Third Scripts;bind kp_del smove_FS;bind mouse3 smove_FT1"

    //////////////////
    //The toggle button.
    //////////////////
    bind kp_del "smove_FS"
  • invertedinverted Join Date: 2004-02-16 Member: 26619Members, NS1 Playtester
    Ok sorry I will post a question from now on, but heaps of people dont have questions just there models. Heres my question why doesnt my script work

    I know scripts are bad but Im just seeing what they can and cant do, heaps of people use them and I had seen some here before. Believe me with all the trouble I have had with this small script I will give up after this one, but can I please get some help with this one I have spent ages on it and it refuses to work for me I wanna know now for curiosity as much as using it now. This could drive me insane. <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html//emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif' /><!--endemo--> <!--emo&???--><img src='http://www.unknownworlds.com/forums/html//emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif' /><!--endemo--> <!--emo&::nerdy::--><img src='http://www.unknownworlds.com/forums/html//emoticons/nerd.gif' border='0' style='vertical-align:middle' alt='nerd.gif' /><!--endemo-->
  • invertedinverted Join Date: 2004-02-16 Member: 26619Members, NS1 Playtester
    Haha thanks lazer but I think I have a way to get mine to work. I will try it when I get home.

    bind 1 "kk1a"
    bind 2 "kk2a"
    bind 3 "kk3a"
    bind 4 "kk4a"

    alias kk1a "kkslot1"
    alias kk1b "kkslot1; alias lastw kk2a"
    alias kk1c "kkslot1; alias lastw kk3a"
    alias kk1d "kkslot1; alias lastw kk4a"
    alias kkslot1 "slot1; bind 1 kk1a; bind 2 kk2a; bind 3 kk3a; bind 4 kk4a"

    alias kk2a "kkslot2; alias lastw kk1b"
    alias kk2b "kkslot2"
    alias kk2c "kkslot2; alias lastw kk3b"
    alias kk2d "kkslot2; alias lastw kk4b"
    alias kkslot2 "slot2; bind 1 kk1b; bind 2 kk2b; bind 3 kk3b; bind 4 kk4b"

    alias kk3a "kkslot3; alias lastw kk1c"
    alias kk3b "kkslot3; alias lastw kk2c"
    alias kk3c "kkslot3"
    alias kk3d "kkslot3; alias lastw kk4c"
    alias kkslot3 "slot3; bind 1 kk1c; bind 2 kk2c; bind 3 kk3c; bind 4 kk4c"

    alias kk4a "kkslot4; alias lastw kk1d"
    alias kk4b "kkslot4; alias lastw kk2d"
    alias kk4c "kkslot4; alias lastw kk3d"
    alias kk4d "kkslot4"
    alias kkslot4 "slot4; bind 1 kk1d; bind 2 kk2d; bind 3 kk3d; bind 4 kk4d"

    bind "mouse2" "lastw"
    alias +atswitch "lastw;+attack"
    alias -atswitch "-attack;lastw"
    bind "mouse3" "+atswitch"
Sign In or Register to comment.