<?php
function charstatus($val)
{
if($val >= 1)
return '<font color=green>Online</font>';
else
return '<font color=red>Offline</font>';
}
function eqgear($val)
{
if($val >= 110105 && $val <= 202009) {
$number = substr($val,0,-1);
$final = "$number"."5";
return $final;
}
elseif($val >= 410005 && $val <= 900265) {
$number = substr($val,0,-1);
$final = "$number"."5";
return $final;
}
elseif($val == 300000 || $val >= 2100025 && $val <= 2100095 || $val >= 1100003 && $val <= 1100009 || $val >= 1050000 && $val <= 1050050){
return $val;
}
else {
return 'default';
}
}
function prof($val)
{
if ($val > 9 && $val < 16)
return 'Trojan';
if ($val > 19 && $val < 26)
return 'Warrior';
if ($val > 39 && $val < 46)
return 'Archer';
if ($val > 49 && $val < 56)
return 'Ninja';
if ($val > 59 && $val < 66)
return 'Monk';
if ($val > 99 && $val < 102)
return 'Taolist';
if ($val > 131 && $val < 136)
return 'Water';
if ($val > 141 && $val < 146)
return 'Fire';
}
function adminUserBan($user) {
$ban = mysql_query("UPDATE accounts SET accesslevel = '0' WHERE username = '$user'") or die(mysql_error());
if(!$ban) {
echo 'The user cannot be banned at this time.';
} else {
echo 'The user has been banned successfully!';
}
}
function gmsOnline() {
$check = mysql_query("SELECT accesslevel FROM accounts WHERE accesslevel = '300' AND online = '1'") or die(mysql_error());
$total = mysql_num_rows($check);
echo $total;
}
function gmTotal() {
$check = mysql_query("SELECT State FROM accounts WHERE State = '5'") or die(mysql_error());
$total = mysql_num_rows($check);
echo $total;
}
function onlineTotal() {
$check = mysql_query("SELECT * FROM entities WHERE Online = '1'") or die(mysql_error());
$total = mysql_num_rows($check);
echo $total;
}
function accTotal() {
$check = mysql_query("SELECT * FROM accounts") or die(mysql_error());
$total = mysql_num_rows($check);
echo $total;
}
function charTotal() {
$check = mysql_query("SELECT * FROM entities") or die(mysql_error());
$total = mysql_num_rows($check);
echo $total;
}
function adminUserUnban($user) {
$unban = mysql_query("UPDATE accounts SET accesslevel = '100' WHERE username = '$user'") or die(mysql_error());
if(!$unban) {
echo 'The user cannot be unbanned at this time.';
} else {
echo 'The user has been unbanned successfully!';
}
}
function adminDeleteAcc($acc) {
$del = mysql_query("DELETE FROM accounts WHERE username = '$acc'") or die(mysql_error());
if(!$del) {
echo 'The user cannot be deleted at this time.';
} else {
echo 'The user has been deleted successfully!';
}
}
function adminDeleteChar($char) {
$del = mysql_query("DELETE FROM entities WHERE char_name = '$char'") or die(mysql_error());
if(!$del) {
echo 'The user cannot be deleted at this time.';
} else {
echo 'The user has been deleted successfully!';
}
}
function adminGameMasterCreate($account, $charname) {
$make = mysql_query("UPDATE accounts SET accesslevel = '300' WHERE username = '$account'") or die(mysql_error());
$make = mysql_query("UPDATE entities SET char_name = '[GM]$charname' WHERE char_name = '$charname'") or die(mysql_error());
if($make) {
echo 'GameMaster creation successfull.';
} else {
echo 'Cannot create this GameMaster.';
}
}
function adminUserAlter($char, $str, $dex, $int, $zuly, $con, $level) {
$edit = mysql_query("UPDATE entities SET str = '$str' WHERE char_name = '$char'");
$edit = mysql_query("UPDATE entities SET dex = '$dex' WHERE char_name = '$char'");
$edit = mysql_query("UPDATE entities SET con = '$con' WHERE char_name = '$char'");
$edit = mysql_query("UPDATE entities SET _int = '$int' WHERE char_name = '$char'");
$edit = mysql_query("UPDATE entities SET zuly = '$zuly' WHERE char_name = '$char'");
$edit = mysql_query("UPDATE entities SET level = '$level' WHERE char_name = '$char'");
if(!$edit) {
echo 'One or more of the updates have failed.';
} else {
echo 'Character '.$char.' edited successfully.';
}
}
It's all good if at least the parameters passed to the functions are cleaned first (probably not, but who knows), but it'd be best if the function passed them to mysql_real_escape_string first.
I've been totally obsessed with SWGEmu the last few days. That combined with the fact that I still cannot access epvp from my main computer means I really don't bother except when bored at work.
Weirdest problem I've ever encountered...
My main pc CANNOT access on any browser even after clearing all cache/etc.
My main pc CAN access through tor browser (so not a mac filter from epvp)
My laptop CANaccess epvp (so not an isp issue or ip filtering from epvp).
And obviously it works just fine from work.
So I'm left with some ****** up issue most likely caused by my router which is a complete POS that's rented from my ISP (they do router/modem combos). I don't care enough to buy a separate router so yah, I get to complain instead.
PS: I'm totally psyched about maybe putting together a giant crafting resource/tool for swg. Would be such a fun mini project that would completely outshine existing (and overloaded they are so popular) resources.
I've actually been considering starting to play the SW series, since most MMOs and FPSs suck majorly these days, couldn't hurt to try.
Also, have you tried something like this:
Code:
Justin@Grimmjow ~
$ [I][B]ncat www.elitepvpers.com 80
GET /forum/ HTTP/1.1
Host:www.elitepvpers.com[/B][/I]
HTTP/1.1 200 OK
Server: nginx/0.7.67
Date: Tue, 26 Jun 2012 21:14:54 GMT
Content-Type: text/html; charset=ISO-8859-1
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
Cache-Control: private
Pragma: private
X-UA-Compatible: IE=7
Random bs, like setting cookies, and HTML output spams the **** outta you here.
To see if it's just the browser aspect? If you can connect with ncat or sockets, it could just be the settings in your browser. Make sure you go to as some browsers won't handle the 302 right, and won't redirect you from / to /forum/.
Whenever you're home, let me know. Maybe I can help you fix it.
Edit: Also, make sure you have the www., as not having it will also force a 302, which would cause the same problem.
Not really looked into it much as I don't really care (not much i care about is posted on epvp anymore) but I'll take a peek later I guess.
Have you ever played SWG? It was (and still is) easily the most complex MMO out there. The SWGEmu team have been working for 6 years now trying to re-create the server. They're hovering around 4 million lines of code and are on their 3rd code base now ahha.
It boggles the mind how insanely complicated their project is.
Server is currently online for play testing but is still in alpha so there's plenty of stability and lag issues while they fix up everything (it's abysmal how many people don't have a clue what alpha testing implies and can't stand a few hours a day of downtime lol)
Basically I'm using this time to brush up my knowledge of the game again. I tracked development of the original game for around 2 years before it was ever released but at the time had dialup at home so didn't really get to play it much (eventually got dsl at a second location so played a few months worth pre-cu)
PS: Swg is now 9 years old and I've yet to encounter a single game even ATTEMPTING to have the level of depth it did.
Not really looked into it much as I don't really care (not much i care about is posted on epvp anymore) but I'll take a peek later I guess.
Have you ever played SWG? It was (and still is) easily the most complex MMO out there. The SWGEmu team have been working for 6 years now trying to re-create the server. They're hovering around 4 million lines of code and are on their 3rd code base now ahha.
It boggles the mind how insanely complicated their project is.
Server is currently online for play testing but is still in alpha so there's plenty of stability and lag issues while they fix up everything (it's abysmal how many people don't have a clue what alpha testing implies and can't stand a few hours a day of downtime lol)
Basically I'm using this time to brush up my knowledge of the game again. I tracked development of the original game for around 2 years before it was ever released but at the time had dialup at home so didn't really get to play it much (eventually got dsl at a second location so played a few months worth pre-cu)
PS: Swg is now 9 years old and I've yet to encounter a single game even ATTEMPTING to have the level of depth it did.
Yeah, I considered playing it back in 2005 (was debating whether to stay with Co as my main MMO, should have decided against that decision.) but I thought it looked too hard.. haha. I like the fact that it's a pserver, actually. I'm not too fond of the way major companies handle their public relations and server development, because it always takes a turn for the worse when they get greedy (often sooner than later) and make the game donation/buyer based, as far as power/completion go. I actually might take a look into it once it becomes fully public, and I'm going to look into it on youtube and sites like gamespot to see what I've been missing.
keep in mind that the game was literally killed by SOE.
Pre-Cu (what the emulator is focused on) was the original release and first expansion pack. This is when the game was at it's most complex and had the greatest player interaction/customization (entire game is player driven)
Combat upgrade: Due to balance issues they decided to completely revamp combat and professions. As a result it really gimped much of the player choices (mix and match professions with little consequence to make your character whatever you want it to be) and implemented player levels (1-80 system) which basically turned it into wow lite. it wasn't the end of the world but it really ruined much of the depth.
NGE: They packed the 35+ professions into 9, made jedi a starting class versus a rarity/huge long *** grind, ruined all crafting and character building, turned it into a point and click action game basically.
Eventually they just shut off the servers because NGE severely ****** off their player base and didn't keep enough 10 year idiots subscribed.
It's really hard to get a good feel for the massive level of depth in swg from youtube videos. I think eve is the only other game with the same kind of player economy or interaction.
keep in mind that the game was literally killed by SOE.
Pre-Cu (what the emulator is focused on) was the original release and first expansion pack. This is when the game was at it's most complex and had the greatest player interaction/customization (entire game is player driven)
Combat upgrade: Due to balance issues they decided to completely revamp combat and professions. As a result it really gimped much of the player choices (mix and match professions with little consequence to make your character whatever you want it to be) and implemented player levels (1-80 system) which basically turned it into wow lite. it wasn't the end of the world but it really ruined much of the depth.
NGE: They packed the 35+ professions into 9, made jedi a starting class versus a rarity/huge long *** grind, ruined all crafting and character building, turned it into a point and click action game basically.
Eventually they just shut off the servers because NGE severely ****** off their player base and didn't keep enough 10 year idiots subscribed.
It's really hard to get a good feel for the massive level of depth in swg from youtube videos. I think eve is the only other game with the same kind of player economy or interaction.
That's not surprising.. Sony loves killing off their games when they peak and/or ruining them with almost TQ worth failures (expansions.) As far as Eve goes, isn't that one browser based? I've only seen it in ads around the net, but it doesn't look bad.
Naww eve is one of the largest space sims/mmo's out there. It's also incredibly deep as far as economy and player corporations goes. Not a big fan myself but I do give it some credit for succeeding in a similar area where SWG royally failed. Sandbox mmo's are far, far too rare.
Gahh I wanna be done work. This shift is the most dead it's been in ages.
Hmm yah iv learned a much better way to code (oop php ftw), but anyways i didnt have much issues with people ******** up stuff so didnt feel a need to change ****.. for the most point the website was good for what it was.. Ill have plans to recode everything or what not if pro ever does decide to get back into conquer(most unlikely). Not to big of a deal ill be busy with work and school once fall comes around anyways.
/*side note*/
The php for that current part is fine the only thing that would be an issues is if we asked for user input that would turn php into being insecure..
Naww eve is one of the largest space sims/mmo's out there. It's also incredibly deep as far as economy and player corporations goes. Not a big fan myself but I do give it some credit for succeeding in a similar area where SWG royally failed. Sandbox mmo's are far, far too rare.
Gahh I wanna be done work. This shift is the most dead it's been in ages.
Oh? I'll look into it just for the hell of it, then. What do you have to do on your shift?
Quote:
Originally Posted by BioHazarxPaul
Hmm yah iv learned a much better way to code (oop php ftw), but anyways i didnt have much issues with people screwing up stuff so didnt feel a need to change crap.. for the most point the website was good for what it was.. Ill have plans to recode everything or what not if pro ever does decide to get back into conquer(most unlikely). Not to big of a deal ill be busy with work and school once fall comes around anyways.
/*side note*/
The php for that current part is fine the only thing that would be an issues is if we asked for user input that would turn php into being insecure..
Ah alright, couldn't tell whether or not those arguments were created from user input (username, etc)
5355(Hellmouth) 10/05/2011 - CO2 Private Server - 7 Replies this is going to make me look beyond retarded (sorry P4N) but I've been staring at this for awhile, getting the mobs to spawn just seems to escape me here, now I do not want someone to do it for me. that being said as I've read in his posts(and a hint from a PM) that there was some things left out/typo'd on purpose. so anyone who can gimme something of a hand(primarily for me to ask questions too) kindly leave a comment or inbox me, I prefer an IM kinda deal but sadly most the IM programs I use...
Help me IN HellMouth Source 07/21/2011 - CO2 Private Server - 10 Replies i did every thing changed ip like hamachi ip but and open hellmouth to open my server but i got one problem and it's
YouTube - Rec#04
HellMouth References 06/09/2011 - CO2 Private Server - 4 Replies Alright. I am using C# 2008, I fixed all the errors (thanks to Justin). I still got one problem: References.
So the thing is, when I delete a reference, then add it again, I still get the warning that it can't find the reference.
So here is a screenshot:
http://img833.imageshack.us/img833/8669/screenlb. png
Any help will be greatly appreciated.
Thank you
[How to add monsters in Hellmouth] 03/11/2011 - CO2 Private Server - 12 Replies Hey guys,
I dont know what Im doing wrong
I added a MySqlReader for the MobSpawns
but there are no spawns at all..
so I looked in Spawn.cs