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
And in term of weapons should be Machette and Katana at least, a revolver too i think.
Well Adding the Armor To The Weapon Shop Should Do For Now Thx For The Help @tfkmaster
But otherwise you could totally do it in the weapon shop if you need a quick patch :D
Here The Code That i 100% Did Not Steal And Change without Knowing How it Works (Real) :
require "LastStand/ISUI/ISChallenge2ArmourUpWindow"
if not ISChallenge2ArmourUpWindow then
return
end
function ISChallenge2ArmourUpWindow:create()
local y = 90;
local label = ISLabel:new(16, y, 20, getText("Challenge_Challenge2_Armour"), 1, 1, 1, 0.8, UIFont.Small, true);
self:addChild(label);
local rect = ISRect:new(16, y + 20, 230, 1, 0.6, 0.6, 0.6, 0.6);
self:addChild(rect);
y = y + 25;
self:createItemButton(16, y, "Base.WeldingMask", 50)
y = y + 25;
self:createItemButton(16, y, "Base.Hat_Fireman", 75)
y = y + 25;
self:createItemButton(16, y, "Base.Jacket_Fireman", 100)
y = y + 25;
self:createItemButton(16, y, "Base.Trousers_Fireman", 75)
self:loadJoypadButtons()
end
Just so you get the full explanation on the createItemButton(x, y, name, price) :
The first two are for positionning the button on the window, you probably don't have to touch it.
The third one is the "ItemID" of the item you wanna buy. To find that ID, you can go on the item page on the PZwiki (for exemple : https://pzwiki.net/wiki/Hand_Axe ) and you can find "Item ID" on the right side table within the "Technical" section.
And finally the number in fourth position is the price of the item you wanna buy, you can go wild with that lol
If you follow that snippet (putting it before the final "self:loadJoypadButtons()") you should be able to add anything you want without issue !
Have fun :D
self:createItemButton(16, y, "Base.Shotgun", 500)
So Do i Just Need To Copy And Paste This But Use The Name For A Weapon I Wana Add For ("Base.Shotgun")?