Raised This Month: $ Target: $400
 0% 

[ZP50] Addon: Items Discount


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 06-21-2014 , 04:18   [ZP50] Addon: Items Discount
Reply With Quote #1

[ZP50] Addon: Items Discount

Description:-

Its just a Rip off from The item limiter plugin i made. Made this for one of my friend's server. Thought some people might find it useful.

So Basically this plugin gives player a kind of "discount" on extra items. The discount and on which item can be edited from the zp_extra_discount.ini (Note:- The discount is always in % so if u keep it 100 then the item will be free and if more than 100 then people will actually gain AP instead of losing them when purchasing that item)

This plugin will also add a small notice with the given discount on any extra item that is in the .ini file.

It has plenty of good uses like you can Give 50% discount on heavy items on weekends to attract more players or change the discounts and add new deals daily and so on....

How to add items and discount to them :-

Step 1:
Find the extra items register name. It is given inside any extra item's code in its register function



Step 2:
Copy and paste that name without the quotes in the "zp_extra_discount.ini" file in "item_id" section and in "item_discount" section put the desired discount (Note: As i mentioned earlier the discount is in % so keep it less than 100).



Step 3:
Save the "zp_extra_discount.ini" and close it. (No change needs to be made in the .sma file of the extra item.)

Note: To add more than 1 extra item in the list, just add a coma after the previous extra item id in the zp_extra_discount.ini and add the id of this other extra item after the coma.



Bugs : -

None. Report if u find any.

Although there is one thing. Do not put more than 128 items in the zp_item_discount.ini at one time, or it will give you errors.

My Note:-

Dont PM me for anything related to this topic, post it here.........

Change log:-

v1.0
Release

Servers Using this plugin: 74.91.119.56:27015
Attached Files
File Type: ini zp_extra_discount.ini (42 Bytes, 472 views)
File Type: sma Get Plugin or Get Source (zp50_extra_discount.sma - 1134 views - 1.9 KB)
__________________
You will find everything u need :-

Last edited by Catastrophe; 06-21-2014 at 11:04.
Catastrophe is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 06-21-2014 , 07:14   Re: [ZP50] Addon: Items Discount
Reply With Quote #2

Thank you.

I have never think about a plugin that can give discount.

I have tried it in my ZP 5.0.5 server and it works. When we open the extra items menu, there will be a discount tag. Example:
Quote:
Jetpack + Bazooka 50 [10% Off]
However, this plugin will not work for VIP extra items but it still a good plugin. I will add this addon in here:
Thank for sharing.

Last edited by zmd94; 06-21-2014 at 07:18.
zmd94 is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 06-21-2014 , 08:11   Re: [ZP50] Addon: Items Discount
Reply With Quote #3

Quote:
Originally Posted by zmd94 View Post
However, this plugin will not work for VIP extra items
It was never meant for VIP extras they work on different forwards than the basic extras.
__________________
You will find everything u need :-
Catastrophe is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 06-21-2014 , 18:04   Re: [ZP50] Addon: Items Discount
Reply With Quote #4

Interesting, thx for share..
wicho 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 16:30.


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