ByB Community

GMOD: ByB DarkRP - Player Creations => Wire / E2 => Topic started by: jonas747 on October 20, 2013, 10:23 am

Title: [Release] Ricky's Autogunshop
Post by: jonas747 on October 20, 2013, 10:23 am
Hello, so i've gotten tired of my shop and decided to create a new one and post the current one here.
There are some minor issues with it, such as the !ag refresh command not creating the welcome screen which i do not intend to fix since im working on a new one.

A warning though: Having around 3+ of these can actually make people crash because theres many elements on the screen.

Oh i almost forgot: This chip does not include the whole banking system(Account saving/loading, commands etc..) but it should work without.

Here it is: https://gist.github.com/jonas747/7067540 (https://gist.github.com/jonas747/7067540)

(http://cloud-2.steampowered.com/ugc/576751633656858924/D0F0862923BDDDE9846C7B7C5D44E169DC5FEEB1/)
Title: Re: [Release] Ricky's Autogunshop
Post by: T on October 20, 2013, 04:14 pm
Yes... This one is nice.
Title: Re: [Release] Ricky's Autogunshop
Post by: Leonard Potato on October 20, 2013, 05:04 pm
Yay, it's here! But why did you not include the account saver?

That was one of the best features!
Title: Re: [Release] Ricky's Autogunshop
Post by: jonas747 on October 20, 2013, 08:46 pm
eh, might as well include those i guess.

Account saver saves all the accounts every minute.
Account loader loads them all once you spawn the chip
and bank commands has some ultility commands in it.

https://gist.github.com/jonas747/7075080 (https://gist.github.com/jonas747/7075080)
Title: Re: [Release] Ricky's Autogunshop
Post by: Mathias_ on October 21, 2013, 01:13 pm
Sweet Gunshop, think i will try it out when i get home!
Title: Re: [Release] Ricky's Autogunshop
Post by: PINKBOY1006 on October 22, 2013, 06:41 pm
yay!, you finally released it! I will use this in my next gun shop.
Title: Re: [Release] Ricky's Autogunshop
Post by: jonas747 on October 23, 2013, 01:21 pm
I decided to update it even though i said i wouldnt.
I also included more instructions at the top of the e2
Changes:

 - Added setpricefactor and logoff commands
 - Fixed the refresh command

To view the exact changes you can go here: https://gist.github.com/jonas747/7067540/revisions (https://gist.github.com/jonas747/7067540/revisions)

The download link is the same
Title: Re: [Release] Ricky's Autogunshop
Post by: Custom on October 23, 2013, 03:37 pm
I saw bludiluigi using this. It looks fantastic! If i get it to work today i might make an auto gunshop :)
Title: Re: [Release] Ricky's Autogunshop
Post by: olicool11 on October 23, 2013, 10:21 pm
Been using this alot on RP#1 as you saw earlier ricky, liking it quite a bit, not manage to get the auto log off distance to work yet though?
Title: Re: [Release] Ricky's Autogunshop
Post by: jonas747 on October 24, 2013, 08:29 pm
Been using this alot on RP#1 as you saw earlier ricky, liking it quite a bit, not manage to get the auto log off distance to work yet though?

Are you using the right command? It's "!ag logoffdist distance"
Example:
!ag logoffdist 100
Sets the log off distance to 100(which is the default one)
Title: Re: [Release] Ricky's Autogunshop
Post by: wilcomega on October 24, 2013, 10:21 pm
please make it have less thing on the screen, my video card driver has crashed serveral times since the release. and it takes like 10 mins to join a server for me and my computer.

thx
Title: Re: [Release] Ricky's Autogunshop
Post by: olicool11 on October 25, 2013, 07:33 am
Been using this alot on RP#1 as you saw earlier ricky, liking it quite a bit, not manage to get the auto log off distance to work yet though?

Are you using the right command? It's "!ag logoffdist distance"
Example:
!ag logoffdist 100
Sets the log off distance to 100(which is the default one)

