Raised This Month: $51 Target: $400
 12% 

[ANY] ASteambot - Donation


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Plugin ID:
5798
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Allow players to do steam items donation to the server in exchange of points, but is it really donation at this point ?
Old 09-02-2017 , 07:31   [ANY] ASteambot - Donation
Reply With Quote #1

ASteambot Donation




Before anything, read this :
You will need ASteambot to run this plugin.
You need at least the version V 2.7.0.
You need to open at least 1 port.
You need a database to store data.
This plugin require you to have your profile and inventory public to see.
Recomanded plugin : https://forums.alliedmods.net/showthread.php?t=302728




Allow players to do steam items donation to the server in exchange of points, but is it really donation at this point ?
The points for each players are stored into a database or directly into your store plugin! You can do whatever you want with those points.


  • Everything is fully automatic
  • Support mobile confirmation
  • Easy configuration
  • Automatic steam friend inviation if needed
  • Translations
  • Store support



Download and run ASteambot, it can be downloaded [here]

Install ASteambot_Core :

If you already have installed ASteambot_Core, update it.

0) Install socket extension
1) Grab ASteambot_Core from [here]
2) Put in your plugins folder : addons/sourcemod/plugins
3) DOWNLOAD AND EDIT THE CONFIGURATION FILE AND PUT IT IN [SERVER PATH]/cfg/asteambot/asteambot_core.cfg !!!
4) Restart your server

Install ASteambot_TradeTokenUpdater: https://forums.alliedmods.net/showthread.php?t=323457

Install ASteambot_Donation :

1) Grab the smx file (ASteambot_Donation) on github, [here]
2) Grab the translation file (ASteambot_Donation) on github, [here]
3) Put the smx file in your plugins folder : addons/sourcemod/plugins
4) Put the txt file in your translation folder : addons/sourcemod/translations
5) Put the three ini files (ASDonation_ExcludedItems.ini, ASDonation_ExcludedItems.ini, ASDonation_IncludedItems.ini) in your configs folder
6) Restart your server.
7) Done !

ASDonation_Prices.ini allow you to edit the price of an item.
So, for exemple, adding this line to the file will set the Scrap Metal item value to 9 :
Code:
Scrap Metal=9
Note: the full name of the item IS required. There is no space between the item name and the '=' symbol. There is no space between the '=' symbol and the value.

ASDonation_ExcludedItems.ini allow you to exclude an item from trade.
For example, adding this line to the file will prevent any item containg it from being displayed :
Code:
Mann Co.
Note: the full name of the item is NOT required.

ASDonation_IncludedItems.ini allow you to include an item from trade.
For example, adding this line to the file will add item containg it from being displayed :
Code:
Mann Co.
Note: allowed item will be ALWAYS displayed, even through they were excluded through ASDonation_ExcludedItems.ini file.




sm_friend - Sent a steam friend invitation to you.
sm_donate - Initiate a donation to the server.



sm_asteambot_donation_store_select "NONE" - NONE=No store usage/ZEPHYRUS=use zephyrus store/SMSTORE=use sourcemod store/MYJS=use MyJailShop
sm_asteambot_donation_vm "250" - By how much the steam market prices have to be multiplied to get a correct ammount of store credits.
sm_asteambot_database "ASteambot" - SET THIS PARAMETER IF YOU DON'T HAVE ANY STORE (sm_asteambot_donation_store_select=NONE) ! The database configuration in database.cfg
sm_asteambot_max_donation_value "500" - If the trade offer's value is higher than this one, the player will get additional credits like this : (([TRADE OFFER VALUE] - [THIS CVAR])/[TRADE OFFER VALUE])*[TRADE OFFER VALUE], view : https://forums.alliedmods.net/showpo...9&postcount=16
sm_asteambot_min_donation_value "50" - Any trade offer's value below this cvar is automatically refused.

Configuration file created in cfg/asteambot/asteambot_donation.cfg



[X] Add store support

>> NEED HELP FOR TRANSLATIONS <<



None found yet





Oh and, don't mind the credits not changing at the bottom left, it's the PowerShop HUD, not related to this plugin.



