Register for your free account! | Forgot your password?

You last visited: Today at 05:22

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

Advertisement



Trigger...

Discussion on Trigger... within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
-Prestige..'s Avatar
 
elite*gold: 0
Join Date: May 2017
Posts: 108
Received Thanks: 17
Trigger...

Code:
ALTER trigger [dbo].[PrestigePoints] 
ON [PRESTIGE].[dbo].[*Prestige] 
After UPDATE AS 
DECLARE [MENTION=339086]Reason[/MENTION] varchar(max) 
Select [MENTION=339086]Reason[/MENTION]= COLUMN_NAME from INFORMATION_SCHEMA.COLUMNS 
--update PRESTIGE.dbo.[*Prestige] set [JOB|Death]=[JOB|Death]+1 where [MENTION=643446]killed[/MENTION]Name=CharName 
DECLARE [MENTION=395373]Chari[/MENTION]D int 
Select [MENTION=395373]Chari[/MENTION]D=CharID from PRESTIGE.dbo.[*Prestige] 
DECLARE [MENTION=505066]point[/MENTION] int 
Select [MENTION=505066]point[/MENTION]=Points from PRESTIGE.dbo.[LIST|PrestigePoints] Where Reason [MENTION=339086]Reason[/MENTION] 
BEGIN 
EXEC SRO_VT_ACCOUNT.CGI.CGI_PrestigePoints [MENTION=395373]Chari[/MENTION]D [MENTION=505066]point[/MENTION] 
END


I'd like to Select @ >> The column name which is updated


but using that >> Select @= COLUMN_NAME from INFORMATION_SCHEMA.COLUMNS .. doesn't do the job ?
-Prestige.. is offline  
Old 05/17/2017, 21:10   #2
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 2,008
Received Thanks: 1,193
set @ = (select Reason from inserted)
B1Q is offline  
Old 05/17/2017, 21:24   #3
 
-Prestige..'s Avatar
 
elite*gold: 0
Join Date: May 2017
Posts: 108
Received Thanks: 17
Quote:
Originally Posted by B1QB0SS :3 View Post
set @ = (select Reason from inserted)
Well the inserted line is like >>
Update xxxx set vv=vv+1 where zz=zz

how can i capture that "vv" ?


Edit >> That "vv" is a column name? .. so ..
Set @ = COLUMN_NAMEorsmth from inserted .
is not working.. i tried everything ...
am not that expert .. but i can work around things ..
-Prestige.. is offline  
Old 05/17/2017, 21:33   #4
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 2,008
Received Thanks: 1,193
dude wtf are you talking about!
it's like this

select @omk = mycoluimn from inserted
B1Q is offline  
Old 05/17/2017, 22:27   #5
 
-Prestige..'s Avatar
 
elite*gold: 0
Join Date: May 2017
Posts: 108
Received Thanks: 17
Quote:
Originally Posted by B1QB0SS :3 View Post
dude wtf are you talking about!
it's like this

select @omk = mycoluimn from inserted



what is the **** statement ? ?

---------------------------------------------------------------------------------------------
in other words, how can i capture the name of column which is being updated?
-Prestige.. is offline  
Old 05/17/2017, 23:28   #6


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
Quote:
Originally Posted by -Prestige.. View Post



what is the **** statement ? ?

---------------------------------------------------------------------------------------------
in other words, how can i capture the name of column which is being updated?
Okay I am gonna assume that you have pretty stupid structure for a very simply operation.

Please post a picture of the table.
​Exo is offline  
Old 05/18/2017, 01:05   #7
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 2,008
Received Thanks: 1,193
oh... ok check
UPDATE(COLUMN_NAME) it returns boolean
true: if the column name specified was updated

it will return TRUE for all columns on insert hh

USAGE:
IF (UPDATE(MYCOLUMN))
BEGIN
-- MYCOLUMN WAS UPDATED
END
B1Q is offline  
Reply


Similar Threads Similar Threads
[Cirno's hack trigger update ] Hack trigger december version is coming back
02/20/2017 - Grand Chase Hacks, Bots, Cheats & Exploits - 9 Replies
http://i805.photobucket.com/albums/yy339/roxsnow25 /9e8a1f7bde09a7e3f8eb43050f705ed9ecc.jpg Okay so I have concluded Hack trigger is working some how but its not working on Grand chase Reborn I ran some tests _________________________________________________ ____________ The tests was run on both GCR and GCH of stability : Tool was stable on GCH - Stable Tool was stable on GCR - Not stable tool is overrun with lag from the server...
Error, Possibly Trigger Scroll Address!
11/20/2007 - Silkroad Online - 5 Replies
Well It could POSSIBLY be the trigger scroll address. I have never noticed this if it is normal but i used a Trigger Scroll today and thisis what it showed me. The heading was meant to be " Possibly something Significant" LoL http://img520.imageshack.us/img520/5656/69279191z g8.jpg
TRiggEr für spells ?
03/11/2005 - World of Warcraft - 15 Replies
moin, ich spiele einen mage und habe mal in einem mage vid gesehen, wie eine art tool oder mod oder was auch immer spell für ihn getriggert hat. also man drückt einmal die taste für einen bestimmten spell und das "tool" drückt dann ganz schnell diese taste bis der cooldown weg ist und der spell gecastet werden kann. hat jemand einen plan, welches addon/tool/ui-mod das kann? habe bei curse-geming mal geguckt, aber nichts in der art gefunden..



All times are GMT +1. The time now is 05:22.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.