Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lifaeen

Pages: [1]
1
Linux Specific Issues / desktop buddy list
« on: March 13, 2011, 11:14:20 am »
Hey all.
I've written this script once to show all online players/friends without logging in.
you'll need 'wget' and 'notify-send' for it (libnotify-bin in ubuntu/debian).


#!/bin/sh
a=$(wget -qO- http://62.173.168.9/index.php?page=char_stats | grep -v -E "<|>" | grep -v "^$" | sed 's/ //g' | sed 's/,/\n/g' | sort)
b=$(sort buddy 2>&1) || echo "couldn't find buddy list! please create file 'buddy' in this dir and write the names in it"
c=""
for i in $b
do
c=${c}$(echo $a | sed 's/ / \n/g' | grep $i)
done
notify-send "players online:" "$c"
echo $a

2
Development Deliberation / PHP player script
« on: June 12, 2009, 03:32:41 pm »
( hope this is the right place  ;D )

this is a little html/PHP script I've written....just in case you have any use for it  :)

Part1 (search.html)

<html>
<head>
<title>search for player</title>
</head>
<body>
<form name="players" action="find.php" method="post">
<font face=arial size=3>

name: <input name="name" type="text" size="8" maxsize="8" value="">

<input type="submit" name="search" value="Search">

</font>
</form>
</body>

Part2 (find.PHP)

<?php
$search = $_POST["name"];
$searchl = " ";
$searchl .= $search;
$searchl .= ",";
$s = 1;
if($search == "")
{
echo "Why don't you go back and enter a name?";
}
else
{
$f1=fopen("http://laanx.fragnetics.com/index.php?page=char_stats","r");
while (!feof($f1)) {
$buffer = fgets($f1, 4096);
$text.=$buffer;
$output[$s] = trim($buffer);
$s = $s + 1;
}
fclose($f1);
$find = eregi ($search, $output[256]);
if($find == "1")
{
echo $search;
echo " is currently online";
}
else
{
echo $search;
echo " is currently offline";
}
}
?>

3
Development Team Blog / Re: Speed Hacks
« on: February 16, 2009, 08:42:48 pm »
well....if it checks for players moving faster than normal....it may kick you don't know...did just want to mention it

4
Development Team Blog / Re: Speed Hacks
« on: February 16, 2009, 08:25:10 pm »
not sure if you've noticed that....but if you run sidewards (using R + E/Q) you're a bit faster than normally....

Pages: [1]