A simple login counter that I have used on zoric since scripting was made possible:
This script uses playervar2 and each time a player logs in, it adds one to that var to count the players total number of logins. If you use it on your world, the (world owner) text should be changed to your name and the (world name) should be changed to your worlds name. It should be easy to modify the script and change the messages for each login or even give out prizes based on the number of logins a player has (although this could be abused by constantly reloging so I wouldn't recommend it)
Code: Select all
Event( "PlayerLogin" 0 )
{
*effect %player% 2
sleep(100)
$playervar2=$playervar2+1
*msg %player% Welcome to (world name) %player% !
*msg %player% Type .ignore playername to block a player that is bothering you.
*msg %player% To report bugs, cheaters, ideas, etc, please contact (world owner)
If ($playervar2=1)
{
sleep(100)
*say This is %player%'s first time on (world name)!
*say Somebody should be nice and offer him some help at getting started.
$playervar6=0
}
else
{
If ($playervar2<5)
{
*say %player% is still quite new to the world.
*say somebody should offer him some help.
}
Else If ($playervar2=10)
{
*say %player% has logged on 10 times so far!
}
Else If ($playervar2=25)
{
*say %player% has logged on 25 times so far!
}
Else If ($playervar2=50)
{
*say %player% has logged on 50 times so far!
}
Else If ($playervar2=100)
{
*say %player% has logged on 100 times so far!
}
Else If ($playervar2=200)
{
*say %player% has logged on 200 times so far!
}
Else If ($playervar2=300)
{
*say %player% has logged on 300 times so far!
}
Else If ($playervar2=400)
{
*say %player% has logged on 400 times so far!
}
Else If ($playervar2=500)
{
*say %player% has logged on 500 times so far!
}
Else
{
*msg %player% Have a great time playing!
}
}