Replace text script ?
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Replace text script ?

Started by yibo, 19 November, 2007, 15:51:01

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yibo

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 ?
yibo?

bastya_elvtars

It cannot be replaced AFAIK.
Everything could have been anything else and it would have just as much meaning.

CrazyGuy

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  ::)

yibo

Thank you.

Now my must script who yes replace +help commands with other commands ?
yibo?

CrazyGuy

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

sphinx_spb

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

SMF spam blocked by CleanTalk