Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 01:45

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[release] -Lotf- reset character position (php)

Discussion on [release] -Lotf- reset character position (php) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2008
Posts: 217
Received Thanks: 26
[release] -Lotf- reset character position (php)

This is something bloody requested and i totally forgot to do(sorry bud) but here it is now for all of you. You enter in your account name , and your character name and it will teleport you to twin city in case your stuck in a portal or something.. You must be logged out to make it work.

PHP Code:
<html>
<head>
<title>Teleport to twin city!</title>
</head>
<body>
<center>
<h1>Twin city teleportation</h1><br>
<form action="twincity.php?teled=yes" method="post">
Account Name : <input type="text" name="acc"><br>
Character Name: <input type="text" name="name"><br>
<input type="submit" value="To Tc!"><br>
</form>
</center>
</body>
</html>
<?php 
//Connect to database.
$dbhost 'localhost'//keep as localhost.
$dbuser 'root'//you should probabally keep root.
$dbpass ''//not sure what your pass is so I left blank.
$dbname 'coproj'//you should also keep this the same I believe.

$acc $_POST['acc'];
$name $_POST['name'];

$conn mysql_connect($dbhost$dbuser$dbpass);

    
mysql_select_db($dbname);

    
    
mysql_query("UPDATE characters SET LocationX = '429' WHERE Account = '$acc' AND CharName = '$name'");
    
mysql_query("UPDATE characters SET LocationY = '378' WHERE Account = '$acc' AND CharName = '$name'");
    
    if (
$_GET['teled'] == "yes") {
        echo 
"<center>You have been teleported to twin city. You may now login!</center>";
    }
    
mysql_close();
    
//created by Demonscim/Razar/Scim (please do not remove this).
?>
Thanks would be awesome btw .

EDIT:This was a 2 minute script, it works so if you get a problem thats not from the script don't bitch at me.
demonscim is offline  
Thanks
9 Users
Old 10/29/2008, 15:06   #2
 
elite*gold: 0
Join Date: Oct 2008
Posts: 342
Received Thanks: 66
mysql_query("UPDATE characters SET LocationX = '429' WHERE Account = '$acc' AND CharName = '$name'");

Better would be

mysql_query("UPDATE characters SET LocationX = '437' WHERE Account = '$acc' AND CharName = '$name'");

Coz some ppl have NPC´s on the middle

Thanks!!

µ~Xero~µ is offline  
Old 10/29/2008, 15:08   #3
 
elite*gold: 0
Join Date: Feb 2008
Posts: 217
Received Thanks: 26
set it to your own preferences >.< but no problem.. just figured I'd release it.
demonscim is offline  
Old 10/29/2008, 15:10   #4
 
elite*gold: 0
Join Date: Oct 2008
Posts: 342
Received Thanks: 66
This wasn´t a attack against u
Just a try to help a bit
µ~Xero~µ is offline  
Old 10/29/2008, 15:14   #5
 
elite*gold: 0
Join Date: Feb 2008
Posts: 217
Received Thanks: 26
Oh i know just saying.. you can set to your own preferences if you want.. edit it do w/e just don't take out my little comment [//created by Demonscim/Razar/Scim (please do not remove this).]
demonscim is offline  
Old 10/29/2008, 16:34   #6
 
ahmadinho12's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 197
Received Thanks: 25
The Best Thing that i don't know anything at coding

Anyway it seems to be a good one
ahmadinho12 is offline  
Old 10/29/2008, 16:41   #7
 
elite*gold: 0
Join Date: Feb 2008
Posts: 217
Received Thanks: 26
Thank you
demonscim is offline  
Old 10/29/2008, 16:56   #8
 
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
added to my all-in-1 thread under "HelpFull Threads"

nice release
XxArcherMasterxX is offline  
Old 10/29/2008, 17:01   #9
 
keving15's Avatar
 
elite*gold: 0
Join Date: Nov 2006
Posts: 79
Received Thanks: 25
Quote:
Originally Posted by XxArcherMasterxX View Post
added to my all-in-1 thread at the "HelpFull Threads" section
Helpfull not for the User?
Its helpfull to Hackers to inject the Code i can give u an example how to drop database etc with that script but i dont show here
keving15 is offline  
Old 10/29/2008, 17:13   #10
 
Tw3ak's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,489
Received Thanks: 301
easier just to fix the portal code so people don't get stuck.
Tw3ak is offline  
Old 10/29/2008, 18:24   #11
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Quote:
Originally Posted by Tw3ak View Post
easier just to fix the portal code so people don't get stuck.
i r agree with him
© Haydz is offline  
Old 10/29/2008, 18:45   #12
 
elite*gold: 0
Join Date: Feb 2008
Posts: 217
Received Thanks: 26
Lol.. true im just filling a request .. c# is not my thing YET >.< hopefully it will be eventually.. Emme is being really helpful in teaching me
demonscim is offline  
Old 11/05/2008, 06:08   #13
 
