• NPC Store Robbery
    29 replies, posted
NOTE: I had MANY problems uploading this to github so if there are any issues then please let me know! [B][U]VERSION: 1.1[/U][/B] [B][U]What is this?[/U][/B] This is a NPC system that you set up all ingame! (best feature i think lol) but robber teams can rob this npc and the npc will drop random amounts (you set) in x amount of time (you set) Just watch the video it will explain a LOT better then i can! [B][U]How do i setup?[/U][/B] Check the readme in the files! Or on github [B][U]Help there are bugs![/U][/B] Please report them down here! The only bug i found was the text sometimes not showing up for some people and if you have a fix for that (talking to you devs) PLEASE go to [url=https://facepunch.com/showthread.php?t=1514096]this[/url] post and tell me how to fix as im stumped! Thanks! Current Features: Multiple NPC support (more then 1 stores for many maps!) In game config for the NPCs and easy to use with nice GUI Version check so you know when to update as i will be making new features! Cooldown so players can not make money easily Robbery ends when the player dies, is arrested, walks to far away from the NPC, and in x min (set in config) The player can also shoot the NPC to "kill" him and stop the robbery Set the NPC's name, model, and money pos all in game! Random chance the NPC can use a alarm and it will play the alarm sound AND notify the police! Many more! Using M9K but don't want to add all the weapons yourself? Click [url=http://pastebin.com/tyxZQhXd]here[/url] thanks to cowslaw! [URL="https://www.youtube.com/watch?v=WL98UX5YObM"][B][U]Youtube Video[/U][/B][/URL] Also here are the pics that were left out in the video All the text rotates and the name and color is set in the config (in game showed in the video) [IMG]http://images.akamai.steamusercontent.com/ugc/279595726551105568/FA818CAE3ED47ED9467C55ECA94EF62DC2672BA7/[/IMG] [IMG]http://images.akamai.steamusercontent.com/ugc/279595726551104991/F1B05DAAE6D9A8B24EDCAAE3EDC2873884F356F9/[/IMG] [IMG]http://images.akamai.steamusercontent.com/ugc/279595726551104863/E5DDC19C7FE8C3D06DC7ED1D066093EBA00E5E06/[/IMG] [IMG]http://images.akamai.steamusercontent.com/ugc/279595726551104364/02C1F6370E06A5C9E653BC71826A1C6CEC707B2F/[/IMG] [URL="https://github.com/XxLMM13xXgaming/lmm_npc_robbing"][B][U]Github download[/U][/B] [/URL] [URL="http://scriptspawn.com/product/npc-store-robbery/"][B][U]Scriptspawn download (new gmod script market check it out!)[/U][/B][/URL] [B][U]Change Log:[/U][/B] [code] V1.2 + Fix for file not being there? Maybe i fixed everything idk let me know! V1.1 + Fix for file corruption V1.0 +Amazing Release [/code] Check out my other addons: [url=https://facepunch.com/showthread.php?t=1513148]Version check[/url] [url=https://facepunch.com/showthread.php?t=1512132]LMM's in-game and emai report system[/url] [url=https://facepunch.com/showthread.php?t=1496159]Bail NPC[/url] [url=https://facepunch.com/showthread.php?t=1501856]Lottery Tickets[/url] [url=https://facepunch.com/showthread.php?t=1503818]Shoutbox[/url] [url=https://facepunch.com/showthread.php?t=1501445]Mayor Menu/Console[/url] [url=https://facepunch.com/showthread.php?t=1497384]Bind Menu[/url] [url=https://facepunch.com/showthread.php?t=1487374]PrivKeys[/url]
It looks pretty useless to me.
[QUOTE=Chuckymore;50110502]It looks pretty useless to me.[/QUOTE] Well then there really was no need to comment
[img]http://i.imgur.com/mUdmjxm.png[/img] [img]http://i.imgur.com/9UcLSYq.png[/img] [img]http://i.imgur.com/I7TwB3S.png[/img]
[QUOTE=kaliii;50111690][img]http://i.imgur.com/mUdmjxm.png[/img] [img]http://i.imgur.com/9UcLSYq.png[/img] [img]http://i.imgur.com/I7TwB3S.png[/img][/QUOTE] I knew I missed a typo will fix later
[QUOTE=XxLMM13xXx;50111763]I knew I missed a typo will fix later[/QUOTE] it can't be a typo if it's in every chat message
Should make it harder to rob, and maybe make it notify the police, or sound an alarm around the area that is being robbed?
[QUOTE=kaliii;50111820]it can't be a typo if it's in every chat message[/QUOTE] Pretty sure its fixed now it was like that in the testing stages. I had my mindset to robbary instead of robbery.... [QUOTE=LukeDell;50111923]Should make it harder to rob, and maybe make it notify the police, or sound an alarm around the area that is being robbed?[/QUOTE] there is a random chance it will press a alarm and a sound will ring and the players that are cp will be auto notified and the player robbing will be wanted!
What if I change my name to contain a "|"? The data file becomes corrupt.
[QUOTE=xbeastguyx;50182448]What if I change my name to contain a "|"? The data file becomes corrupt.[/QUOTE] VERSION 1.1 NOW OUT fixed this problem now will just not display the name.. Not really 100% important as only admins can do so! Thanks beast for finding this!
[QUOTE=XxLMM13xXx;50187958]VERSION 1.1 NOW OUT fixed this problem now will just not display the name.. Not really 100% important as only admins can do so! Thanks beast for finding this![/QUOTE] [img]http://meharryp.xyz/sharex/2016/04/23/Steam_2016-04-23_20-39-31.png[/img] ??? [editline]23rd April 2016[/editline] also what's wrong with TableToKeyvalues or TableToJSON or any off the other methods to covert tables to text out there?
[QUOTE=meharryp;50188164][img]http://meharryp.xyz/sharex/2016/04/23/Steam_2016-04-23_20-39-31.png[/img] ??? [editline]23rd April 2016[/editline] also what's wrong with TableToKeyvalues or TableToJSON or any off the other methods to covert tables to text out there?[/QUOTE] Just kinda did it the way I did... May change later but the last update will fix your name! So no worries!
I can't find a reason this would be used. Anyway it looks decent. You might want to add a alarm of some sort, and also let the npc buy / sell things ( if players buy things the npc gets more money and vise versa ).
NPC Animations would be nice, now looks boring.
[QUOTE=Light_Magic;50190949]I can't find a reason this would be used. Anyway it looks decent. You might want to add a alarm of some sort, and also let the npc buy / sell things ( if players buy things the npc gets more money and vise versa ).[/QUOTE] I will look more into that! And there is a alarm.. Guys watch the video please! [editline]24th April 2016[/editline] [QUOTE=Olek6043;50191049]NPC Animations would be nice, now looks boring.[/QUOTE] What do you mean..?
This looks great, thank you for this LMM, tbh cant understand why people are rating it dumb / disliking it, your releasing a free script that you spend time on, thank you a lot, will defidently add to my server soon. Good job on it, hope you keeṕ releasing :)
[QUOTE=xAl3xTh3K1nG;50197575]This looks great, thank you for this LMM, tbh cant understand why people are rating it dumb / disliking it, your releasing a free script that you spend time on, thank you a lot, will defidently add to my server soon. Good job on it, hope you keeṕ releasing :)[/QUOTE] Thanks for the support! Glad you like!!! If there are any features you would like to see please let me know!
Thanks for offering this contribution to the community
Something went wrong! Make sure your id is something with no spaceslike 'store1'! I've put store1, 1, carshop1, robbable1, npc1, rn1, none of them have worked please help!
[QUOTE=ChibiKirito;51218448]Something went wrong! Make sure your id is something with no spaceslike 'store1'! I've put store1, 1, carshop1, robbable1, npc1, rn1, none of them have worked please help![/QUOTE] open lua/autorun/lmm_npcr_load.lua add this at the top [CODE]timer.Simple(5, function() if not file.Exists("lmmnpcr_data", "DATA") then file.CreateDir("lmmnpcr_data") end end)[/CODE]
It doesn't really look like a robbery, more like pressing E on a dude and getting money. The NPC should show some fear, imo. Not sure how you do it on a normal NPC, but with nextbot you could go with self:PlaySequenceAndWait( "fear_reaction" )
This support different item for each npc? Or just multi npc with 1 shop?
After some editing, we now use this. Good job.
1.2 hopefully this fixes!! Let me know if not! Heres the changelog addition [code] V1.2 + Fix for file not being there? Maybe i fixed everything idk let me know! [/code]
Any interest in showing what it looks like for the police to be notified?
[QUOTE=Keosan;51323642]Any interest in showing what it looks like for the police to be notified?[/QUOTE] Just a chat notification i believe
What can I put so I wont have to type in every M9K gun?
[QUOTE=cowslaw;51366958]What can I put so I wont have to type in every M9K gun?[/QUOTE] You will have to put every m9k gun sorry [editline]13th November 2016[/editline] Don't be lazy Like i'm lazy to make an easier method
[QUOTE=XxLMM13xXx;51367390]You will have to put every m9k gun sorry [editline]13th November 2016[/editline] Don't be lazy Like i'm lazy to make an easier method[/QUOTE] Whatever. I did all of the M9K weapons except explosives and here it is for anyone who wants to use it:[CODE]LMMNPCRConfig.WeaponsThatCanRob = { -- Weapons that the robber needs to be holding "m9k_deagle", "m9k_coltpython", "m9k_colt1911", "m9k_hk45", "m9k_luger", "m9k_ragingbull", "m9k_m29satan", "m9k_m92baretta", "m9k_model3russian", "m9k_model627", "m9k_winchester73", "m9k_acr", "m9k_ak47", "m9k_ak74", "m9k_amd65", "m9k_an94", "m9k_val", "m9k_f2000", "m9k_famas", "m9k_fal", "m9k_g36", "m9k_m416", "m9k_g3a3", "m9k_l85", "m9k_m14sp", "m9k_m16a4_acog", "m9k_m4a1", "m9k_scar", "m9k_ares_shrike", "m9k_vikhr", "m9k_fg42", "m9k_auga3", "m9k_tar21", "m9k_m1918bar", "m9k_m249lmg", "m9k_m60", "m9k_pkm", "m9k_m3", "m9k_browningauto5", "m9k_dbarrel", "m9k_ithacam37", "m9k_mossberg590", "m9k_jackhammer", "m9k_remington870", "m9k_spas12", "m9k_striker12", "m9k_usas", "m9k_1897winchester", "m9k_aw50", "m9k_barret_m82", "m9k_m98b", "m9k_svu", "m9k_sl8", "m9k_intervention", "m9k_m24", "m9k_remington7615p", "m9k_psg1", "m9k_dragunov", "m9k_svt40", "m9k_contender", "m9k_knife", "m9k_machete", "m9k_bizonp19", "m9k_honeybadger", "m9k_smgp90", "m9k_mp5", "m9k_mp7", "m9k_ump45", "m9k_usc", "m9k_kac_pdw", "m9k_vector", "m9k_magpulpdr", "m9k_mp40", "m9k_mp5sd", "m9k_sten", "m9k_tec9", "m9k_thompson", "m9k_uzi", "m9k_model500" }[/CODE]
[QUOTE=cowslaw;51371709]Whatever. I did all of the M9K weapons except explosives and here it is for anyone who wants to use it:[CODE]LMMNPCRConfig.WeaponsThatCanRob = { -- Weapons that the robber needs to be holding "m9k_deagle", "m9k_coltpython", "m9k_colt1911", "m9k_hk45", "m9k_luger", "m9k_ragingbull", "m9k_m29satan", "m9k_m92baretta", "m9k_model3russian", "m9k_model627", "m9k_winchester73", "m9k_acr", "m9k_ak47", "m9k_ak74", "m9k_amd65", "m9k_an94", "m9k_val", "m9k_f2000", "m9k_famas", "m9k_fal", "m9k_g36", "m9k_m416", "m9k_g3a3", "m9k_l85", "m9k_m14sp", "m9k_m16a4_acog", "m9k_m4a1", "m9k_scar", "m9k_ares_shrike", "m9k_vikhr", "m9k_fg42", "m9k_auga3", "m9k_tar21", "m9k_m1918bar", "m9k_m249lmg", "m9k_m60", "m9k_pkm", "m9k_m3", "m9k_browningauto5", "m9k_dbarrel", "m9k_ithacam37", "m9k_mossberg590", "m9k_jackhammer", "m9k_remington870", "m9k_spas12", "m9k_striker12", "m9k_usas", "m9k_1897winchester", "m9k_aw50", "m9k_barret_m82", "m9k_m98b", "m9k_svu", "m9k_sl8", "m9k_intervention", "m9k_m24", "m9k_remington7615p", "m9k_psg1", "m9k_dragunov", "m9k_svt40", "m9k_contender", "m9k_knife", "m9k_machete", "m9k_bizonp19", "m9k_honeybadger", "m9k_smgp90", "m9k_mp5", "m9k_mp7", "m9k_ump45", "m9k_usc", "m9k_kac_pdw", "m9k_vector", "m9k_magpulpdr", "m9k_mp40", "m9k_mp5sd", "m9k_sten", "m9k_tec9", "m9k_thompson", "m9k_uzi", "m9k_model500" }[/CODE][/QUOTE] Thanks gonna put this in a pastebin and put it in OP
Sorry, you need to Log In to post a reply to this thread.