All files are on Github : https://github.com/Arkarr/SourcemodASteambot/

Enjoy !

Logs :
Spoiler
__________________
Want to check my plugins ?

Last edited by Arkarr; 04-20-2020 at 08:02.
Arkarr is offline
vortex.
AlliedModders Donor
Join Date: Jan 2017
Location: OnGameFrame()
Old 09-02-2017 , 09:01   Re: [ANY] ASteambot - Donation
Reply With Quote #2

Cool!
__________________
vortex. is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 09-02-2017 , 09:44   Re: [ANY] ASteambot - Donation
Reply With Quote #3

Quote:
Originally Posted by vortex. View Post
Cool!
Thanks !
__________________
Want to check my plugins ?

Last edited by Arkarr; 09-02-2017 at 09:45.
Arkarr is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 09-03-2017 , 03:49   Re: [ANY] ASteambot - Donation
Reply With Quote #4

Nice but how do you set how much credit to give?
Looking forward to the store integration
8guawong is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 09-03-2017 , 04:34   Re: [ANY] ASteambot - Donation
Reply With Quote #5

Quote:
Originally Posted by 8guawong View Post
Nice but how do you set how much credit to give?
Looking forward to the store integration
There we go, I was sure I forgot something. I should make a Cvar.

I'm grabbing the price from the steam market and then multiply it by 250
PHP Code:
#line 22
#define VALUE_MULIPLIER            250

#line 250 (funny, isn't it ?)
Format(menuItemsizeof(menuItem), "%.2f$ - %s", (itemValue*VALUE_MULIPLIER), itemName); 
I'll do the store integration now.

EDIT:
Done.
__________________
Want to check my plugins ?

Last edited by Arkarr; 09-03-2017 at 05:02.
Arkarr is offline
Mayor Gamer
Senior Member
Join Date: Nov 2012
Location: GetLocationOfUser(me);
Old 09-03-2017 , 11:51   Re: [ANY] ASteambot - Donation
Reply With Quote #6

Dayum! This seems pretty cool. Will maybe start using it ^^
Mayor Gamer is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 09-03-2017 , 12:13   Re: [ANY] ASteambot - Donation
Reply With Quote #7

Quote:
Originally Posted by Mayor Gamer View Post
Dayum! This seems pretty cool. Will maybe start using it ^^
Glad I could help !
__________________
Want to check my plugins ?
Arkarr is offline
Wanheda
Junior Member
Join Date: Oct 2017
Location: Portugal ♥
Old 10-31-2017 , 07:13   Re: [ANY] ASteambot - Donation
Reply With Quote #8

Hey! Nice job, this is one of the most complete plugins I have ever seen. I need to compile it but I can't, it says I need a zephyrus_store include but Zephyrus Store doesn't have one! I need that include, could you please post it? Thanks!
__________________
ʙᴇɪɴɢ ʜᴀᴘᴘʏ ᴅᴏᴇsɴ'ᴛ ᴍᴇᴀɴ ᴛʜᴀᴛ ᴇᴠᴇʀʏᴛʜɪɴɢ ɪs ᴘᴇʀꜰᴇᴄᴛ
ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ𝐒𝐭𝐞𝐚𝐦
Wanheda is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 10-31-2017 , 07:39   Re: [ANY] ASteambot - Donation
Reply With Quote #9

Quote:
Originally Posted by Wanheda View Post
Hey! Nice job, this is one of the most complete plugins I have ever seen. I need to compile it but I can't, it says I need a zephyrus_store include but Zephyrus Store doesn't have one! I need that include, could you please post it? Thanks!
you can get the precompiled plugin here https://github.com/Arkarr/SourcemodA...rcemod/plugins
__________________
8guawong is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 10-31-2017 , 11:18   Re: [ANY] ASteambot - Donation
Reply With Quote #10

As @8guawong said, fellow the link.
I'll update the OP to make it more clear.

Also, thanks and don't forget to give me a feedback if you have any problems OR not !

EDIT:
Installation part updated.
__________________
Want to check my plugins ?

Last edited by Arkarr; 10-31-2017 at 11:20.
Arkarr is offline
Reply



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 07:12.


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