Register for your free account! | Forgot your password?

You last visited: Today at 06:17

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

Advertisement



Guild reset in php

Discussion on Guild reset in php within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2009
Posts: 91
Received Thanks: 16
Guild reset in php

Hi.

I want guild reseting in php. Please help me.

My code:

Code:
<?php
  $con = mssql_connect('*****','***','***');
  mssql_select_db('SRO_VT_SHARD', $con);

	$sql = "DELETE FROM _TimedJob WHERE CharID = 'ID' and JobID = '1'";
    $res = mssql_query($sql,$con);
	if (!$res) {
    print("SQL statement failed with error:\n");
    print("   ".mssql_get_last_message()."\n");
  } else {
    $number_of_rows = mssql_rows_affected($con);
    print("$number_of_rows rows deleted.\n");
  }
	
?>
How can I get the Char Id in logged in player(at the website)?
Speederes is offline  
Old 10/08/2012, 22:35   #2

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
$char_array = mssql_fetch_array(mssql_query("SELECT * FROM _Char WHERE CharName16='Charname'", $connection));
$char_id = $char_array['CharID'];

(dunno how mssql system work with php, made this for odbc, should be the same)
sarkoplata is offline  
Thanks
1 User
Old 10/08/2012, 23:18   #3
 
elite*gold: 0
Join Date: Jan 2009
Posts: 91
Received Thanks: 16
I have ODBC But i don't know how work with this.

I copied the code to the my code. But doesn't work.
Speederes is offline  
Old 10/09/2012, 20:18   #4

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
Dear dude,
Do you want to delete a chars guild penalty?

So I would not give you wrong code
sarkoplata is offline  
Old 10/10/2012, 11:37   #5
 
elite*gold: 0
Join Date: Jan 2009
Posts: 91
Received Thanks: 16
Yes i want deleting guild penelatly reseting.


Code:
<?php
  $con = mssql_connect('*****','****','****');
  mssql_select_db('SRO_VT_SHARD', $con);
    $char_array = mssql_fetch_array(mssql_query("SELECT * FROM _Char WHERE CharName16='Charname'", $con));
    $char_id = $char_array['CharID'];
	$sql = "DELETE FROM _TimedJob WHERE CharID = '$char_id' and JobID = '1'";
    $res = mssql_query($sql,$con);
	if (!$res) {
    print("SQL statement failed with error:\n");
    print("   ".mssql_get_last_message()."\n");
  } else {
    $number_of_rows = mssql_rows_affected($con);
    print("$number_of_rows rows deleted.\n");
  }
	
?>
I give 0 rows deleted. :-/
I have 1 character. But if i have 2 characters? :-/
Speederes is offline  
Old 10/10/2012, 22:51   #6

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
You want to delete every characters penalty?
sarkoplata is offline  
Old 10/11/2012, 10:47   #7
 
elite*gold: 0
Join Date: Jan 2009
Posts: 91
Received Thanks: 16
Not.

I or other player logged on the website.
Click to Guild reset and i want delete the guildpenaltly.
Speederes is offline  
Reply


Similar Threads Similar Threads
In der Z8games mall für crossfire gibt es 2 items '(K/D reset und W/L reset)
11/10/2012 - CrossFire - 13 Replies
was bringt das ?:confused:
TRADE MY ALL IN ONE HACK IN SOUL CRASH--- ( RESET ,RENAME,RESET GAUGE,WEApON BOOSTER
04/25/2012 - Facebook - 7 Replies
I WANT TO TRADE THIS HACK FOR NINJA SAGA TOKEN HACK pERMANENT.. OR SURVEY THAT GIVES 400 TOKEN EVERY SURVEY.. THIS HACK IN SOUL CRASH ARE ALL pERMANENT SO I NEED pERMANENT ALSO... pM ME IF YOU ARE INTERSTED.. ADD THIS [email protected] my number 09293707807 ... dont be foolish to scam me... this is true.. be a good friend.. thank you... hope can help me/.......
need help in STATS RESET,RENAME AND RESET GAUGE HACK>>>
04/21/2012 - Facebook - 0 Replies
pLEASE pOST HERE THE pROCEDURE ON HOW TO HACK RENAME ,, RESET AND GAUGE HACK... I WANT TO KNOW IT.. THANK YOU
need tutorial in reset stat and rename and reset gauge
04/20/2012 - Facebook - 0 Replies
i need those hack in soul crash reset stat and rename.. pm me here



All times are GMT +1. The time now is 06:18.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.