iFoxkun Posted December 6, 2011 Posted December 6, 2011 (edited) Not sure why it doesn't work. When I PM the npc "none" it works, but when I PM "Angel Wings" it doesn't work. Heres the script D; - script Wing -1,{ OnWhisperGlobal: // == No Sprite if(isequipped(24990)) { if(@whispervar0$ == "none") { atcommand "@changelook 2 0"; end; } else { end; } } // == Angel Wings if(isequipped(24990)) { if(@whispervar0$ == "Angel Wings") { atcommand "@changelook 2 1500"; end; } else { end; } } } Edited December 6, 2011 by iFoxkun Quote
iFoxkun Posted December 6, 2011 Author Posted December 6, 2011 (edited) Ahah xD thanks now i have to figure out how im gonna put every headgear xD until i learn how to use setarray! XD my signatre for mobile is <3 D:< im on mobile Edited December 6, 2011 by iFoxkun Quote
Pneuma Posted December 6, 2011 Posted December 6, 2011 I believe its because you are using the same whispervar? I'm not sure; Its been almost 2 years since i've used the script Quote
iFoxkun Posted December 6, 2011 Author Posted December 6, 2011 (edited) I believe its because you are using the same whispervar? I'm not sure; Its been almost 2 years since i've used the script Oh really, i thought it would be okay due to the "if" command. but if i change the "@whispervar0$" to "@whispervar1$". It's like this Var0 # Var1 meaning that something has to be infront of it correct D:? Edited December 6, 2011 by iFoxkun Quote
CalciumKid Posted December 6, 2011 Posted December 6, 2011 - script Wing -1,{ OnWhisperGlobal: // == No Sprite if(isequipped(24990)) { if(@whispervar0$ == "none") { atcommand "@changelook 2 0"; end; } else { end; } } // == Angel Wings if(isequipped(24990)) { if(@whispervar0$ == "AngelWings") { atcommand "@changelook 2 1500"; end; } else { end; } } } Try it without the space. Quote
Pneuma Posted December 6, 2011 Posted December 6, 2011 I believe its because you are using the same whispervar? I'm not sure; Its been almost 2 years since i've used the script Oh really, i thought it would be okay due to the "if" command. but if i change the "@whispervar0$" to "@whispervar1$". It's like this Var0 # Var1 meaning that something has to be infront of it correct D:? Like I said man, I havent used the script in 2 years so I'm not 100% sure, try combining the 2 Ifs like so: - script Wing -1,{ OnWhisperGlobal: // == No Sprite if(isequipped(24990)) { if(@whispervar0$ == "none") { atcommand "@changelook 2 0"; end; } else { if(@whispervar0$ == "Angel Wings") { atcommand "@changelook 2 1500"; end; } } } } Quote
iFoxkun Posted December 6, 2011 Author Posted December 6, 2011 (edited) - script Wing -1,{ OnWhisperGlobal: // == No Sprite if(isequipped(24990)) { if(@whispervar0$ == "none") { atcommand "@changelook 2 0"; end; } else { end; } } // == Angel Wings if(isequipped(24990)) { if(@whispervar0$ == "AngelWings") { atcommand "@changelook 2 1500"; end; } else { end; } } } Try it without the space. Nope It didn't work, I even tried changing Angel Wings to Angel_Wings but it didn't work ;_; I believe its because you are using the same whispervar? I'm not sure; Its been almost 2 years since i've used the script Oh really, i thought it would be okay due to the "if" command. but if i change the "@whispervar0$" to "@whispervar1$". It's like this Var0 # Var1 meaning that something has to be infront of it correct D:? Like I said man, I havent used the script in 2 years so I'm not 100% sure, try combining the 2 Ifs like so: - script Wing -1,{ OnWhisperGlobal: // == No Sprite if(isequipped(24990)) { if(@whispervar0$ == "none") { atcommand "@changelook 2 0"; end; } else { if(@whispervar0$ == "Angel Wings") { atcommand "@changelook 2 1500"; end; } } } } It works for Angel Wings but instead of changing the middle headgear it changes the upper and the "none" doesn't work anymore D: EDIT: "none works, but for upper D; EDIT AGAIN!: I was wearing 2 dyna's -.- It works! Thanks~ Edited December 6, 2011 by iFoxkun Quote
Pneuma Posted December 6, 2011 Posted December 6, 2011 Haha, you're welcome dude, I'm honestly surprised that worked Quote
Question
iFoxkun
Not sure why it doesn't work. When I PM the npc "none" it works, but when I PM "Angel Wings" it doesn't work. Heres the script D;
Edited by iFoxkun7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.