Jump to content
  • 0

How to make a message prevent from closing


kalabasa

Question


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  154
  • Reputation:   51
  • Joined:  07/15/13
  • Last Seen:  

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.

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

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;

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