PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: yibo on 19 November, 2007, 15:51:01

Title: Replace text script ?
Post by: yibo on 19 November, 2007, 15:51:01
Hello all.

Must my script who yes replace text
QuoteThis hub is running PtokaX DC Hub 0.3.6.0 (UpTime: 0 days, 0 hours, 1 minutes)
with other text ?
Title: Re: Replace text script ?
Post by: bastya_elvtars on 19 November, 2007, 21:45:06
It cannot be replaced AFAIK.
Title: Re: Replace text script ?
Post by: CrazyGuy on 20 November, 2007, 12:51:37
actually, it can but only partially.
The first part of the sentence is in the language files  ;)

Quote
[12:49:58] *** Connecting to 127.0.0.1:411...
[12:49:58] *** Connected
[12:49:58] <PtokaX> Deze hub draait PtokaX DC Hub 0.3.6.0g (UpTime: 0 dagen, 0 uren, 0 minuten)

Either way, there is no reason to change the rest of the message unless the idea is to make it look like you made the hubsoft yourself instead of PPK  :P  but that is a no go  ::)
Title: Re: Replace text script ?
Post by: yibo on 20 November, 2007, 16:27:30
Thank you.

Now my must script who yes replace +help commands with other commands ?
Title: Re: Replace text script ?
Post by: CrazyGuy on 20 November, 2007, 22:05:26
yes you can do that as well.

If a script runs as top script, and function ChatArrival returns true (new API) / 1 (old API) , other scripts won't process the command (for example +help)
Mind you that textcommands are triggered before scripts, so if you want to avoid textcommands taking over, remove the '+' sign from the hub prefixes as well
Title: Re: Replace text script ?
Post by: sphinx_spb on 26 November, 2007, 06:17:36
hmm... I changed this text with
[08:12:35] <BEPTEP> Welcome to SphinX DC Hub 0.3.6.0 (Saint-Peterburg, Russia, UpTime: 0 дней, 7 часов, 1 минут)
but this of course don't mean that I pretend to show myself as hubsoft author...