I'm using vsro database, and wanna to create a lottery item by following speps of this
I've successfully done every step, only have a prob with making the AddTimedJob Procedure well. I've made a simple copy + paste with a bit editing of @ JobID,but it doesn't work.
Guys, could any of you help me how I should fix it?
CODE:
PHP Code:
if @ JobID = '35129') ------- JobID = RefSkill ID
begin
declare @ charname6 varchar(64)
Select @ charname6=CharName16 from SRO_VT_SHARD.dbo._Char where CharID = @ CharID
declare @ lottery Avatar varchar(129)
set @ lottery Avatar = (SELECT TOP 1 GiftItems FROM SRO_VT_SHARD.dbo._LotteryNEWSTONE ORDER BY NEWID())
exec SRO_VT_SHARD.dbo._ADD_ITEM_EXTERN @ charname 6 @ lottery Avatar,1,0
end
NS
p.s.: there isn't any space nex to '@' in the PHP code