elite*gold: 0
Join Date: Nov 2008
Posts: 1
Received Thanks: 0
php code would like to change the password

php code would like to change the password
Bayer222 is offline  
Old 11/05/2008, 12:40   #14
 
nTL3fTy's Avatar
 
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
Quote:
Originally Posted by demonscim View Post
This is something bloody requested and i totally forgot to do(sorry bud) but here it is now for all of you. You enter in your account name , and your character name and it will teleport you to twin city in case your stuck in a portal or something.. You must be logged out to make it work.

PHP Code:
<html>
<head>
<title>Teleport to twin city!</title>
</head>
<body>
<center>
<h1>Twin city teleportation</h1><br>
<form action="twincity.php?teled=yes" method="post">
Account Name : <input type="text" name="acc"><br>
Character Name: <input type="text" name="name"><br>
<input type="submit" value="To Tc!"><br>
</form>
</center>
</body>
</html>
<?php 
//Connect to database.
$dbhost 'localhost'//keep as localhost.
$dbuser 'root'//you should probabally keep root.
$dbpass ''//not sure what your pass is so I left blank.
$dbname 'coproj'//you should also keep this the same I believe.

$acc $_POST['acc'];
$name $_POST['name'];

$conn mysql_connect($dbhost$dbuser$dbpass);

    
mysql_select_db($dbname);

    
    
mysql_query("UPDATE characters SET LocationX = '429' WHERE Account = '$acc' AND CharName = '$name'");
    
mysql_query("UPDATE characters SET LocationY = '378' WHERE Account = '$acc' AND CharName = '$name'");
    
    if (
$_GET['teled'] == "yes") {
        echo 
"<center>You have been teleported to twin city. You may now login!</center>";
    }
    
mysql_close();
    
//created by Demonscim/Razar/Scim (please do not remove this).
?>
Thanks would be awesome btw .

EDIT:This was a 2 minute script, it works so if you get a problem thats not from the script don't bitch at me.
...and what happens if the character isn't in TwinCity?
nTL3fTy is offline  
Old 11/05/2008, 14:41   #15
 
elite*gold: 0
Join Date: Feb 2008
Posts: 217
Received Thanks: 26
lol.. than i screwed up or someone else screwed up...

@Bayer222 -
Quote:
php code would like to change the password
, umm yeh **** you.. first off I can't do that because c# encrypts differently than php. second off you Read the ******* manual and do it your **** self.. Learn ******* english while your at it
demonscim is offline  
Reply


Similar Threads Similar Threads
[TUT]Camera/Character Position
09/10/2010 - 12Sky2 - 2 Replies
It took me a while to figure out the camera location addresses because at first I thought they would be angles relative to your character position, in fact they are positions relative to the map. This is a small tutorial on how to find the addresses for your character position and the camera position. If you do not know how to use CE this tutorial will be of no use to you (go learn that first). First lets find your character X position 1. Load into your town map by using a return...
[Release]Fix LOTF Crash (Somehow)
04/03/2010 - CO2 PServer Guides & Releases - 30 Replies
Here is a release for LOTF (5017) that can fix your crashes some how. What is it?? Well is just an auto restart every XX:00 First find (in general.cs): Thetimer = new System.Timers.Timer(); Under paste: //Restart Server
[LOTF RELEASE] Ip Ban!!
05/18/2009 - CO2 PServer Guides & Releases - 22 Replies
Ip Ban! Credits to Ultimatum First...Search this ( It is in General.cs ) public static System.IO.StreamWriter sw = new System.IO.StreamWriter(Application.StartupPath + @"\ServerLog.txt", true);
[Release] Those still using LOTF
04/17/2009 - CO2 PServer Guides & Releases - 23 Replies
Help yourself be a better coder and listen to what the community is trying to say. One day you will understand why some are trying to encourage people still using LOTF to move to a more stable source and only use LOFT as a basis of learning and how you can improve (A LOT) on the LOTF coding. There's a lot of GREAT coding examples in InfamousNoone's source which you can actually learn from and gain a greater understanding of how a PROPER server operates. After all why do you think...
Xinyidk.cn Character Reset!
11/29/2008 - Dekaron Private Server - 8 Replies
תÉúϵͳ Once again I shall provide explanation for chinese updates. This pserver now allows all characters to reset once reaching level 150. "转生一次需 5201;游戏币9亿,目 1069;开放5转,转生 9968;次增加200属性&# 28857;和20技能点 转生时必须下&# 32447;否则后果自$ 127;" 填写角色名 角色名: "Reset requires 9 hundred million dil, 5 resets available for now (per account?), each reset adds 200 stat points and 20 skill points. Disconnect during reset or be responsible yourself (if it fails)."



All times are GMT +2. The time now is 01:45.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.