Page 1 of 1

[SCRIPT]LineSPQR

Posted: Mon Jan 06, 2014 5:13 pm
by Bori
Hey Guys,

so yeah this is me Bori and this is my first script. Before I tell you more I want to say thank you to so many people.

Thanks thepolm3, Kuma, Morphman, leWizard and topo who helped me with the beginning of scripting

So now jump to my script
Code: Select all
'''
LineSpqr Script by Bori
'''

YOU_ARE_A_LINESSPQR_MASTER = "You are a LineSPQR master"

def apply_script(protocol, connection, config):
	class linesConnection(connection):
		def on_spawn(self, pos):
			if "|SPQR|" in self.name:
				self.send_chat(YOU_ARE_A_LINESSPQR_MASTER)
			return connection.on_spawn(self, pos)
	return protocol, linesConnection
It just send you a glory message from Heaven, when you are in LineSPQR. Maybe I'll add a method to set it by your own.
That's it for today people and stay tuned for more.
see ya
Bori

Re: [SCRIPT]LineSPQR

Posted: Mon Jan 06, 2014 7:26 pm
by Jdrew
neat, I might add this to the AK server for AK members

Re: [SCRIPT]LineSPQR

Posted: Tue Jan 07, 2014 2:10 am
by Willy
Nice job Bori :)

Re: [SCRIPT]LineSPQR

Posted: Tue Jan 07, 2014 1:19 pm
by IceCream
nice and replace linespqr with sw and everything is fine ;))))))

Re: [SCRIPT]LineSPQR

Posted: Tue Jan 07, 2014 2:58 pm
by Dr.Morphman
nice, took you only help from 5 people to create a script that is roughly 10 lines long

Re: [SCRIPT]LineSPQR

Posted: Tue Jan 07, 2014 7:26 pm
by EldredChandler
Bori wrote:
Code: Select all
self.send_chat(YOU_ARE_A_LINESSPQR_MASTER
Shouldn't it be LINESPQR_MASTER?