Item Change and itemid

06/03/2015 21:12 GMCronus#1
this is the thing. i have char item change in my server.

This only change Type and TypeID.

Any way to make a trigger to let's say

IF (@ActionType = 121)
begin
Update PS_GameData.dbo.UserStoredItems SET ItemID= Type and TypeID;
END

i know this isnt going to work LOL but i have a problem telling sql to add both type number and TypeID number to make ItemID

anyone that know sql that much?

Thanks
06/03/2015 22:13 killer2p#2
itemID is type and type id combined
GM 5 loop example 40255
06/03/2015 23:14 nubness#3
SET ItemID = Type * 1000 + TypeID