Raised This Month: $ Target: $400
 0% 

[ZP50] Addon: Items Discount


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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