IF(@JobID = '33937') -- RefSkill ID Begin Declare @lvl int Declare @ID int Declare @State int Set @ID = (Select ID From _CharCOS Where ID=@ID) Set @lvl = (Select Lvl From _CharCOS Where ID=@ID) Set @State = '1' Update _CharCOS Set @lvl = '110' Where ID=@ID And State=@State END