Register for your free account! | Forgot your password?

You last visited: Today at 02:43

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

Advertisement



[Release] Script auto gain AP

Discussion on [Release] Script auto gain AP within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2010
Posts: 98
Received Thanks: 6
[Release] Script auto gain AP

Script reworked by me
had some bugs and errors but I ageitei.
What you want to leave anything in doubt.

================================================== =======

USE [PS_UserData]
GO
/****** Object: StoredProcedure [dbo].[usp_Try_GameLogout_R] Script Date: 01/31/2012 18:21:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

/****** Object: Stored Procedure dbo.usp_Try_GameLogout_R Script Date: 2008-6-7 18:34:05 ******/
ALTER Proc [dbo].[usp_Try_GameLogout_R]

/*
Created by humanws, 2005-10-18
???? ?? ??
*/

@UserUID int,
@SessionID bigint,
@LogoutType smallint = 0,
@ErrType int = 0

AS

SET NOCOUNT ON

DECLARE @LogTime datetime
DECLARE @Sql nvarchar(4000)
DECLARE @yyyy varchar(4)
DECLARE @mm varchar(2)
DECLARE @dd varchar(2)
DECLARE @LogType bit -- Login:0, Logout:1

SET @LogType = 1
SET @LogTime = GETDATE()
SET @yyyy = DATEPART(yyyy, @LogTime)
SET @mm = DATEPART(mm, @LogTime)
SET @dd = DATEPART(dd, @LogTime)

IF( LEN(@mm) = 1 )
BEGIN
SET @mm = '0' + @mm
END

IF( LEN(@dd) = 1 )
BEGIN
SET @dd = '0' + @dd
END
UPDATE Users_Master SET Leave = 0, LeaveDate = GETDATE() WHERE UserUID = @UserUID

SET @Sql = N'
INSERT INTO PS_GameLog.dbo.UserLog
(SessionID, UserUID, LogType, LogTime, LogoutType, ErrType)
VALUES(@SessionID, @UserUID, @LogType, @LogTime, @LogoutType, @ErrType)'

EXEC sp_executesql @Sql,
N'@SessionID bigint, @UserUID int, @LogType bit, @LogTime datetime, @LogoutType smallint, @ErrType int',
@SessionID, @UserUID, @LogType, @LogTime, @LogoutType, @ErrType
update PS_userdata.dbo.UserLoginStatus
set loginstatus=0,LogoutTime=@LogTime,LogoutSession=@S essionID,LastPlayTime=datediff(minute,LoginTime,@L ogTime)
where useruid=@useruid

DECLARE @LoginTime datetime
DECLARE @LastPlayTime int
DECLARE @OldPoint int
DECLARE @LoginSession bigint
SET @LoginSession=(select LoginSession from PS_userdata.dbo.UserLoginStatus where useruid=@useruid)
SET @LastPlayTime=(select LastPlayTime from PS_userdata.dbo.UserLoginStatus where useruid=@useruid)
SET @LoginTime=(select LoginTime from PS_userdata.dbo.UserLoginStatus where useruid=@useruid)
SET @OldPoint=(select Point from PS_userdata.dbo.Users_Master where useruid=@useruid)
IF (@SessionID=@LoginSession)
BEGIN
Update PS_userdata.dbo.Users_Master
SET point=1
WHERE useruid=@useruid
INSERT INTO PS_userdata.dbo.UserOnlineTimeLog(UserUid,OldPoint ,Addpoint,LoginTime,LogoutTime,SessionID)
values(@UserUid,@OldPoint,@LastPlayTime,@LoginTime ,@LogTime,@SessionID)
end
SET NOCOUNT OFF


================================================== =====

PS: It is scheduled to earn a point for every minute ap logged.
If you want to change the gain of AP just changes "point = 1 for the number that you want.
venon321 is offline  
Thanks
1 User
Old 05/17/2012, 04:08   #2
 
