Hello all! I've been adding rent period into some items after they're bought from the shop but their rent period doesn't appear until you relogin/reselect your character.
This is the following:-
Ahy help regarding on how to make it so that it updates as soon as it is bought is greatly appreciated.Code:IF (@ItemID = 8) OR (@ItemID = 18) OR (@ItemID = 35) OR (@ItemID = 4021) OR (@ItemID = 4022) OR (@ItemID = 4515) OR (@ItemID = 4516) OR (@ItemID = 5019) OR (@ItemID = 5020) OR (@ItemID = 6008) OR (@ItemID = 7009) OR (@ItemID = 8004) OR (@ItemID = 9007)
UPDATE CharacterItem SET RentHourPeriod = 168 WHERE CID=@CID AND ItemID=@ItemID
IF 0 <> @@ERROR
BEGIN
ROLLBACK TRAN
RETURN (-1)
END
