Jetzt kostenlos registrieren! | Passwort vergessen?

Zurück   elitepvpers > MMORPGs > 4Story
Dein letzter Besuch war: Heute um 18:03 Uhr

  • Registriere dich kostenlos um Beiträge zu verfassen und alle Features zu nutzen!

Advertisement



[Question]How to fix Bug (Delete all items on Login to game and Logout)

Discussion on [Question]How to fix Bug (Delete all items on Login to game and Logout) within the 4Story forum part of the MMORPGs category.

Antwort
 
Alt   #1
 
elite*gold: 0
Registriert seit: Aug 2014
Beiträge: 53
Erhaltene Thanks: 3
Angry [Question]How to fix Bug (Delete all items on Login to game and Logout)

In game:
Logout:
Help me please.
Thanks.
Score8 ist offline  
Alt 28.03.2015, 15:21   #2


 
Benutzerbild von AncientCompiler
 
elite*gold: 1
Registriert seit: Jan 2013
Beiträge: 899
Erhaltene Thanks: 689
Tlogout function ---> TGAME
AncientCompiler ist offline  
Alt 28.03.2015, 15:24   #3
 
elite*gold: 215
Registriert seit: May 2011
Beiträge: 217
Erhaltene Thanks: 461
It´s Five files, which have exploit
iJirkusCZ ist offline  
Thanks
1 Benutzer
Alt 28.03.2015, 17:28   #4


 
Benutzerbild von AncientCompiler
 
elite*gold: 1
Registriert seit: Jan 2013
Beiträge: 899
Erhaltene Thanks: 689
Simply replace Tlogout in TGAME with this code:

Code:
/*
========================================================
-------------Worked by 4Story UnrealReality-------------
========================================================
*/

/* LOGOUT PROCESS

========================================================
PARAMETER
========================================================
@dwUserID		INT

========================================================
RETURN VALUE
========================================================
0	: SUCCESS
1	: NO USER

========================================================
PROCESS
========================================================
1. Check TCURRENTUSER table
2. Delete user from TCURRENTUSER
3. Update log data

*/

ALTER PROCEDURE [dbo].[TLogout]
	@dwUserID	INT,
	@dwCharID	INT
AS
	DECLARE @nResult	INT
	DECLARE @bLevel	TINYINT
	DECLARE @dwExp	INT
	DECLARE @dwPlayTime INT
	DECLARE @dwGold	INT
	DECLARE @dwSilver	INT
	DECLARE @dwCooper	INT
	DECLARE @bWorldID	TINYINT
	DECLARE @dCurDate SMALLDATETIME

	SET @bLevel = 0
	SET @dwExp = 0
	SET @dwGold = 0
	SET @dwSilver = 0
	SET @dwCooper = 0
	SET @dCurDate = GetDate()

	IF(@dwCharID <> 0)
	BEGIN
		SELECT @bLevel = bLevel, @dwExp = dwEXP, @dwGold=dwGold, @dwSilver=dwSilver, @dwCooper=dwCooper FROM TCHARTABLE WHERE dwCharID = @dwCharID

		EXEC TUpdateActiveChar @dwCharID

		UPDATE TCHARTABLE SET dLogoutDate = @dCurDate WHERE dwCharID=@dwCharID

		EXEC @nResult = TGLOBAL_GSP.dbo.TLogout @dwUserID, @dwCharID, @bLevel, @dwExp
		IF(@nResult = 0)
		BEGIN
			SELECT @bWorldID = bWorld+1 FROM TDBITEMINDEXTABLE
			EXEC TGLOBAL_GSP.dbo.TUpdateCharMoney @bWorldID, @dwCharID, @dwGold, @dwSilver, @dwCooper
		END

		
	END

EXEC TGLOBAL_GSP.DBO.TPcBangLogout @dwUserID, @dwPlayTime OUTPUT

SELECT @dwUserID = dwUserID FROM TCHARTABLE WHERE dwCharID = @dwCharID
 
EXEC TGLOBAL_GSP.DBO.TSaveDuringItem @dwUserID
DELETE FROM [TGAME_GSP].[dbo].[TITEMTABLE] where wItemID = '2200';
RETURN @nResult

