Jump to content
  • 0

Function? Changelook random viewid.


Currently

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

Example: A potion that when used. randomly changelook "middle" headgear with viewids between 1527~1621

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

OnPCStatCalcEvent_17097.patch

prontera,156,182,5    script    kjfhskjf    100,{
   input @changelook_mid_head;
   if ( @changelook_mid_head )
       changelook LOOK_HEAD_MID, @changelook_mid_head;
   else if ( !@changelook_mid_head && getequipid( EQI_HEAD_MID ) != -1 )
       changelook LOOK_HEAD_MID, getiteminfo( getequipid( EQI_HEAD_MID ),11 );
   close;
OnPCStatCalcEvent:
   if ( @changelook_mid_head )
       changelook LOOK_HEAD_MID, @changelook_mid_head;
   end;
}

if you can understand this script, your request is no problem

something like

OnItemUse:
   @changelook_mid_head = rand(1527,1621);
   end;
OnPCStatCalcEvent:
   if ( @changelook_mid_head )
       changelook LOOK_HEAD_MID, @changelook_mid_head;
   end;

  • Upvote 1
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...