Jump to content
  • 0

Question

Posted (edited)

I'm not sure what it's called, but in other servers it was called "Dyna". If wearing an item, you can whisper a NPC and change to your desired look.

Example - Wearing Bunny hat( Item ID 19805 ) whisper NPC:Dyna, saying "*Name of item*", then it will change to that look..

I've tried this, but when I type in the name, it doesn't change my look..? "None" works though.

- script Dyna -1,{
OnWhisperGlobal:
// == No Sprite
if(isequipped(19805)) {
if(@whispervar0$ == "None") {
atcommand "@changelook 2 0";
end;
} else {
if(@whispervar0$ == "Elemental Wings") {
atcommand "@changelook 2 19810";
end; }
}
}
}

Edited by 50ShadesOfGrey

3 answers to this question

Recommended Posts

Posted

"@changelook" uses View ID, not item ID. The "location" parameter is optional. I'd suggest using item ID as input instead of name, as one command will be able to handle all cases, then (after conditionals):

atcommand "@changelook "+getiteminfo(atoi(@whispervar0$),14);

Posted

"@changelook" uses View ID, not item ID. The "location" parameter is optional. I'd suggest using item ID as input instead of name, as one command will be able to handle all cases, then (after conditionals):

atcommand "@changelook "+getiteminfo(atoi(@whispervar0$),14);

I apologize if this isn't what you mean, but I tried this and when I say "19816" It changes my headgear to nothing.

- script Dyna -1,{
OnWhisperGlobal:
// == No Sprite
if(isequipped(19805)) {
if(@whispervar0$ == "None") {
atcommand "@changelook 2 0";
end;
} else {
if(@whispervar0$ == "19816") {
atcommand "@changelook "+getiteminfo(atoi(@whispervar0$),14);
end; }
}
}
}

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