Author Topic: BootPC, How do I?  (Read 268 times)

Legacy_Ansalon II Admin

  • Newbie
  • *
  • Posts: 42
  • Karma: +0/-0
BootPC, How do I?
« on: July 11, 2013, 12:25:28 am »


               How do I put more text in the 'You have been Booted" message.

I'm writing a CD-Key check, that checks the players login with the CD-Key stored in a database. I would like to at least let the person know why they were booted.

Cheers
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
BootPC, How do I?
« Reply #1 on: July 11, 2013, 02:58:00 am »


                Do you want to roll your own?

What you are talking about has been made already.

Otherwise, no I haven't looked into changing that text. I don't know what CC you must change to alter that text. I suspect it is not a text string you can change by script. Perhaps it is in the default TLK table.
               
               

               


                     Modifié par henesua, 11 juillet 2013 - 02:01 .
                     
                  


            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
BootPC, How do I?
« Reply #2 on: July 11, 2013, 03:19:59 am »


               If you are running a windows server, you'll need the nwnx_funcs plugin for NWNX2.  It has a boot-PC-with-message script function.

This references the default dialog.tlk file, so your players will need a customized version of that file for it to function correctly.  It won't read a custom .tlk file in the NWN/tlk folder.

I do this for my PW (for CD key checks, server resets, etc.).  It works pretty slick, but players won't see the right message without that altered dialog.tlk.
               
               

               
            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
BootPC, How do I?
« Reply #3 on: July 11, 2013, 03:28:33 am »


               Or you could do it without NWNX:


// Freeze the PC so he can't cause any mayhem, then boot him after 15 seconds.
// The delay is so he can read any messages as to why he's being booted.
SetCommandable(FALSE, oPC);
SendMessageToPC(oPC, "You are being booted because reasons.");
DelayCommand(15.0, BootPC(oPC));

               
               

               
            

Legacy_Ansalon II Admin

  • Newbie
  • *
  • Posts: 42
  • Karma: +0/-0
BootPC, How do I?
« Reply #4 on: July 12, 2013, 01:39:05 am »


               

Squatting Monk wrote...

Or you could do it without NWNX:


// Freeze the PC so he can't cause any mayhem, then boot him after 15 seconds.
// The delay is so he can read any messages as to why he's being booted.
SetCommandable(FALSE, oPC);
SendMessageToPC(oPC, "You are being booted because reasons.");
DelayCommand(15.0, BootPC(oPC));


That worked..I tried ActionWait before and it didn't work, guess I just used wrong command.

Cheers.
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
BootPC, How do I?
« Reply #5 on: July 12, 2013, 03:07:23 am »


               hehe...I guess that would be the simpler way of accomplishing it. '<img'>