if(@JobID= '59714') --- rename pet attack
begin
declare @

int
declare @

lot int
declare @

id int
set @

lot =(select itemid from _Inventory where Slot =13 and CharID =@CharID )
set @

id =(select Data from _Items where ID64 @

lot )
update _CharCOS set Charname =NULL where id @

id
end