Jump to content

Question

Posted (edited)

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

6 answers to this question

Recommended Posts

  • 0
Posted
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
  • 0
Posted

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;

 

  • 0
Posted

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

  • 0
Posted
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 */ };
}

 

  • 0
Posted
On 5/11/2024 at 8:53 PM, Kate Bishop said:

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: escape road

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

 

I greatly appreciate it; this is precisely what I required.

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