Raised This Month: $ Target: $400
 0% 

Release Steambot - Item to Credits


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 10-12-2015 , 14:42   Steambot - Item to Credits
Reply With Quote #1

this plugin require [ANY] Steambot !
FIXED!

Description :

This plugin detect when someone finish a trade with the bot and give that someone some credits !
See exemple :

(click to zoom)

Commands:
Invite the steambot to trade with you, and tada ! You got your credits !

Installation :
1) Download the smx, put it in the plugins folder
2) Configure the CVAR [IMPORTANT]
3) Put Steambot_CustomPrices.txt in CONFIGS folder ! This file allow you to give extra rewards for item. For exemple :
[ITEM DEFINITION INDEX OR NAME]:[NUMBER OF CREDITS]
A few exemple :
Code:
5000:9000                          ->       Will give '9000' credits for the item definition index '5000' (Scrap Metal)
AK-47 | Cartel (Well-Worn):98745    ->       Will give  '98745' credits for the item with the name 'AK-47 | Cartel (Well-Worn)'
My config file :

Note, DO NOT put name of item for all TF2 related stuff. Only Item definition index.
4) Write in the server console : sm plugins load SteamBotStoreCredits or restart the server.

By default, the plugin multiply the trade value by '1000'. For exemple, if you put a "Chroma 2 Case" and "Chroma Case", the trade value would be of 0.09$. (Chroma Case = 0.06$ and Chroma 2 Case = 0.03$, wich means 0.03+0.06 = 0.09, it's simple math ;3), now let's multiply the result by 1000, the user will have 90 CREDITS ! Now let's complicate things a little bit. Let's say you have put "Chroma 2 Case" in the config file like this :
Code:
Chroma 2 Case:800
The number of credits the user will have is.... come one.... you can do it... CORRECT ! 890 CREDITS ! (800 from the config file + 90 of trade value ;3 !)

That's all what you need, enjoy !


Request :

None for the moment... feel free to ask !

Logs :
1.0 : First public release.
Attached Files
File Type: sp Get Plugin or Get Source (SteamBotStoreCredits.sp - 455 views - 6.5 KB)
File Type: smx SteamBotStoreCredits.smx (20.4 KB, 419 views)
File Type: txt Steambot_CustomPrices.txt (31 Bytes, 472 views)
File Type: smx ZEPHYRUS_SteamBotStoreCredits.smx (18.5 KB, 340 views)
File Type: sp Get Plugin or Get Source (ZEPHYRUS_SteamBotStoreCredits.sp - 370 views - 6.3 KB)
__________________
Want to check my plugins ?

Last edited by Arkarr; 01-30-2017 at 16:23.
Arkarr is offline
 



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 08:13.


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