Page 1 of 1

Add all key items

Posted: Thu Jun 05, 2014 12:59 am
by soulsin
Want to be able to add all key items at once, instead doing 1 by 1. Cant seem to figure out how to the cmd for it. Any help be nice to get this on track. I am aware might cause issues, But this is for testing the server.

Re: Add all key items

Posted: Thu Jun 05, 2014 4:39 am
by Shadowmh
There isn't one, you would need to create a custom GM command.
You can find them all in scripts/globals/keyitems.lua
I created a basic design you can follow but i'm not adding all of them for you as there are 2544 key items, I just added the first 10 to see if it worked.
You will have to add the rest, change the .txt to .lua and place in scripts/commands/

Command will be @addallkeyitems

Edit: I made the function shorter to add them all for you. Again change the .txt to .lua and place in scripts/commands/

Re: Add all key items

Posted: Thu Jun 05, 2014 8:39 am
by soulsin
Sweet that worked. Thank you so much

Re: Add all key items

Posted: Thu Jun 05, 2014 12:39 pm
by kjLotus
id just change the keyitems blob in the db manually

Re: Add all key items

Posted: Thu Jun 19, 2014 5:42 am
by bluekirby0
Expect missions and/or quests to have odd side-effects doing this...