ahh in your updated code it may work :D the old code said to type !af logoffdist which i did think was a bit wierd
Title: Re: [Release] Ricky's Autogunshop
Post by: SynicalGary on November 02, 2013, 09:28 pm
I Keep Getting a Error No such function: entity:isShipment(void) at line 228, char 18 , Im new Too all this please help!
Title: Re: [Release] Ricky's Autogunshop
Post by: Adol Gaisler on November 02, 2013, 09:34 pm
I Keep Getting a Error No such function: entity:isShipment(void) at line 228, char 18 , Im new Too all this please help!

You're prob trying to use the E2 outside if ByB ;) isShipment() is a ByB custome function, that will not work unless the server you're on has them.
Title: Re: [Release] Ricky's Autogunshop
Post by: SynicalGary on November 02, 2013, 09:40 pm
I Keep Getting a Error No such function: entity:isShipment(void) at line 228, char 18 , Im new Too all this please help!

You're prob trying to use the E2 outside if ByB ;) isShipment() is a ByB custome function, that will not work unless the server you're on has them.

So, if I was going to tell The dev of this server to add this or whatever what should i say??
Title: Re: [Release] Ricky's Autogunshop
Post by: Awesomesauce on November 02, 2013, 11:34 pm
I Keep Getting a Error No such function: entity:isShipment(void) at line 228, char 18 , Im new Too all this please help!

You're prob trying to use the E2 outside if ByB ;) isShipment() is a ByB custome function, that will not work unless the server you're on has them.

