Jump to content
  • 0

Refresh NPC Prompt without "next;"


Vach

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

Hello!

Does anyone know if this is possible? I'd like a NPC message to refresh every time a menu prompt is selected, instead of the next button. I have a looping message for a certain NPC and I think this would be way better than forcing the player to hit next AND THEN the menu prompt.

Link to comment
Share on other sites

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Edit: Some how this got posted twice with a really long gap in between lol.

Edit2: Nvm lol, i did testing and yea, it seems any new messages that are added, do just extend the box... I had assumed it'd move down with the new messages... sadly, i guess this just isn't possible, and you'll just have to make do with the next; button or close2; for laughs lol, since it can act as a next; button.

Edited by GmOcean
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

Uhm...try this...all dependent on what refresh can do though.

mes "Blah blah blah";
sleep2 1000; // Give player time to read
atcommand "@refresh"; // I'm assuming can clear/close the NPC window..maybe I'm wrong..can't test since I don't have a test server ready
sleep2 1000;
mes "blah blah blah";

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

Uhm...try this...all dependent on what refresh can do though.

mes "Blah blah blah";
sleep 1000; // Give player time to read
atcommand "@refresh"; // I'm assuming can clear/close the NPC window..maybe I'm wrong..can't test since I don't have a test server ready
sleep2 1000;
mes "blah blah blah";

Better not. If i'm not wrong, @refresh resets the current look, chat and skill quickbars if I'm not wrong. Anyway, it has nothing to do with npc message box.

Also, your code won't work as sleep 1000 will automatically detach the current read, and an error will popup when trying to use atcommand command.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

Better not. If i'm not wrong, @refresh resets the current look, chat and skill quickbars if I'm not wrong. Anyway, it has nothing to do with npc message box.

Also, your code won't work as sleep 1000 will automatically detach the current read, and an error will popup when trying to use atcommand command.

Have you actually tested it in game though?

Cause if I remember correctly (again someone test it in game..or maybe it was @go..), I've used @refresh to get out of NPC conversations I'm stuck in before.

Edited by post and replaced sleep with sleep2.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

Have you actually tested it in game though?

Cause if I remember correctly (again someone test it in game..or maybe it was @go..), I've used @refresh to get out of NPC conversations I'm stuck in before.

Nope I didn't test it, I just shot out what I remembered about @refresh, as I said above. Worth a try for sure, but I'm a bit hopeless about it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Hmm how if we send packet 0x0B9? It's CZ_REQ_NEXT_SCRIPT.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

Uhm...try this...all dependent on what refresh can do though.

mes "Blah blah blah";
sleep2 1000; // Give player time to read
atcommand "@refresh"; // I'm assuming can clear/close the NPC window..maybe I'm wrong..can't test since I don't have a test server ready
sleep2 1000;
mes "blah blah blah";

This actually works for what I need it to do. The only issue is the refresh of the screen may seem like a "bug" to some players. It leaves all other context intact. It also eliminates the weather on the map, so I may have to confine the script to maps without weather.

Interesting... I wonder if a command can be made from "@refresh" that specifically changes what the NPC is displaying.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

This actually works for what I need it to do. The only issue is the refresh of the screen may seem like a "bug" to some players. It leaves all other context intact. It also eliminates the weather on the map, so I may have to confine the script to maps without weather.

Interesting... I wonder if a command can be made from "@refresh" that specifically changes what the NPC is displaying.

As for that second part I have no idea. Ask in Source Support maybe?

Can this topic be marked Solved?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

Yes, it can, thank you.

And I don't think it is a very high priority, but perhaps it should be added as a to-do-list item for future releases... someone definitely more qualified to program in the source than I. I simply think something like "next2;" should be implemented allowing next without the use of pushing the button - could be very useful in scripts. Since we know it is possible due to how refresh is behaving.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  355
  • Reputation:   34
  • Joined:  02/09/12
  • Last Seen:  

Vote for yes on my post in source discussion(?)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

OH! I see it now! Yea!

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