Hey everybody this is a tutorial on "How to Create Shop Items":
Found in: cstrike/addons/eventscripts/wcs/INI/items.ini
1. Item Concept:
First of all think about what your item is supposed to do when its finished!
Creating Items and then think about their job is pretty much the wrong way!
2.Choosing category:
We have 6 categorys:
~ Permanent, offensive
~ Permanent, defensive
~ Permanent, enchantments
~ Permanent, health/XP items
~ One time, enchantments
~ One time, tomes, limited
You now have to choose in which of those categorys your item will fit.
3.Creating your own Item:
Now that you have the idea and you have the category you can start to write your own Item using this layout:
a) Name, Description, Cost,
~ Name will be the name Displayed Ingame
~ Description will be the information about the item
~ Cost will be the cost of the item in Ingame Money
b) Level, dab, duration, max
~ Level is just like the "level_needed" key in races. This will adjust the level you need to buy the item
~ dab will set who is allowed to buy the item. Here we have #0=death, 1=alive, 2=both as possibilities
~ duration will set for how long the item stays on the player. Here we have #0=this round, 1=untill death as possibilities
~ max will set how many times you can buy that item
c) Cfg, Cmdbuy, Cmdactivate
~ cfg is just the same as cfg in races. Here we have things like player_attacker, player_spawn, player_victim etc
~ cmdbuy is what will happen to the user when he buys the item (like setting a group for him etc)
~ cmdactivate is what happens when the item triggers (like extra damage or flash up).
4.Example
As an example we will create an Item that will freeze the enemy:
5.Questions
If you have any question related to Item creation or editing just post them here and I will try to answer them.
Found in: cstrike/addons/eventscripts/wcs/INI/items.ini
1. Item Concept:
First of all think about what your item is supposed to do when its finished!
Creating Items and then think about their job is pretty much the wrong way!
2.Choosing category:
We have 6 categorys:
~ Permanent, offensive
~ Permanent, defensive
~ Permanent, enchantments
~ Permanent, health/XP items
~ One time, enchantments
~ One time, tomes, limited
You now have to choose in which of those categorys your item will fit.
3.Creating your own Item:
Now that you have the idea and you have the category you can start to write your own Item using this layout:
Code: [Select]
[[itemname]]
name = ""
desc = ""
cost =
level =
dab =
duration =
max =
cfg = ""
cmdbuy = ""
cmdactivate = ""
a) Name, Description, Cost,
~ Name will be the name Displayed Ingame
~ Description will be the information about the item
~ Cost will be the cost of the item in Ingame Money
b) Level, dab, duration, max
~ Level is just like the "level_needed" key in races. This will adjust the level you need to buy the item
~ dab will set who is allowed to buy the item. Here we have #0=death, 1=alive, 2=both as possibilities
~ duration will set for how long the item stays on the player. Here we have #0=this round, 1=untill death as possibilities
~ max will set how many times you can buy that item
c) Cfg, Cmdbuy, Cmdactivate
~ cfg is just the same as cfg in races. Here we have things like player_attacker, player_spawn, player_victim etc
~ cmdbuy is what will happen to the user when he buys the item (like setting a group for him etc)
~ cmdactivate is what happens when the item triggers (like extra damage or flash up).
4.Example
As an example we will create an Item that will freeze the enemy:
Code: [Select]
[[freezeorb]]
name = "Freezing Orb"
desc = "Freeze your enemies"
cost = 10000
level = 30
dab = 1
duration = 1
max = 1
cfg = "player_attacker" //this means our skill will work if we attack someone
cmdbuy = "" //we dont need to set anything here as the skill doesnt do anything on buy
cmdactivate = "if (server_var(wcs_dice) <= 10) then es playerset freeze event_var(userid) 1;es_delayed 2 playerset freeze event_var(userid) 0" //here we have a chance of 10% to freeze the enemy we attacked
5.Questions
If you have any question related to Item creation or editing just post them here and I will try to answer them.

Logged






