Jump to content
  • 0

Dyna script?


50ShadesOfGrey

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  09/14/12
  • Last Seen:  

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
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

"@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);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  09/14/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Oh, never mind, getiteminfo doesn't retrieve View ID for some reason... o.o

You'll have to use getiteminfo(x,11) then, but it requires multiple checks. See Toasty's item preview script for an example: http://sushiduy.plesk3.freepgs.com/ROScripts/preview_v101.txt

Link to comment
Share on other sites

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.

×
×
  • Create New...