Raised This Month: $68 Target: $400
 17% 

Release Steambot - Item to Credits


Post New Thread Reply   
 
Thread Tools Display Modes
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 10-13-2015 , 04:07   Re: Steambot - Scarp / key to credits
Reply With Quote #11

Quote:
Originally Posted by Arkarr View Post
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.
__________________
My [Dev] Website | Discord: Drixevel#5049

Last edited by Drixevel; 10-13-2015 at 04:08.
Drixevel is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 10-13-2015 , 04:35   Re: Steambot - Scarp / key to credits
Reply With Quote #12

Quote:
Originally Posted by r3dw3r3w0lf View Post
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 ?)
__________________
Want to show support ?
Want to check my plugins ?
Total donation count : 330,98 ChF.- (in 3+ years)
Arkarr is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 10-13-2015 , 05:14   Re: Steambot - Scarp / key to credits
Reply With Quote #13

Quote:
Originally Posted by Arkarr View Post
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.
__________________
My [Dev] Website | Discord: Drixevel#5049
Drixevel is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 10-13-2015 , 05:57   Re: Steambot - Scarp / key to credits
Reply With Quote #14

Quote:
Originally Posted by r3dw3r3w0lf View Post
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...
__________________
Want to show support ?
Want to check my plugins ?
Total donation count : 330,98 ChF.- (in 3+ years)
Arkarr is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 10-13-2015 , 06:29   Re: Steambot - Scarp / key to credits
Reply With Quote #15

Quote:
Originally Posted by Arkarr View Post
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.
__________________
My [Dev] Website | Discord: Drixevel#5049
Drixevel is offline
Robin955
Veteran Member
Join Date: Jun 2013
Old 10-13-2015 , 09:50   Re: Steambot - Scarp / key to credits
Reply With Quote #16

20 days delay on store 2.0 release
Robin955 is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 10-13-2015 , 10:25   Re: Steambot - Scarp / key to credits
Reply With Quote #17

Quote:
Originally Posted by Robin955 View Post
20 days delay on store 2.0 release
You can blame Arrow on that one.
__________________
My [Dev] Website | Discord: Drixevel#5049
Drixevel is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 10-14-2015 , 14:43   Re: Steambot - Scarp / key to credits
Reply With Quote #18

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?
__________________

Last edited by sneaK; 10-14-2015 at 15:12.
sneaK is offline
Arrow768
Veteran Member
Join Date: Nov 2011
Location: Austria
Old 10-14-2015 , 14:56   Re: Steambot - Scarp / key to credits
Reply With Quote #19

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)
__________________
Arrow768 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 10-14-2015 , 16:12   Re: Steambot - Scarp / key to credits
Reply With Quote #20

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 !
__________________
Want to show support ?
Want to check my plugins ?
Total donation count : 330,98 ChF.- (in 3+ years)

Last edited by Arkarr; 10-14-2015 at 16:13.
Arkarr is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:23.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode