function SaveItem takes item i, SaveCode data returns nothing
call data.write(GetItemTypeId(i))
if (null != i) then
call data.write(GetItemCharges(i))
endif
endfunction
function LoadItem takes LoadCode data returns item
set loadItem = CreateItem(data.read(), 0, 0)
call SetItemCharges(loadItem, data.read())
return loadItem
endfunction
I'm trying to finish my codeless saveload as a last gift and I come across this little beauty.
I'm trying to finish my codeless saveload as a last gift and I come across this little beauty.