If still not working it`s in your item functions!
AncientCompiler ist offline  
Alt 28.03.2015, 17:46   #5
 
elite*gold: 215
Registriert seit: May 2011
Beiträge: 217
Erhaltene Thanks: 461
It won´t work, it is in services
iJirkusCZ ist offline  
Alt 28.03.2015, 19:18   #6
 
elite*gold: 0
Registriert seit: Aug 2014
Beiträge: 53
Erhaltene Thanks: 3
iSuicideBomber - I'm going to try it

Dont work
Score8 ist offline  
Alt 28.03.2015, 19:28   #7


 
Benutzerbild von AncientCompiler
 
elite*gold: 1
Registriert seit: Jan 2013
Beiträge: 899
Erhaltene Thanks: 689
Then watch over the item functions, or the source code.
AncientCompiler ist offline  
Alt 28.03.2015, 19:59   #8
 
elite*gold: 215
Registriert seit: May 2011
Beiträge: 217
Erhaltene Thanks: 461
He don´t have the source code lol
iJirkusCZ ist offline  
Thanks
1 Benutzer
Alt 28.03.2015, 20:22   #9
 
elite*gold: 0
Registriert seit: Aug 2014
Beiträge: 53
Erhaltene Thanks: 3
Jirkus - Problem services or everything in the database?
Score8 ist offline  
Alt 29.03.2015, 10:44   #10
 
elite*gold: 0
Registriert seit: Nov 2010
Beiträge: 214
Erhaltene Thanks: 171
Services and db.All items are deleted because there are duplicated dlID. I made a fix for this problem but I don't release it more.only few guys have it. Good luck
Sicarium ist offline  
Alt 29.03.2015, 11:04   #11
 
elite*gold: 215
Registriert seit: May 2011
Beiträge: 217
Erhaltene Thanks: 461
Nope, It´s my files, where are comment-outed save function and much more functions lol
iJirkusCZ ist offline  
Thanks
1 Benutzer
Alt 29.03.2015, 12:12   #12
 
elite*gold: 0
Registriert seit: Oct 2010
Beiträge: 546
Erhaltene Thanks: 152
I have make a duplication fix but I don't give it, it's not difficult to do
julianjl ist offline  
Alt 04.04.2015, 02:38   #13
 
elite*gold: 0
Registriert seit: Nov 2013
Beiträge: 431
Erhaltene Thanks: 254
I have the fix too
If u need still help PM me on epvp
NightProfit ist offline  
Antwort


Ähnliche Themen Ähnliche Themen
Question about game login
11.06.2014 - Shaiya PServer Guides & Releases - 2 Antworten
If im admin so how i can know my log name and pass? help please
Fatal Problem: Login/Logout
05.12.2012 - Shaiya Private Server - 13 Antworten
Hmmm....I've posted recently about some problems that weren't as critical and I was able to fix on my own. But this one is really a problem. So...in the database .. there is the value: Leave. Supposedly: whenever you log into the client it is SUPPOSED to set the value to 1 and whenever you log out, it is SUPPOSED to set the value to 0. My problem: It sets the value to 1 when the user logs in, but doesn't set it to 0 when they log out. So nobody is every able to log in more than once...
login logout register script
08.10.2011 - General Coding - 2 Antworten
hallo ich würde gerne wissen was man alles für Login Logout Register Script so braucht braucht wäre nett wen mir einer ein Guide zeigen könnte wie man so was macht Danke schon mal im voraus sorry wenn ich falsch bin
[Question] delete Items from Inventory
12.08.2010 - EO PServer Hosting - 4 Antworten
Perhaps it is rather a stupid question, but I ask anyway. Is there an Action Type ID what items will automatically delete after the maintenance? Or do I have to make that over a Query? And I could be whoever they happened to Action ID list post. Because I can not find here. The once forcer or funhacker created.
LogOut & LogIn Problem
02.04.2009 - Eudemons Online - 0 Antworten
iight i got my server running everything iz good but i log in make my char logout make myself gm/pm and log back in lvl myself to lvl 255 lvl me eudemons to lvl 81 and when i logout i cant log back in it says "Error: Connection with the server is interrupted. Please log in again." and ive assign all privileges in database in my navicat and still wont work iight found out something now when i lvl myself to lvl 255 and log out i cant log back in so i open up navicat got ta my server data...



Alle Zeitangaben in WEZ +1. Es ist jetzt 18:04 Uhr.


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 | Kontakt | FAQ | Werbung | Datenschutzerklärung | Nutzungsbedingungen | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.