Add all key items

Post Reply
soulsin
Posts: 102
Joined: Sun Mar 17, 2013 9:06 am

Add all key items

Post by soulsin » Thu Jun 05, 2014 12:59 am

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.
[GM] Soulsin

User avatar
Shadowmh
Posts: 60
Joined: Fri Nov 29, 2013 1:26 am

Re: Add all key items

Post by Shadowmh » Thu Jun 05, 2014 4:39 am

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/
Attachments
addallkeyitems.txt
(495 Bytes) Downloaded 361 times

soulsin
Posts: 102
Joined: Sun Mar 17, 2013 9:06 am

Re: Add all key items

Post by soulsin » Thu Jun 05, 2014 8:39 am

Sweet that worked. Thank you so much
[GM] Soulsin

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Add all key items

Post by kjLotus » Thu Jun 05, 2014 12:39 pm

id just change the keyitems blob in the db manually

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: Add all key items

Post by bluekirby0 » Thu Jun 19, 2014 5:42 am

Expect missions and/or quests to have odd side-effects doing this...

Post Reply