Aller au contenu

Photo

BootPC, How do I?


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Ansalon II Admin

Ansalon II Admin
  • Members
  • 21 messages
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

#2
henesua

henesua
  • Members
  • 3 883 messages
 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 .


#3
The Amethyst Dragon

The Amethyst Dragon
  • Members
  • 1 882 messages
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.

#4
Squatting Monk

Squatting Monk
  • Members
  • 446 messages
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));


#5
Ansalon II Admin

Ansalon II Admin
  • Members
  • 21 messages

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.

#6
The Amethyst Dragon

The Amethyst Dragon
  • Members
  • 1 882 messages
hehe...I guess that would be the simpler way of accomplishing it. :)