Jump to content
  • 0

cutin


luizinhomt

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   1
  • Joined:  01/05/13
  • Last Seen:  

Good evening everyone, would anyone know the code to place a cutin inside a window? I wanted to put my cutin inside a window like this for interacting with an NPC

Thank you very much in advance

Edited by luizinhomt
edit
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

3 hours ago, luizinhomt said:

Thank you for answering more than I need and may the cutin stay within the window.

I saw this on a server, it looks better because you can move the window to another place to better view the image

errocutin.png

I think, you talk about cutin "filename",3;  <-- position 3
 

*cutin "<filename>",<position>;
*cutin2 "<filename>",<position>;

This command will display a picture, usually an NPC illustration, also called
cutin, for the currently attached client. The position parameter determines the
placement of the illustration and takes following values:

	0	bottom left corner
	1	bottom middle
	2	bottom right corner
	3	middle of screen in a movable window with an empty title bar
	4	middle of screen without the window header, but still movable
	255	clear all displayed cutins



 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  15
  • Reputation:   3
  • Joined:  01/29/24
  • Last Seen:  

see kafra as example:

 

geffen,120,62,0    script    Kafra::kaf_geffen    4_F_KAFRA3,{
    cutin "kafra_03",2;

 

this kafra_03 is the name of the picture inside the grf path:

data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\illust

 

to remove the cutin, before calling close, add

    cutin "", 255;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   1
  • Joined:  01/05/13
  • Last Seen:  

Thank you for answering more than I need and may the cutin stay within the window.

I saw this on a server, it looks better because you can move the window to another place to better view the image

errocutin.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   1
  • Joined:  01/05/13
  • Last Seen:  

Thank you very much exactly what I need

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  05/11/24
  • Last Seen:  

On 3/11/2024 at 5:16 AM, luizinhomt said:

Good evening everyone, would anyone know the code to place a cutin inside a window? I wanted to put my cutin inside a window like this for interacting with an NPC
Wordle Unlimited
Thank you very much in advance

You'll need to trigger the cutin display when interacting with the NPC. by using the onNPCTalk or onNPCTouch event handlers within the NPC script. These handlers will execute your custom script defined for the cutin. Here is the approach:

// Define your cutin graphic
script MyCutin {
  // Specify image filename, position (x,y), and size (width,height)
  image "..." x "..." y "..." w "..." h "...";
}

// NPC Script
script MyNPC {
   ... // Other NPC definitions

   // Trigger cutin display on NPC interaction
   onNPCTalk:
      MyCutin; // Call the cutin script
      ... // Continue NPC interaction logic
}

// In your main script
showwindow {
  // Define window properties (size, position, background)
  button "..." { /* NPC interaction button */ };
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  05/13/24
  • Last Seen:  

Thank you both. I was having the same problem and didn't know how to solve it until I read this article.
tiny fishing unblocked

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