|
You last visited: Today at 11:27
Advertisement
[Request]Dupe fix again
Discussion on [Request]Dupe fix again within the Shaiya Private Server forum part of the Shaiya category.
03/13/2012, 12:51
|
#1
|
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
|
[Request]Dupe fix again
please can someone that know this make a dupe fix for ep5? i been reading this up and down now for day's all i can find is deleted stuff
and 995 of the posts turn out to link to the same page's that are deleted. the litle pro's ps_ fix and some other guy that left this place..
isnt there a easy way to just get that loggout time to work? i have tried alot of the stuff and it does 2 things..
give me alot of error codes or the other one works (command compleat)
but items keep on getting lost. even old stuff LOL
there has to be a way even a tutorial on how it should work so you can check all you need to check and see if you have in your db..
|
|
|
03/13/2012, 14:17
|
#2
|
elite*gold: 0
Join Date: Dec 2009
Posts: 59
Received Thanks: 9
|
There are alot of links here. The packet based fixed is in the last section.
|
|
|
03/13/2012, 14:41
|
#3
|
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
|
thanks i have that but i still can't find a dupe fix.. i hade one that worked but after all the attacks i hade for 6 month mine wasent working anymore.
i mabe use a old db but i use the banes ep5 and i can't find a dupe fix for that db i have,.. like i said all i have tried give me buggs like items sudenly is just gone from the db. from guild wh and so on.. and no it's not dupe items..
or i get alot of errors..
|
|
|
03/13/2012, 15:40
|
#4
|
elite*gold: 0
Join Date: Dec 2009
Posts: 59
Received Thanks: 9
|
Quote:
Originally Posted by Iulian01
|
Maybe this one?
|
|
|
03/13/2012, 15:52
|
#5
|
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
|
angain thanks but iss don't support
sql_connect and i don't have the php skill to change that to ODBC_connect
sorry..
|
|
|
03/17/2012, 19:11
|
#6
|
elite*gold: 0
Join Date: Mar 2012
Posts: 172
Received Thanks: 46
|
this has all 3 of EarthCrush's dupe fixes. that it? or you talking about lph ps_game.exe or the the ether one? just let me know i got them all lol^^
|
|
|
03/17/2012, 19:33
|
#7
|
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
|
have that thanks. i'll try this..
i used the admin pack one and that gave me a big error. about everyone couldnt loggin. +the sql and server was lagging insanly..
kk first one i get:
Quote:
Msg 102, Level 15, State 1, Line 3
Incorrect syntax near '@UserUID'.
Msg 137, Level 15, State 1, Line 32
Must declare the scalar variable "@LoginTime".
Msg 137, Level 15, State 2, Line 36
Must declare the scalar variable "@UserIP".
Msg 137, Level 15, State 1, Line 41
Must declare the scalar variable "@UserUID".
Msg 137, Level 15, State 2, Line 46
Must declare the scalar variable "@UserUID".
Msg 156, Level 15, State 1, Line 50
Incorrect syntax near the keyword 'ELSE'.
Msg 102, Level 15, State 1, Line 59
Incorrect syntax near '.'.
Msg 137, Level 15, State 2, Line 62
Must declare the scalar variable "@UserUID".
Msg 137, Level 15, State 2, Line 67
Must declare the scalar variable "@UserUID".
Msg 102, Level 15, State 1, Line 69
Incorrect syntax near 'OFF'.
|
number 2:
Quote:
Msg 102, Level 15, State 1, Procedure usp_Try_GameLogout_R, Line 43
Incorrect syntax near '3.'.
Msg 319, Level 15, State 1, Procedure usp_Try_GameLogout_R, Line 43
Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.
|
and number 3
Quote:
Msg 102, Level 15, State 1, Line 5
Incorrect syntax near '…'.
Msg 137, Level 15, State 2, Line 11
Must declare the scalar variable "@ActionTime".
Msg 137, Level 15, State 2, Line 12
Must declare the scalar variable "@ActionTime".
Msg 137, Level 15, State 2, Line 13
Must declare the scalar variable "@ActionTime".
Msg 137, Level 15, State 2, Line 16
Must declare the scalar variable "@ActionType".
Msg 137, Level 15, State 2, Line 22
Must declare the scalar variable "@UserUID".
Msg 137, Level 15, State 2, Line 26
Must declare the scalar variable "@CharID".
Msg 137, Level 15, State 2, Line 30
Must declare the scalar variable "@ActionType".
Msg 137, Level 15, State 2, Line 37
Must declare the scalar variable "@UserUID".
Msg 137, Level 15, State 2, Line 42
Must declare the scalar variable "@Value2".
Msg 137, Level 15, State 1, Line 47
Must declare the scalar variable "@Sql".
Msg 137, Level 15, State 2, Line 54
Must declare the scalar variable "@Sql".
|
i just need help fixing this 1 time for all please.. what is my bugg?
|
|
|
03/18/2012, 02:31
|
#8
|
elite*gold: 0
Join Date: Apr 2010
Posts: 148
Received Thanks: 171
|
Your above errors are from you just executing the queries.. you have to paste the edited code into your stored procedures. Are people this lazy?
Quote:
Msg 102, Level 15, State 1, Line 5
Incorrect syntax near '…'.
|
Do you think this really can be part of a stored procedure? Or you didn't bother looking and just thought someone else would look for you?
Quote:
Msg 137, Level 15, State 1, Line 32
Must declare the scalar variable "@LoginTime".
Msg 137, Level 15, State 2, Line 36
Must declare the scalar variable "@UserIP".
Msg 137, Level 15, State 1, Line 41
Must declare the scalar variable "@UserUID".
Msg 137, Level 15, State 2, Line 46
Must declare the scalar variable "@UserUID".
Msg 137, Level 15, State 2, Line 62
Must declare the scalar variable "@UserUID".
Msg 137, Level 15, State 2, Line 67
Must declare the scalar variable "@UserUID".
Msg 102, Level 15, State 1, Line 69
Msg 137, Level 15, State 2, Line 11
Must declare the scalar variable "@ActionTime".
Msg 137, Level 15, State 2, Line 12
Must declare the scalar variable "@ActionTime".
Msg 137, Level 15, State 2, Line 13
Must declare the scalar variable "@ActionTime".
Msg 137, Level 15, State 2, Line 16
Must declare the scalar variable "@ActionType".
Msg 137, Level 15, State 2, Line 22
Must declare the scalar variable "@UserUID".
Msg 137, Level 15, State 2, Line 26
Must declare the scalar variable "@CharID".
Msg 137, Level 15, State 2, Line 30
Must declare the scalar variable "@ActionType".
Msg 137, Level 15, State 2, Line 37
Must declare the scalar variable "@UserUID".
Msg 137, Level 15, State 2, Line 42
Must declare the scalar variable "@Value2".
Msg 137, Level 15, State 1, Line 47
Must declare the scalar variable "@Sql".
Msg 137, Level 15, State 2, Line 54
Must declare the scalar variable "@Sql".
|
This here is obviously where someone removed the top portion of the stored procedure where it declared the variables that are in every stored procedure. You might want to read what people post before just copy and pasting it into your manager then hitting that Execute button.
Tyler
Edit:
I actually downloaded the above file to see what the '3.' error was:
Quote:
3. Modify [PS_GameLog].[dbo].[usp_Insert_Action_Log_E] Update your file with the changes highlighted below.
Spoiler:
|
People are getting too lazy now, the new tools people create are handy, but it makes people think they can just copy and paste things and expect everything just to work, and when it doesn't, come running to the forums instead of looking at what they actually did, which is what they should do, which is what every developer here has done, that is how people learn. If you look at what errors you get, you learn why you get them, or how you have gotten them, and boom, you can start solving your own problems instead of posting the same stuff over and over.
Here is your fix.
Instead of putting files for you to download, I am going to show you the parts of the files you need to add to your procedures.
Edits to make to the PS_userdata.dbo.usp_Try_GameLogin_Taiwan:
Under DECLARE you must declare the variable @LeaveDate
Like so:
Code:
@LeaveDate datetime
You need to add this instead of the current select statement for the UserUID:
Code:
SELECT @UserUID=[UserUID], @Status=[Status], @Leave=[Leave], @LeaveDate=LeaveDate
FROM Users_Master
WHERE UserID = @UserID AND Pw = @InPassword
-- NotExist User OR Leave User
IF( @UserUID = 0)
BEGIN
SET @Status = -3
END
ELSE IF (@Leave = 1) --This blocks a logged in account from being kicked
BEGIN
SET @Status = -5
END
ELSE IF (DATEDIFF(SECOND, @LeaveDate, GETDATE()) < 6)--This is the time delay
BEGIN
SET @Status = -7
END
*Remove the password check for the OMGWeb Database.
Under --Log Insert, add the UPDATE statement inside the IF statement, below is an example:
Code:
IF( @Status = 0 OR @Status = 16 OR @Status = 32 OR @Status = 48 OR @Status = 64 OR @Status = 80 )
BEGIN
UPDATE Users_Master SET Leave = 1, JoinDate = GETDATE() WHERE UserUID = @UserUID
EXEC usp_Insert_LoginLog_E @SessionID=@SessionID, @UserUID=@UserUID, @UserIP=@UserIP, @LogType=0, @LogTime=@LoginTime, @LoginType=@LoginType
END
Edits to make to PS_userdata.dbo.usp_Try_GameLogout_R
Add this after the IF statements:
Code:
UPDATE Users_Master SET Leave = 1, JoinDate = GETDATE() WHERE UserUID = @UserUID
Edits to make to PS_GameLog.dbo.usp_Insert_Action_Log_E
You must declare the variable @CharLeave below the AS like so:
Code:
DECLARE @CharLeave int
Add this:
Then below that:
Code:
IF @ActionType = '116'--Trade Item-remove item from originator
BEGIN
WAITFOR DELAY '00:00:05'--Time delay to give the duper time to log out fully
SELECT @CharLeave=Leave
FROM PS_userdata.dbo.Users_Master
WHERE UserUID=@UserUID
IF @CharLeave=0
BEGIN
EXEC PS_GameData.dbo.usp_Save_Char_Item_Del_E @CharID=@CharID, @IDList=@Value1
END
END
IF @ActionType = '164'--Trade Gold-remove gold from originator
BEGIN
WAITFOR DELAY '00:00:05'--Time delay to give the duper time to log out fully
SELECT @CharLeave=Leave
FROM PS_userdata.dbo.Users_Master
WHERE UserUID=@UserUID
IF @CharLeave=0
BEGIN
UPDATE PS_GameData.dbo.Chars
SET [Money]=@Value2
WHERE PS_GameData.dbo.Chars.CharID=@CharID
END
END
You are now done.
Credits to EarthCrush *[GM]Father* for this.
|
|
|
03/18/2012, 14:48
|
#9
|
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
|
well this is why.. i hade to change the old one that totaly messed up sql (admin panel so that's why i run this..
btw:
Quote:
|
Under DECLARE you must declare the variable @LeaveDate
|
DECLARE
@Leave tinyint,
@Status smallint,
@CompanyIP varchar(15),
@TempIP varchar(15),
@Check int,
@LeaveDate datetime,
that's there right?
and for number 3:
Quote:
Edits to make to PS_GameLog.dbo.usp_Insert_Action_Log_E
You must declare the variable @CharLeave below the AS like so:
Code:
DECLARE @CharLeave intAdd this:
Code:
SET @CharLeave=1
|
mine is like this:
AS
DECLARE @CharLeave int
SET @yyyy = datepart(yyyy, @ActionTime)
SET @mm = datepart(mm, @ActionTime)
SET @dd = datepart(dd, @ActionTime)
SET @CharLeave = 1
both there right?
and after i juast edited everything in that old i hade i got alot of bad red ones. isnt there 1 i can check that works? one i can't just run but i need to see where i might have gone wrong..
i need a compleate for all 3 just to check. i have never used this stuff before i need to learn how this stuff works too..
|
|
|
03/18/2012, 19:52
|
#10
|
elite*gold: 0
Join Date: Apr 2010
Posts: 148
Received Thanks: 171
|
Quote:
Originally Posted by Svinseladden
@LeaveDate datetime,
|
Remove the comma after datetime, but yes that is where it goes.
Quote:
Originally Posted by Svinseladden
AS
DECLARE @CharLeave int
SET @yyyy = datepart(yyyy, @ActionTime)
SET @mm = datepart(mm, @ActionTime)
SET @dd = datepart(dd, @ActionTime)
SET @CharLeave = 1
|
This is correct too.
Adding the things to your own procedures allows you to see how they work instead of just pressing the execute button on someone elses work. If you have screwed your procedures up, you can always download the files and get fresh procedures, then add the edits from above to them.
Tyler
|
|
|
03/18/2012, 20:30
|
#11
|
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
|
i'll try thanks
|
|
|
12/22/2012, 22:05
|
#12
|
elite*gold: 0
Join Date: Aug 2009
Posts: 102
Received Thanks: 75
|
I make the edits this way on an EP4 server but I get the account doesn't exist message.Is there another way to fix duping on EP4 servers?
|
|
|
12/27/2012, 14:35
|
#13
|
elite*gold: 0
Join Date: Aug 2009
Posts: 102
Received Thanks: 75
|
Bump
|
|
|
Similar Threads
|
[REQUEST] Dupe Fix
03/06/2012 - Shaiya Private Server - 5 Replies
Any available link of dupe fix ? as far as i searched all were removed by authors
|
[REQUEST]Dupe
01/21/2012 - Flyff Private Server - 0 Replies
Could be granted a Dupe System for any P.Server on Flyff?
|
How to Dupe [REQUEST]
12/11/2011 - Cabal Online - 3 Replies
Title says it all. Please explain.
When i login in to 1 account from 2 computers , everytime the first pc logs in and the second just says connecting untill it goes to 100% and after that says login failed. Otherway i dc.
|
NO GG S>FISH BOT, DUPE BOT, REQUEST ANY BOT
10/31/2010 - General Gaming Discussion - 2 Replies
WLA NG GAME GUARD PEDE NA MAGBOT . add me sa ym techpie4
LOAD LNG KTAPAT KO ,,OK NA SA AKIN!!!
|
All times are GMT +1. The time now is 11:29.
|
|