Jump to content
  • 0

Whispering an NPC


Question

Posted (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 by iFoxkun

7 answers to this question

Recommended Posts

Posted (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 by iFoxkun
Posted (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 by iFoxkun
Posted

- 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.

Posted

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; }
}
}
}

Posted (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 by iFoxkun

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...