Register for your free account! | Forgot your password?

You last visited: Today at 02:31

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

Advertisement



AP Script

Discussion on AP Script within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 295
Received Thanks: 19
AP Script

hi,

i serching a script to add all accounts ap, not single, have anyone it? thank you
accuface35 is offline  
Old 08/31/2013, 22:45   #2
 
tracker62's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 208
Received Thanks: 25
PS_GameLog ==> Programmability ==> usp_Insert_Action_Log_E

END
IF( @ActionType = 114 )
BEGIN
IF( @Value2 = 28110 <== Items)
BEGIN
UPDATE PS_UserData.dbo.Users_Master
SET Point = Point + ( 25 <== AP* @Value4 )
WHERE UserUID = @UserUID
END
END


below to begin transaction
Attached Images
File Type: jpg EasyCapture1.jpg (52.4 KB, 111 views)
tracker62 is offline  
Old 08/31/2013, 23:02   #3
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,455
Quote:
Originally Posted by tracker62 View Post
PS_GameLog ==> Programmability ==> usp_Insert_Action_Log_E

END
IF( @ActionType = 114 )
BEGIN
IF( @Value2 = 28110 <== Items)
BEGIN
UPDATE PS_UserData.dbo.Users_Master
SET Point = Point + ( 25 <== AP* @Value4 )
WHERE UserUID = @UserUID
END
END


below to begin transaction
You included 2 things that aren't related to each other, and none of them are even related to the answer to the question.

Here's the answer:
Code:
USE PS_UserData
UPDATE Users_Master
SET Point += 1
Replace 1 with anything you want, and every account will get that amount of AP.
nubness is offline  
Thanks
2 Users
Old 08/31/2013, 23:20   #4
 
elite*gold: 0
Join Date: Feb 2011
Posts: 295
Received Thanks: 19
PS_GameLog ==> Programmability ==> usp_Insert_Action_Log_E

END
IF( @ActionType = 114 )
BEGIN
IF( @Value2 = 28110 <== Items)
USE PS_UserData
UPDATE Users_Master
SET Point += 1
WHERE UserUID = @UserUID
END
END


is this so right?
accuface35 is offline  
Old 08/31/2013, 23:27   #5
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,455
Quote:
Originally Posted by accuface35 View Post
PS_GameLog ==> Programmability ==> usp_Insert_Action_Log_E

END
IF( @ActionType = 114 )
BEGIN
IF( @Value2 = 28110 <== Items)
USE PS_UserData
UPDATE Users_Master
SET Point += 1
WHERE UserUID = @UserUID
END
END


is this so right?
Is my post so invisible ? I clearly stated that it is NOT right. The answer to your question is in my post above too.
nubness is offline  
Thanks
1 User
Old 08/31/2013, 23:36   #6
 
tracker62's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 208
Received Thanks: 25
for me the server market but now
tracker62 is offline  
Old 08/31/2013, 23:40   #7
 
elite*gold: 0
Join Date: Feb 2011
Posts: 295
Received Thanks: 19
sry nubness, im stupid and tired thank you for your answer nubness and trackers

USE PS_UserData
UPDATE Users_Master
SET Point += 1


Sry this script is error by me, when i =+ 1 to make, all ap are 1, but the exists ap are not there, let me explain: my char has 20000 AP, after the Script i have 2 AP, whats wrong?
accuface35 is offline  
Old 09/01/2013, 07:09   #8
 
elite*gold: 0
Join Date: Jul 2010
Posts: 523
Received Thanks: 523
May be you did some mistake, 'cause the script is simple and works fine. Every time you run the script all accounts should have +1 point.

Try this:

USE PS_UserData
UPDATE Users_Master
SET Point += 1000
WHERE UserUID=put_your_useruid_here

(use UserUID so you only modify your own account in case of errors)
sominus is offline  
Old 09/01/2013, 08:03   #9
 
tracker62's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 208
Received Thanks: 25
UPDATE PS_UserData.dbo.Users_Master SET Point = (Point + 10) WHERE Point < (2147483647 - 10);
tracker62 is offline  
Old 09/01/2013, 08:54   #10

 
{Skrillex}'s Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 850
Received Thanks: 408
#
Quote:
UPDATE [PS_UserData].[dbo].[Users_Master] SET Point = (Point + howmutch)
{Skrillex} is offline  
Old 09/01/2013, 09:24   #11
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,455
I'm disgusted to see that there's people who cannot write even such simple queries on their own. I bet you're planning to start a private server soon, just like anyone else. In an emergency situation, not knowing how to write a simple query, you will hate yourself. SQL is the easiest language I've ever seen, yet some people seem to have a problem with understanding its syntax. Why don't you take some before proceeding with Shaiya development ?
nubness is offline  
Thanks
1 User
Old 09/07/2013, 01:52   #12




 
Autrux's Avatar
 
elite*gold: 246
Join Date: Dec 2010
Posts: 33,474
Received Thanks: 6,059
Arrow Shaiya PServer Development -> Shaiya Private Server

#moved
Autrux is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[S] Facebook-Like Script oder Twitter Mass Follow Script [B] e*gold
03/06/2013 - General Coding - 2 Replies
Hey, Leute.. Ich suche ein Facebook-Like Script oder ein Twitter Mass Follow Script das mit GreaseMonkey funkt. Entweder selber coden oder im Internet danach suchen. Wer mir es liefert wird auch entsprechend belohnt.
[Biete] Scripteen Ajax Photo Rating Script V2 License (Hot or Not Script) [S] Paypal
01/31/2013 - Trading - 0 Replies
Hey, und zwar brauche ich das Script nicht mehr und stelle meine License deshalb hier zum Verkauf. Link zum Script: Hot or Not Script | Photo Rating Script | Scripteen PHP Scripts Macht mir Angebote suche Paypal. Screenshots: http://scripteen.com/uploads/156-Screen%20Shot%20 2012-05-19%20at%2010.32.56%20AM.png http://scripteen.com/uploads/381-Screen%20Shot%20 2012-05-19%20at%2010.33.07%20AM.png



All times are GMT +1. The time now is 02:31.


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.