Skip to content

Has this code even been tested..? #24

@Arhowk

Description

@Arhowk
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions