Beispiel #1
0
func main() {
	var err error
	fmt.Println("                         EQCleanup, v0.15")
	fmt.Println("                       Written by Shin Noir")
	fmt.Println("--------------------------------------------------------------------------")
	var option string
	_, err = eqdb.Load()
	if err != nil {
		fmt.Println(err.Error())
		fmt.Println("Press q then enter to quit.")
		fmt.Scanf(option)
		return
	}
	fmt.Println("* !!!NOTE!!! Backup your database before using this tool.")

	//var err error
	mainMenu := []menu.CommandOption{
		menu.CommandOption{"era", "Out of era edits, ex. removing items or npcs", era.Menu},
		menu.CommandOption{"zone", "Zone migration tools, ex. newer to classic zone", zone.Menu},
		menu.CommandOption{"core", "System maintainence options, ex. removing all character data", core.Menu},
		menu.CommandOption{"misc", "misc edits, ex. disabling rainfall", misc.Menu},
	}
	menuOptions := menu.NewMenuOptions("'menu' for help []> ", 0)

	menu := menu.NewMenu(mainMenu, menuOptions)
	menu.Start()
}
Beispiel #2
0
func Menu(args ...string) (err error) {
	//var err error
	eraMenu := []menu.CommandOption{
		menu.CommandOption{"wipe", "Wipes all Character Data", wipe.Clean},
		menu.CommandOption{"quit", "Return to main menu", nil},
	}
	menuOptions := menu.NewMenuOptions("'menu' for help [system]> ", 0)

	menu := menu.NewMenu(eraMenu, menuOptions)
	menu.Start()
	return
}
Beispiel #3
0
func Menu(args ...string) (err error) {
	//var err error
	eraMenu := []menu.CommandOption{
		menu.CommandOption{"cazicthule", "Migrate Cazic Thule", cazicthule.Clean},
		menu.CommandOption{"paw", "Migrate Splitpaw", paw.Clean},
		menu.CommandOption{"quit", "Return to main menu", nil},
	}
	menuOptions := menu.NewMenuOptions("'menu' for help [zone]> ", 0)

	menu := menu.NewMenu(eraMenu, menuOptions)
	menu.Start()
	return
}
Beispiel #4
0
func Menu(args ...string) (err error) {
	//var err error
	eraMenu := []menu.CommandOption{
		menu.CommandOption{"spell", "Removes all spell scrolls from game", spell.Clean},
		menu.CommandOption{"rain", "Disables Rain & Snow on all zones", rain.Clean},
		menu.CommandOption{"priest", "Removes Priest of Discord", priest.Clean},
		menu.CommandOption{"merchant", "Removes any merchants with empty inventory", merchant.Clean},
		menu.CommandOption{"quit", "Return to main menu", nil},
	}
	menuOptions := menu.NewMenuOptions("'menu' for help [system]> ", 0)

	menu := menu.NewMenu(eraMenu, menuOptions)
	menu.Start()
	return
}
Beispiel #5
0
func Menu(args ...string) (err error) {
	//var err error
	eraMenu := []menu.CommandOption{
		menu.CommandOption{"aug", "Remove all augments", aug.Clean},
		menu.CommandOption{"fabled", "Remove all fabled NPCs", fabled.Clean},
		menu.CommandOption{"halloween", "Remove halloween event data", halloween.Clean},
		menu.CommandOption{"item", "Remove all out of era items from Luclin onward", eraitem.Clean},
		menu.CommandOption{"ldon", "Remove LDoN NPCs", ldon.Clean},
		menu.CommandOption{"named", "Reduce the spawn rate of named mobs", named.Clean},
		menu.CommandOption{"nexus", "Remove nexus NPCs", nexus.Clean},
		menu.CommandOption{"rodent", "Remove rodents and exterminator quests", rodent.Clean},
		menu.CommandOption{"shadowrest", "Remove shadowrest NPCs from East Commons", shadowrest.Clean},
		menu.CommandOption{"soulbinder", "Remove soulbinder NPCs", soulbinder.Clean},
		menu.CommandOption{"tribute", "Remove tribute NPCs", tribute.Clean},
		menu.CommandOption{"quit", "Return to main menu", nil},
	}
	menuOptions := menu.NewMenuOptions("'menu' for help [era]> ", 0)

	menu := menu.NewMenu(eraMenu, menuOptions)
	menu.Start()
	return
}