Client~Side
modGeneral
No final do modulo adicione
- Código:
Public Sub ClearGameData()
' If debug mode, handle error then exit out
If Options.Debug = 1 Then On Error GoTo errorhandler
Call ClearNpcs
Call ClearResources
Call ClearItems
Call ClearShops
Call ClearSpells
Call ClearAnimations
' Error handler
Exit Sub
errorhandler:
HandleError "ClearGameData", "modGeneral", Err.Number, Err.Description, Err.Source, Err.HelpContext
Err.Clear
Exit Sub
End Sub
Ache:
- Código:
' load the main game (and by extension, pre-load DD7)
Acima adicione:
- Código:
' Clear game values
Call SetStatus("Clearing game data...")
Call ClearGameData
Créditos
Ricardo
Ricardo