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

Plugin: Superhero Merchant - BuyXP+


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
werdpad
Senior Member
Join Date: Jun 2005
Old 07-22-2005 , 18:55   Plugin: Superhero Merchant - BuyXP+
Reply With Quote #1

Superhero Merchant 1.18
Buy Exp, Life, Armor and frags
sma file and amxmodx 1.01 compiled plugin

Include sh_merchant.amxx in your plugins file and copy and paste the following cvars into your shconfig.cfg or amxmodx config file

Code:
//sh merchant cvars (copy and paste into shconfig.cfg or amxmodx.cfg)
sv_merchant 1		//enable / disable plugin 0=disabled, 1=enabled

shm_buyxpamt 100		//amount of exp given per buy (set to zero to disable)
shm_buyhpamt 250		//amount of life given per buy (set to zero to disable)
shm_buyapamt 0		//amount of armor given per buy (set to zero to disable)
shm_buyframt 0		//amount of armor given per buy (set to zero to disable)

shm_buyxpcost 5000	//cost per purchase of exp amount
shm_buyhpcost 5000	//cost per purchase of life amount
shm_buyapcost 1500	//cost per purchase of armor amount
shm_buyfrcost 1000	//cost per purchase of armor amount
the following commands are used to buy items and can be done in chat or the console
Code:
buyxp
buyhp
buyap
buyfr
to enable or disable the merchant in the game use the following commands
these commands are admin only to change the cvar without access to the server
they require access to ADMIN_KICK
Code:
shm_buyon
shm_buyoff
---------------------------------------------------------------------------------------------

Changes from previous version
Code:
Able to enable/disable individual items by using cvars Changed main cvar to sv_merchant Dead players can purchase anything except for life and armor Cooldown 1 minute before and 1 minute after map changes Disabled frag and armor purchases by default Reduced code clutter and cut down the size of the plugin


If you want to try the new version before installing it or want to get an idea how to balance the cvars, you can check it out on my server. The IP is in my signature.


If this plugin makes people start begging you can go dl the exp begger filter at this link
http://forums.alliedmods.net/showthread.php?t=34119
Attached Files
File Type: zip sh_merchant.zip (12.9 KB, 5256 views)
werdpad is offline
Send a message via AIM to werdpad
whiteboikyle
Senior Member
Join Date: May 2005
Location: Nevada
Old 07-22-2005 , 19:04   Re: Superhero Merchant - BuyXP+
Reply With Quote #2

DANG THAT IS SEXY DUDE.. i love it
__________________

Free sigs for anyone. i can change the name to any of them PM me if u would like any of them
[x][x][x][x][x]
[x][x][x][x]
whiteboikyle is offline
Send a message via AIM to whiteboikyle Send a message via MSN to whiteboikyle Send a message via Yahoo to whiteboikyle
werdpad
Senior Member
Join Date: Jun 2005
Old 07-22-2005 , 19:10  
Reply With Quote #3

thanks! in furture versions i plan to just put all the commands in a menu for the casual merchant user and auto-bind them to F9-F12 for the habitual merchant users.

im also going to try to upload the exp begger filter i made. its like a swear filter but more advanced. it only catches select key phrases but 9 times out of 10 it will filter someone begging for exp, and it has multiple consequences ranging from simply deleting the line, to closing their client depending on how much the server op hates beggers

im pretty new at plugin writing so if anybody notices any mistakes or ways to improve the coding of this plugin let me know
werdpad is offline
Send a message via AIM to werdpad
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 07-22-2005 , 19:36  
Reply With Quote #4

Code:
shm_buyapcost 1500   //cost per purchase of armor amount
shm_buyfrcost 1000   //cost per purchase of armor amount
What is the different ?

Also can you make it, so that it is possible to enable the buyxp part only ???
__________________
//ShadowLeader - 123
123 is offline
whiteboikyle
Senior Member
Join Date: May 2005
Location: Nevada
Old 07-22-2005 , 20:01  
Reply With Quote #5

ya u should make it so u can also turn off any of the buying options.
__________________

Free sigs for anyone. i can change the name to any of them PM me if u would like any of them
[x][x][x][x][x]
[x][x][x][x]
whiteboikyle is offline
Send a message via AIM to whiteboikyle Send a message via MSN to whiteboikyle Send a message via Yahoo to whiteboikyle
werdpad
Senior Member
Join Date: Jun 2005
Old 07-22-2005 , 20:21  
Reply With Quote #6

ok, ill try to get that in this weekend. basically you just want it so they can only buy xp, no hp fr or ap?
werdpad is offline
Send a message via AIM to werdpad
whiteboikyle
Senior Member
Join Date: May 2005
Location: Nevada
Old 07-22-2005 , 20:43  
Reply With Quote #7

no make it so u can toogle any of them on or off.
__________________

Free sigs for anyone. i can change the name to any of them PM me if u would like any of them
[x][x][x][x][x]
[x][x][x][x]
whiteboikyle is offline
Send a message via AIM to whiteboikyle Send a message via MSN to whiteboikyle Send a message via Yahoo to whiteboikyle
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-22-2005 , 20:53  
Reply With Quote #8

suggestion, make it so if the cvars "shm_buyxpamt", and similar, are set to "0" disable that buying option.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 07-22-2005 , 21:00  
Reply With Quote #9

I don't get why there are 3 cvars to turn it on/off?
Code:
shm_buyenabled 1
shm_buyon
shm_buyoff
Also, why should people be able to buy frags? I also think your giving too much hp and ap to buy, but they are cvars so...
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
werdpad
Senior Member
Join Date: Jun 2005
Old 07-22-2005 , 21:17  
Reply With Quote #10

Quote:
Originally Posted by vittu
I don't get why there are 3 cvars to turn it on/off?
Code:
shm_buyenabled 1
shm_buyon
shm_buyoff
Also, why should people be able to buy frags? I also think your giving too much hp and ap to buy, but they are cvars so...
shm_buyenabled is a server side cvar, that you can use to disable the entire plugin in the config file, or at the server console.
shm_buyon and shm_buyoff are client side admin commands to enabled or disable the entire plugin

i think the default is lower, the examples shown of the cvars above are taken from my server where i balanced everything out and you can always customize the cvars

thanks for the suggestion jtp im gonna use that method to keep the amount of cvars low
werdpad is offline
Send a message via AIM to werdpad
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 09:14.


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