Ex.
--rallystart1hr
declare @

ount int
declare @

d int
declare @

point int
select @

ount = [play_sec]
from TCharacterLogin
where char_id = @

_id
select @

d = [char_id]
from TCharacterLogin
where play_sec >= @

ount
if @

ount >= 3600)
begin
INSERT INTO dbo.TEventItem (type, attr, stack, rank, equip_level, equip_dexterity, equip_intelligence, equip_strength, char_id) VALUES (4391040, 0x1A02001B01001901002501001701000D0100070100, 1, 0, 0, 0, 0, 0, @

d)
update RohanGame.dbo.TCharacterLogin set play_sec = play_sec - 3600 where char_id = @

d
end
--rallyend1hr