So, if I was going to tell The dev of this server to add this or whatever what should i say??
or use another E2 and just use this when on ByB?
Title: Re: [Release] Ricky's Autogunshop
Post by: StupidWeasel on November 03, 2013, 12:24 am
We don't offer third party server support, nor do we give out our custom code, he's on his own. Let's get the topic back on topic now please.
Title: Re: [Release] Ricky's Autogunshop
Post by: XxSandyxX on November 08, 2013, 04:12 pm
Ok so How the heck am I supposed to wire ths?
(Excuse me Im a Wire noob :( )
Title: Re: [Release] Ricky's Autogunshop
Post by: Lexi's Inferior on November 08, 2013, 04:16 pm
Ok so How the heck am I supposed to wire ths?
(Excuse me Im a Wire noob :( )

It tells you in the E2.
People really should read more before they post.
Title: Re: [Release] Ricky's Autogunshop
Post by: Purdigeh on November 09, 2013, 07:38 pm
Sweet! I hardly go Gun Dealer, but when I do, I'll be sure to try it out. :D
Title: Re: [Release] Ricky's Autogunshop
Post by: XxSandyxX on November 13, 2013, 08:46 pm
Ok so How the heck am I supposed to wire ths?
(Excuse me Im a Wire noob :( )

It tells you in the E2.
People really should read more before they post.
Ummm yeah. I read the E2. I still have no clue what im doing. I got my rutabaga Stuck in a Toaster. :P
Title: Re: [Release] Ricky's Autogunshop
Post by: Elite on November 13, 2013, 08:58 pm
Ok so How the heck am I supposed to wire ths?
(Excuse me Im a Wire noob :( )

It tells you in the E2.
People really should read more before they post.
Ummm yeah. I read the E2. I still have no clue what im doing. I got my rutabaga Stuck in a Toaster. :P

wat
Title: Re: [Release] Ricky's Autogunshop
Post by: Esrever on December 12, 2013, 02:51 am
Making a video tutorial of how to set it up and wire it properly would be highly appreciated, not only for me but for anyone who's relatively new to all this. I know you included the instructions in the link but i had some struggle understanding it, If you could that would be great! Thank you
Title: Re: [Release] Ricky's Autogunshop
Post by: Loqfrican on December 12, 2013, 06:03 am
Making a video tutorial of how to set it up and wire it properly would be highly appreciated, not only for me but for anyone who's relatively new to all this. I know you included the instructions in the link but i had some struggle understanding it, If you could that would be great! Thank you

It's pretty simple. Try Googling these sort of things with WireMod, mess around with it. A video could be nice, but I wouldn't really expect someone to make a video tutorial of their codes on how to wire it simply because maybe they don't know how to record or upload or they can't upload due to their internet speed really being poor.
Title: Re: [Release] Ricky\'s Autogunshop
Post by: jonas747 on February 08, 2014, 05:40 pm
I updated it again.

Changelog for version 2.3:

For a complete list of changes: https://gist.github.com/jonas747/7067540/revisions (https://gist.github.com/jonas747/7067540/revisions)


AutoMerge: February 08, 2014, 09:41 pm
And here a video showing how to wire it:
http://www.youtube.com/watch?v=zq1g_0wmSU4#ws (http://www.youtube.com/watch?v=zq1g_0wmSU4#ws)
Title: Re: [Release] Ricky\'s Autogunshop
Post by: Jelman on February 08, 2014, 10:06 pm
I updated it again.

Changelog for version 2.3:
  • Removed the cursor. The cursor caused a huge fps drop when you were looking at it, probably because it had to draw all the screen elements at your current framerate.
  • If you put money in the moneypot it will not do anything with it untill you log in.
  • You can no longer buy more items than there is in the shipment
  • Few tweaks, should reduce OPS by a little
  • Cleaned up the code a little bit

For a complete list of changes: https://gist.github.com/jonas747/7067540/revisions (https://gist.github.com/jonas747/7067540/revisions)


AutoMerge: February 08, 2014, 09:41 pm
And here a video showing how to wire it:
http://www.youtube.com/watch?v=zq1g_0wmSU4#ws (http://www.youtube.com/watch?v=zq1g_0wmSU4#ws)

Dat Sexy ass voice
Title: Re: [Release] Ricky's Autogunshop
Post by: Leonard Potato on February 08, 2014, 11:12 pm
The font for your "Q menu" Is different than mine! Yours looks better, how do you change it? o.0

Also, nice work!
Title: Re: [Release] Ricky's Autogunshop
Post by: jonas747 on February 09, 2014, 12:36 am
The font for your "Q menu" Is different than mine! Yours looks better, how do you change it? o.0

Also, nice work!

Always been like this for me. Thanks!
Title: Re: [Release] Ricky's Autogunshop
Post by: jonas747 on February 27, 2014, 06:21 pm
So after a lot of work here is 2.4 with a lot less ops: https://gist.github.com/jonas747/7067540


V2.4 Changes:
   
    General:
        - When you spawn the chip with no screen, it will disable itself untill you wire it to a screen
        - Reduced ops when clicking on the screen by around 50-100
        - Reduced ops when purchasing weapons
        - More code cleanup and optimising
        - You can now change the store name
        - The shop chips now get assigned id's, The id's are updated automaticly everytime you spawn a new shop or remove one
        - Notifies you when you run out of a shipment
    UI:
        - Stock for each item is now shown before the item name
        - Removed the weapons disensing count
        - Moved the welcom text
        - Added a MOTD
        - The header is now the store name
    Commands:
        - Completely overhauled how chat commands works
        - New commands:
            - !ag who <player>
                Shows information about <player> (Currently only money, will show more later)
            - !ag help
                Displays help on all commands
            - !ag bankset <amount> <player>
                Sets the money of <player>'s account to <amount>
            - !ag bankmod <amount> <player>
                Modifies <player>'s account by <amount>
                    !ag bankmod ricky 100 - Adds 100 to ricky's account
                    !ag bankmod ricky -100 - Removes 100 from ricky's account
            - !ag bankundo
                Undo's the last bank command
            - !ag name <newname>
                Changes the shop's name to <newname>
            - !ag motd <new motd>
                Changes the MOTD to <new motd>
Title: Re: [Release] Ricky\'s Autogunshop
Post by: <3P1MPD4DDY<3 on May 30, 2014, 09:31 am
So after a lot of work here is 2.4 with a lot less ops: https://gist.github.com/jonas747/7067540 (https://gist.github.com/jonas747/7067540)


V2.4 Changes:
   
    General:
        - When you spawn the chip with no screen, it will disable itself untill you wire it to a screen
        - Reduced ops when clicking on the screen by around 50-100
        - Reduced ops when purchasing weapons
        - More code cleanup and optimising
        - You can now change the store name
        - The shop chips now get assigned id's, The id's are updated automaticly everytime you spawn a new shop or remove one
        - Notifies you when you run out of a shipment
    UI:
        - Stock for each item is now shown before the item name
        - Removed the weapons disensing count
        - Moved the welcom text
        - Added a MOTD
        - The header is now the store name
    Commands:
        - Completely overhauled how chat commands works
        - New commands:
            - !ag who <player>
                Shows information about <player> (Currently only money, will show more later)
            - !ag help
                Displays help on all commands
            - !ag bankset <amount> <player>
                Sets the money of <player>'s account to <amount>
            - !ag bankmod <amount> <player>
                Modifies <player>'s account by <amount>
                    !ag bankmod ricky 100 - Adds 100 to ricky's account
                    !ag bankmod ricky -100 - Removes 100 from ricky's account
            - !ag bankundo
                Undo's the last bank command
            - !ag name <newname>
                Changes the shop's name to <newname>
            - !ag motd <new motd>
                Changes the MOTD to <new motd>
Hey I might of seen a Bug in this That when players put money in there account keep going up ?

AutoMerge: May 30, 2014, 10:46 am
So after a lot of work here is 2.4 with a lot less ops: https://gist.github.com/jonas747/7067540 (https://gist.github.com/jonas747/7067540)


V2.4 Changes:
   
    General:
        - When you spawn the chip with no screen, it will disable itself untill you wire it to a screen
        - Reduced ops when clicking on the screen by around 50-100
        - Reduced ops when purchasing weapons
        - More code cleanup and optimising
        - You can now change the store name
        - The shop chips now get assigned id's, The id's are updated automaticly everytime you spawn a new shop or remove one
        - Notifies you when you run out of a shipment
    UI:
        - Stock for each item is now shown before the item name
        - Removed the weapons disensing count
        - Moved the welcom text
        - Added a MOTD
        - The header is now the store name
    Commands:
        - Completely overhauled how chat commands works
        - New commands:
            - !ag who <player>
                Shows information about <player> (Currently only money, will show more later)
            - !ag help
                Displays help on all commands
            - !ag bankset <amount> <player>
                Sets the money of <player>'s account to <amount>
            - !ag bankmod <amount> <player>
                Modifies <player>'s account by <amount>
                    !ag bankmod ricky 100 - Adds 100 to ricky's account
                    !ag bankmod ricky -100 - Removes 100 from ricky's account
            - !ag bankundo
                Undo's the last bank command
            - !ag name <newname>
                Changes the shop's name to <newname>
            - !ag motd <new motd>
                Changes the MOTD to <new motd>
Hey I might of seen a Bug in this That when players put money in there account keep going up ?
EDIT My bad seem i may wired money box so wrong sorry and i need some how set people banks to to $0 i got about 3k on it lol but some of the commands wont work or i am just so dumb

Title: Re: [Release] Ricky's Autogunshop
Post by: vin173 on June 02, 2014, 06:10 pm
So, if I was going to tell The dev of this server to add this or whatever what should i say??

Well say to them that they will never win from ByB because its the BEST!! :)

Title: Re: [Release] Ricky's Autogunshop
Post by: CorkScrewGnome on December 04, 2019, 06:17 am
Lines 123, 266, 862 are all getting no such function errors for me.