AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Store (https://forums.alliedmods.net/forumdisplay.php?f=157)
-   -   Release Steambot - Item to Credits (https://forums.alliedmods.net/showthread.php?t=273105)

Drixevel 10-13-2015 04:07

Re: Steambot - Scarp / key to credits
 
Quote:

Originally Posted by Arkarr (Post 2352574)
That would be perfect. Sorry for late reply, store changelog on girhib, right ?

Also, what happen if the steamId is not found in database ? We can't add credits ?

Nothing on the net right now in terms of code to 2.0, I will be posting all the changelogs right before It's released.

If the SteamID isn't found in the database, It'll return false. If they're not in the database then you can't give them credits since they're not there.

Arkarr 10-13-2015 04:35

Re: Steambot - Scarp / key to credits
 
Quote:

Originally Posted by r3dw3r3w0lf (Post 2352576)
Nothing on the net right now in terms of code to 2.0, I will be posting all the changelogs right before It's released.

If the SteamID isn't found in the database, It'll return false. If they're not in the database then you can't give them credits since they're not there.

I'm not sure if I understand the store logic now. A entry is ALWAYS created when a player join the server if it doesn't exist, right ? So, in fact, he should ALWAYS exist (well, except if he never joined the server, right ?)

Drixevel 10-13-2015 05:14

Re: Steambot - Scarp / key to credits
 
Quote:

Originally Posted by Arkarr (Post 2352584)
I'm not sure if I understand the store logic now. A entry is ALWAYS created when a player join the server if it doesn't exist, right ? So, in fact, he should ALWAYS exist (well, except if he never joined the server, right ?)

Correct, as long as you don't allow people to use the bot who aren't in the database then you're fine.

Arkarr 10-13-2015 05:57

Re: Steambot - Scarp / key to credits
 
Quote:

Originally Posted by r3dw3r3w0lf (Post 2352591)
Correct, as long as you don't allow people to use the bot who aren't in the database then you're fine.

Alright, fine. Mind to tell me when this new function will be available ? I don't want to stress you or anything, just news...

Drixevel 10-13-2015 06:29

Re: Steambot - Scarp / key to credits
 
Quote:

Originally Posted by Arkarr (Post 2352600)
Alright, fine. Mind to tell me when this new function will be available ? I don't want to stress you or anything, just news...

Store 2.0 will release at the end of the month and I'm going to be releasing the includes like a week before that which might get tune-ups/changes regardless. It's mainly so people can give last minute opinions on API and edit their public/private modules.

Robin955 10-13-2015 09:50

Re: Steambot - Scarp / key to credits
 
20 days delay on store 2.0 release :3

Drixevel 10-13-2015 10:25

Re: Steambot - Scarp / key to credits
 
Quote:

Originally Posted by Robin955 (Post 2352641)
20 days delay on store 2.0 release :3

You can blame Arrow on that one. :bee:

sneaK 10-14-2015 14:43

Re: Steambot - Scarp / key to credits
 
Forgive my ignorance/lack of understanding, but this plugin as of right now only allows for trading of items 5000, 5001, 5002, and 5021 (scrap metal, reclaimed metal, refined metal, and mann co. case key). Is this correct, or can they also trade any other item?

Is there any way to get this to work with every CS:GO skin, preferably without having to define every single item (there are lots)?

I see the value of credits given is manually determined by this (10 default):

PHP Code:

CVAR_ScarpValue CreateConVar("sm_steambot_scarp_value""10""How muhc points to give for each scarp"); 

And each item is manually defined and values given:
PHP Code:

while(!StrEqual(defIndex[i], ""))
        {
            switch(
StringToInt(defIndex[i]))
            {
                case 
5000credits += scrapValue; break;        
                case 
5001credits += scrapValue*3; break;        
                case 
5002credits += scrapValue*9; break;        
                case 
5021credits += scrapValue*16*9; break;                
            }
            
PrintToServer("Found item : %s", );
            
i++;
        } 

Is there a way to pull the current market price instead of manually defining values for each item?

Edit: I don't understand the usage of the word "case" in front of the numbers, does that need to be in front of every item ID?

Arrow768 10-14-2015 14:56

Re: Steambot - Scarp / key to credits
 
I quickly looked through the plugin and found the following: (correct me if I am wrong)
* Currently it only gives credits for the items that you mentioned
* The scrap value is defined in the following cvar:
CVAR_ScarpValue = CreateConVar("sm_steambot_scarp_value", "10", "How muhc points to give for each scarp");
It should not be too hard to implement additional items (just add additional cases and recompile the plugin)

Arkarr 10-14-2015 16:12

Re: Steambot - Scarp / key to credits
 
You guys, are both right. This plugin only support this 4 items. I'm working on another release wich should give you the steam market value for any item. This should be better, right ?

EDIT: It's only the 3nd day of steambot, and he is pretty dumb yet, so, please, let him a bit of time to adapt. Also, your comments help me to improve it, THANKS !


All times are GMT -4. The time now is 00:46.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.