Jump to content
  • 0

How to make a message prevent from closing


Question

Posted

i am using callshop and after a couple of minutes the close button will pop out

switch(select("Taming Item Shop")) {

case 1:
close2;
mes "this message will not close ";
callshop "MvP HG Shop", 0;
break;

}

do not close.PNG

3 answers to this question

Recommended Posts

  • 1
Posted

doc/script_commands.txt

 

*ignoretimeout <flag>{,<char_id>};

Disables the SECURE_NPCTIMEOUT function on the character invoking the script,
or by the given character ID/character name.

Valid flag:
 0 - Enabled SECURE_NPCTIMEOUT.
 1 - Disable SECURE_NPCTIMEOUT.

Note: SECURE_NPCTIMEOUT must be enabled for this to work.

 

  • 0
Posted
2 hours ago, kalabasa said:

i am using callshop and after a couple of minutes the close button will pop out

switch(select("Taming Item Shop")) {

case 1:
close2;
mes "this message will not close ";
callshop "MvP HG Shop", 0;
break;

}

do not close.PNG

 

src\config\secure.hpp

#define SECURE_NPCTIMEOUT

but I'm not sure if it's going to work. because there is an issue on it which is not fixed for a very long time.

  • 0
Posted

close button still appearing to me or i am  doing it wrong? and i already enable the secure_npctimeout

 

next;
mes "this message will not close ";
ignoretimeout 1;
callshop "MvP Shop", 0;
break;

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