Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
{
Buy()
{
PriceMod(0.1);
//ITEMS SET, COLOR SET, MIN, MAX
Set("Firearm_ShotgunAGen", "item_of_the_day", 1) //ITEM OF THE DAY
{
Limited();
}
Set("Firearm_ShotgunAGen", "whites", 1);
Set("Ammo_ShotgunSmall", "whites_only", 99, 99);
}
//Sell()
//{
// PriceMod(0.5); //Amount of price player will receive when selling items
//}
}
("Test_1") is what the shops name is that you have to pick as the seller from the list. An example of a game preset one is ("Shop_Slums_Brecken_Floor")
So, this is the basic layout of what i used. Most of it is straight forward but if you’ve never done anything with code it may not so ill explain.
PriceMod will change the price of what is in the shop
Where the second Set("Firearm_ShotgunAGen", is where you will put the id of what you are trying to sell in the shops as you see Ammo_ShotgunSmall is also there.
This is what i use, there maybe better ways to code this but it works for me. If you know of a better way of coding this please let me know!
If you have any questions i will do my best to answer them!