elite*gold: 0
Join Date: Apr 2012
Posts: 129
Received Thanks: 75
Very good job, I'll check and see if it works.
Thank you for sharing this with the community epvp *
George St-Pierre is offline  
Thanks
1 User
Old 05/17/2012, 04:25   #3
 
elite*gold: 0
Join Date: Aug 2010
Posts: 98
Received Thanks: 6
Happy to help the community elite pvp
venon321 is offline  
Old 05/17/2012, 17:07   #4
 
treica's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 525
Received Thanks: 805
I love to but not to post as release something that has been posted here


Is the same just copy paste from this topic and changed there point=1 here but the same spaces as this topic :P
Quote:
set loginstatus=0,LogoutTime=@LogTime,LogoutSession=@S essionID,LastPlayTime=datediff(minute,LoginTime,@L ogTime)
I wrong?

Give credits to real poster of this
treica is offline  
Thanks
1 User
Old 05/18/2012, 06:30   #5
 
elite*gold: 0
Join Date: Aug 2010
Posts: 98
Received Thanks: 6
Wrong.
I got the script every bug and fix the flaws.
venon321 is offline  
Old 11/07/2018, 01:11   #6
 
elite*gold: 0
Join Date: Dec 2012
Posts: 4
Received Thanks: 0
how can i gain ap sir >
jestoni143 is offline  
Old 11/07/2018, 03:39   #7
 
Blober's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 194
Received Thanks: 67
Quote:
Originally Posted by treica View Post
I love to but not to post as release something that has been posted here


Is the same just copy paste from this topic and changed there point=1 here but the same spaces as this topic :P

I wrong?

Give credits to real poster of this
Please read before bumping an old old thread (6years old).

Thanks.
Blober is offline  
Reply


Similar Threads Similar Threads
[Release] Auto Donation Script (paypal)
02/11/2017 - EO PServer Guides & Releases - 8 Replies
Hi All i finaly got my script ready and it is ready to be released i know some users asked about a auto donation reward script and finaly there is a script that can do that this is what the script can do Reward VIP level
[Release] Auto balance Script for Factions
09/07/2011 - Shaiya PServer Development - 3 Replies
Hier ein kleines Script um die Spieler auf beiden Seiten auszugleichen. Vielleicht nicht für jeden zu gebrauchen, aber hilfreich. UM ist sofort freigeschaltet. Die Spieler loggen sich einfach ein und können einen Character auf der zugewiesenen Seite erstellen. Dies kann umgangen werden wenn man auf klickt im Character Change Window. Diesen Teil in die Prozedur dbo.usp_Try_GameLogin_Taiwan einfügen:
[Release]PSC Auto-Cashin-Script
09/03/2010 - Metin2 PServer Guides & Strategies - 74 Replies
Hi http://www.paysafecard.com/fileadmin/templates/im ages/paysafecard-logo.gif Ich release heute ein Auto-Cashin-Script für PaySafeCards. Ich möchte betonen,dass nicht ich dieses Script geschrieben habe, sondern Sapphire. Herzlichen Dank an dieser Stelle. Das Script ist eine Public-Version. Kurz Info zur Funktionsweise:
(Release)Action 6- auto-pots(working script)
03/29/2010 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 1 Replies
ALLL THIS ARE WORKING SCRIPTS FOR ACTION 6 AUTO-POTS alloc(newmem,1024) label(returnhere) label(originalcode) label(exit)
[Release] 2moons Auto Login Script
10/31/2008 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 6 Replies
I wrote this as a quick sample to friend of how to use the PixelChecksum function of AutoIt v3. Please bear in mind that it ONLY works for 1024x768 resolution (as I was running 2Moons in a window mode while developing this proof of concept for a friend.) YOU WILL NEED TO BE RUNNING THE GAMEGUARD EMULATOR. I will possibly be developing this further if there becomes enough demand, If ANYTHING it can be rather help for you people to see howto do pixel checksums (rather than check every...



All times are GMT +2. The time now is 02:43.


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.