01001100 01000011 01000011 01000010
Loyal Member
- Joined
- Apr 23, 2013
- Messages
- 1,172
- Reaction score
- 1,786
Soluction: WarZ_Server.sln (Server)
File: UserProfile.cpp
Search:
Code:
static void parseCharAttachments(const char* slotData, wiWeaponAttachment& attm)
Paste bellow
Code:
int CUserProfile::ApiLootBoxBuy(int itemId, int buyIdx)
{
r3d_assert(buyIdx > 0);
CWOBackendReq req(this, "api_MysteryBox.aspx");
req.AddParam("func", "roll");
req.AddParam("ItemID", itemId);
req.AddParam("BuyIdx", buyIdx);
if(!req.Issue())
{
r3dOutToLog("ApiLootBoxBuy FAILED, code: %dn", req.resultCode_);
return req.resultCode_;
}
int nargs = sscanf(req.bodyStr_, "%d", &ProfileData.lastWinID);
if(nargs != 1)
{
r3dError("wrong answer for ApiMysteryBoxBuy");
return 9;
}
return 0;
}
File: UserProfile.h
Search:
Code:
int GetProfile(int CharID = 0);
void ParseLoadouts(pugi::xml_node& xmlItem);
void ParseInventory(pugi::xml_node& xmlItem);
void ParseBackpacks(pugi::xml_node& xmlItem);
Paste bellow
Code:
int ApiLootBoxBuy(int itemId, int buyIdx);
Done!
Compile Build.
================================================================
Soluction: WarZ.sln (Client/Studio)
File: FrontEndWarZ.cpp
Search:
Code:
void FrontendWarZ::addStore()
{
#if 0
// add all items to store for test purpose
addAllItemsToStore();
#endif
addStoreToUI(gfxMovie);
}
Paste all this bellow
Code:
unsigned int WINAPI FrontendWarZ::as_BuyLootBoxThread(void* in_data)
{
r3dThreadAutoInstallCrashHelper crashHelper;
FrontendWarZ* This = (FrontendWarZ*)in_data;
This->DelayServerRequest();
int buyIdx = This->StoreDetectBuyIdx();
if(buyIdx == 0)
{
This->SetAsyncError(-1, gLangMngr.getString("BuyItemFailNoIndex"));
return 0;
}
int apiCode = gUserProfile.ApiLootBoxBuy(This->mStore_BuyItemID, buyIdx);
if(apiCode != 0)
{
This->SetAsyncError(apiCode, gLangMngr.getString("BuyItemFail"));
return 0;
}
return 1;
}
void FrontendWarZ::OnBuyLootBoxSuccess()
{
if(gUserProfile.ProfileData.lastWinID > 0)
{
char winmsg[600];
const WeaponConfig* wc = g_pWeaponArmory->getWeaponConfig(gUserProfile.ProfileData.lastWinID);
const GearConfig* gc = g_pWeaponArmory->getGearConfig(gUserProfile.ProfileData.lastWinID);
const FoodConfig* fc = g_pWeaponArmory->getFoodConfig(gUserProfile.ProfileData.lastWinID);
const BaseItemConfig* ic = g_pWeaponArmory->getFoodConfig(gUserProfile.ProfileData.lastWinID);
SoundSys.PlayAndForget(SoundSys.GetEventIDByPath("Sounds/PandemicZ/Crate/lever8"), r3dPoint3D(0,0,0));
SoundSys.PlayAndForget(SoundSys.GetEventIDByPath("Sounds/PandemicZ/Crate/csgo_ui_crate_open"), r3dPoint3D(0,0,0));
if(wc)
{
sprintf(winmsg, "CONGRATULATIONSn YOU FOUND A <font color="#6496FF">%s</font>n IT CAN BE FOUND IN YOUR GLOBAL INVENTORY", wc->m_StoreName);
SoundSys.PlayAndForget(SoundSys.GetEventIDByPath("Sounds/PandemicZ/Crate/item_drop2_uncommon"), r3dPoint3D(0,0,0));
}
else if(gc)
{
sprintf(winmsg, "CONGRATULATIONSn YOU FOUND A <font color="#6496FF">%s</font>n IT CAN BE FOUND IN YOUR GLOBAL INVENTORY", gc->m_StoreName);
SoundSys.PlayAndForget(SoundSys.GetEventIDByPath("Sounds/PandemicZ/Crate/item_drop2_uncommon"), r3dPoint3D(0,0,0));
}
else if(fc)
{
sprintf(winmsg, "CONGRATULATIONSn YOU FOUND A <font color="#6496FF">%s</font>n IT CAN BE FOUND IN YOUR GLOBAL INVENTORY", fc->m_StoreName);
SoundSys.PlayAndForget(SoundSys.GetEventIDByPath("Sounds/PandemicZ/Crate/item_drop2_uncommon"), r3dPoint3D(0,0,0));
}
else if(ic)
{
sprintf(winmsg, "CONGRATULATIONSn YOU FOUND A <font color="#6496FF">%s</font>n IT CAN BE FOUND IN YOUR GLOBAL INVENTORY", ic->m_StoreName);
SoundSys.PlayAndForget(SoundSys.GetEventIDByPath("Sounds/PandemicZ/Crate/item_drop2_uncommon"), r3dPoint3D(0,0,0));
}
else
{
sprintf(winmsg, "OH FIDDLESTICKSn YOU FOUND <font color="#FF6464">NOTHING</font> IN THAT CASEn I BETTER LUCK NEXT TIME");
SoundSys.PlayAndForget(SoundSys.GetEventIDByPath("Sounds/PandemicZ/Crate/item_drop2_uncommon"), r3dPoint3D(0,0,0));
}
gfxMovie.Invoke("_root.api.Main.Marketplace.showTransactionsPopup", "");
gfxMovie.Invoke("_root.api.Main.Marketplace.Marketplace.openCase", "");
//setCurrency();
gUserProfile.GetProfile();
Scaleform::GFx::Value var3[1];
var3[0].SetInt(gUserProfile.ProfileData.GamePoints);
gfxMovie.Invoke("_root.api.setGC", var3, 1);
var3[0].SetInt(gUserProfile.ProfileData.GameDollars);
gfxMovie.Invoke("_root.api.setDollars", var3, 1);
var[0].SetInt(0); gfxMovie.Invoke("_root.api.setCells", var, 1);
Scaleform::GFx::Value var2[7];
// clear inventory DB
gfxMovie.Invoke("_root.api.clearInventory", NULL, 0);
// add all items
for(uint32_t i=0; i<gUserProfile.ProfileData.NumItems; ++i)
{
var2[0].SetUInt(uint32_t(gUserProfile.ProfileData.Inventory[i].InventoryID));
var2[1].SetUInt(gUserProfile.ProfileData.Inventory[i].itemID);
var2[2].SetNumber(gUserProfile.ProfileData.Inventory[i].quantity);
var2[3].SetNumber(gUserProfile.ProfileData.Inventory[i].Var1);
var2[4].SetNumber(gUserProfile.ProfileData.Inventory[i].Var2);
bool isConsumable = false;
{
const WeaponConfig* wc = g_pWeaponArmory->getWeaponConfig(gUserProfile.ProfileData.Inventory[i].itemID);
if(wc && wc->category == storecat_UsableItem && wc->m_isConsumable)
isConsumable = true;
}
var2[5].SetBoolean(isConsumable);
var2[6].SetString(getAdditionalDescForItem(gUserProfile.ProfileData.Inventory[i].itemID, gUserProfile.ProfileData.Inventory[i].Var1, gUserProfile.ProfileData.Inventory[i].Var2, gUserProfile.ProfileData.Inventory[i].Var3));
gfxMovie.Invoke("_root.api.addInventoryItem", var2, 7);
}
gfxMovie.Invoke("_root.api.buyItemSuccessful", "");
gfxMovie.Invoke("_root.api.hideInfoMsg", "");
/*Scaleform::GFx::Value var[2];
var[0].SetString(winmsg);
var[1].SetBoolean(true);
gfxMovie.Invoke("_root.api.showInfoMsg", var, 2);
/*Scaleform::GFx::Value var[3];
var[0].SetString(winmsg);
var[1].SetString(winmsg);
var[2].SetString(winmsg);
gfxMovie.Invoke("_root.api.Main.Marketplace.setCaseData", var, 3);
gfxMovie.Invoke("_root.api.Main.Marketplace.Marketplace.OpenCase.visible", true);*/
}
else
{
gfxMovie.Invoke("_root.api.buyItemSuccessful", "");
gfxMovie.Invoke("_root.api.hideInfoMsg", "");
Scaleform::GFx::Value var[2];
var[0].SetString("Failed to open case");
var[1].SetBoolean(true);
gfxMovie.Invoke("_root.api.showInfoMsg", var, 2);
}
mStore_BuyItemID = 0;
return;
}
and search
Code:
void FrontendWarZ::eventBuyItem(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount)
I left like this, but be careful if yours is modified take only what matters!
Code:
void FrontendWarZ::eventBuyItem(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount)
{
mStore_BuyItemID = args[0].GetUInt(); // legsID
mStore_BuyPrice = args[1].GetInt();
mStore_BuyPriceGD = args[2].GetInt();
if(gUserProfile.ProfileData.GameDollars < mStore_BuyPriceGD || gUserProfile.ProfileData.GamePoints < mStore_BuyPrice)
{
Scaleform::GFx::Value var[2];
var[0].SetString(gLangMngr.getString("NotEnougMoneyToBuyItem"));
var[1].SetBoolean(true);
gfxMovie.Invoke("_root.api.showInfoMsg", var, 2);
return;
}
const BaseItemConfig* itemConfig = g_pWeaponArmory->getAccountItemConfig(mStore_BuyItemID);
if(itemConfig && itemConfig->category == storecat_LootBox)
{
if(gUserProfile.haveFreeInventorySlot(false) == false)
{
Scaleform::GFx::Value var[2];
var[0].SetString(gLangMngr.getString("NotEnougMoneyToBuyItem"));
var[1].SetBoolean(true);
gfxMovie.Invoke("_root.api.showInfoMsg", var, 2);
return;
}
Scaleform::GFx::Value var[2];
var[0].SetString(gLangMngr.getString("OneMomentPlease"));
var[1].SetBoolean(false);
gfxMovie.Invoke("_root.api.showInfoMsg", var, 2);
StartAsyncOperation(&FrontendWarZ::as_BuyLootBoxThread, &FrontendWarZ::OnBuyLootBoxSuccess);
}
else
{
if(gUserProfile.haveFreeInventorySlot(false) == false)
{
Scaleform::GFx::Value var[2];
var[0].SetString(gLangMngr.getString("InGameUI_ErrorMsg_NoInventorySpace"));
var[1].SetBoolean(true);
gfxMovie.Invoke("_root.api.showInfoMsg", var, 2);
return;
}
Scaleform::GFx::Value var[2];
var[0].SetString(gLangMngr.getString("OneMomentPlease"));
var[1].SetBoolean(false);
gfxMovie.Invoke("_root.api.showInfoMsg", var, 2);
StartAsyncOperation(&FrontendWarZ::as_BuyItemThread, &FrontendWarZ::OnBuyItemSuccess);
}
}
File: FrontEndWarZ.h
Search:
Code:
static unsigned int WINAPI as_CreateCharThread(void* in_data);
void OnCreateCharSuccess();
static unsigned int WINAPI as_DeleteCharThread(void* in_data);
void OnDeleteCharSuccess();
Paste bellow
Code:
static unsigned int WINAPI as_BuyLootBoxThread(void* in_data);
void OnBuyLootBoxSuccess();
Done!
Compile Build.
===============================================================
SQL Server Script
-----------------------------------------------------------------------------------
(I recommend making backup before running this script!)
Using my tutorial for BackUP
Link: https://forum.ragezone.com/f791/tutorial-database-2-clicks-1069719/
-----------------------------------------------------------------------------------
File:
You must be registered to see links
Execute this script in your SQL Server and click Top Button.
Code:
/*
Navicat SQL Server Data Transfer
Source Server : Corrupted Pixel
Source Server Version : 110000
Source Host : auth.playcallofwar.com:1433
Source Database : Infestation
Source Schema : dbo
Target Server Type : SQL Server
Target Server Version : 110000
File Encoding : 65001
Date: 2015-04-17 15:09:20
*/
-- ----------------------------
-- Table structure for Items_CaseData
-- ----------------------------
DROP TABLE [Items_CaseData]
GO
CREATE TABLE [Items_CaseData] (
[RecordID] int NOT NULL IDENTITY(1,1) ,
[LootID] int NOT NULL ,
[Chance] float(53) NULL ,
[ItemID] int NULL
)
GO
DBCC CHECKIDENT(N'[Items_CaseData]', RESEED, 251)
GO
-- ----------------------------
-- Records of Items_CaseData
-- ----------------------------
BEGIN TRANSACTION
GO
SET IDENTITY_INSERT [Items_CaseData] ON
GO
INSERT INTO [Items_CaseData] ([RecordID], [LootID], [Chance], [ItemID]) VALUES (N'4', N'301138', N'50', N'101002'), (N'5', N'301142', N'50', N'101004'), (N'6', N'301138', N'50', N'101005'), (N'7', N'301138', N'50', N'101022'), (N'9', N'301138', N'50', N'101032'), (N'11', N'301138', N'50', N'101035'), (N'12', N'301138', N'50', N'101037'), (N'13', N'301138', N'50', N'101040'), (N'14', N'301138', N'50', N'101045'), (N'15', N'301138', N'50', N'101055'), (N'16', N'301141', N'50', N'101060'), (N'17', N'301143', N'50', N'101062'), (N'18', N'301143', N'50', N'101063'), (N'19', N'301143', N'50', N'101064'), (N'21', N'301138', N'50', N'101077'), (N'22', N'301138', N'50', N'101081'), (N'23', N'301139', N'50', N'101084'), (N'24', N'301139', N'50', N'101085'), (N'25', N'301139', N'50', N'101087'), (N'26', N'301139', N'50', N'101088'), (N'27', N'301141', N'50', N'101092'), (N'28', N'301141', N'50', N'101093'), (N'29', N'301141', N'50', N'101095'), (N'30', N'301140', N'50', N'101098'), (N'31', N'301143', N'50', N'101103'), (N'32', N'301143', N'50', N'101106'), (N'33', N'301143', N'50', N'101107'), (N'34', N'301143', N'50', N'101108'), (N'35', N'301143', N'50', N'101109'), (N'36', N'301142', N'50', N'101111'), (N'37', N'301142', N'50', N'101112'), (N'38', N'301142', N'50', N'101115'), (N'39', N'301142', N'50', N'101120'), (N'40', N'301140', N'50', N'101158'), (N'41', N'301138', N'50', N'101169'), (N'42', N'301138', N'50', N'101171'), (N'43', N'301138', N'50', N'101172'), (N'44', N'301138', N'50', N'101173'), (N'45', N'301142', N'50', N'101180'), (N'46', N'301140', N'50', N'101183'), (N'47', N'301138', N'50', N'101191'), (N'48', N'301138', N'50', N'101193'), (N'49', N'301142', N'50', N'101196'), (N'50', N'301141', N'50', N'101197'), (N'51', N'301140', N'50', N'101200'), (N'52', N'301143', N'50', N'101201'), (N'54', N'301138', N'50', N'101210'), (N'66', N'301138', N'50', N'101246'), (N'67', N'301139', N'50', N'101247'), (N'71', N'301147', N'50', N'101267'), (N'72', N'301147', N'50', N'101268'), (N'73', N'301147', N'50', N'101269'), (N'74', N'301147', N'50', N'101270'), (N'75', N'301147', N'50', N'101271'), (N'76', N'301147', N'50', N'101272'), (N'77', N'301147', N'50', N'101273'), (N'78', N'301147', N'50', N'101274'), (N'79', N'301147', N'50', N'101275'), (N'80', N'301147', N'50', N'101276'), (N'81', N'301147', N'50', N'101277'), (N'82', N'301144', N'50', N'101278'), (N'105', N'301144', N'50', N'101306'), (N'106', N'301144', N'50', N'101307'), (N'107', N'301144', N'50', N'101308'), (N'108', N'301144', N'50', N'101309'), (N'112', N'301144', N'50', N'101313'), (N'113', N'301144', N'50', N'101314'), (N'126', N'301144', N'50', N'101335'), (N'127', N'301144', N'50', N'101336'), (N'128', N'301144', N'50', N'101337'), (N'129', N'301144', N'50', N'101338'), (N'130', N'301144', N'50', N'101339'), (N'132', N'301138', N'50', N'101341'), (N'133', N'301144', N'50', N'101343'), (N'134', N'301144', N'50', N'101344'), (N'135', N'301144', N'50', N'101345'), (N'136', N'301144', N'50', N'101346'), (N'137', N'301144', N'50', N'101347'), (N'161', N'301144', N'50', N'101381'), (N'162', N'301144', N'50', N'101382'), (N'163', N'301144', N'50', N'101383'), (N'164', N'301144', N'50', N'101384'), (N'165', N'301144', N'50', N'101385'), (N'166', N'301144', N'50', N'101386'), (N'167', N'301144', N'50', N'101388'), (N'168', N'301144', N'50', N'101389'), (N'169', N'301144', N'50', N'101390'), (N'170', N'301144', N'50', N'101391'), (N'171', N'301144', N'50', N'101397'), (N'174', N'301144', N'50', N'101408'), (N'181', N'301165', N'50', N'108002'), (N'182', N'301165', N'50', N'108003'), (N'183', N'301142', N'50', N'108005'), (N'184', N'301165', N'50', N'108006'), (N'185', N'301165', N'50', N'108007'), (N'186', N'301142', N'50', N'108008'), (N'187', N'301138', N'50', N'108012'), (N'188', N'301165', N'50', N'108013'), (N'189', N'301141', N'50', N'108014'), (N'190', N'301143', N'50', N'108015')
GO
GO
INSERT INTO [Items_CaseData] ([RecordID], [LootID], [Chance], [ItemID]) VALUES (N'191', N'301143', N'50', N'108016'), (N'192', N'301150', N'50', N'108018'), (N'193', N'301150', N'50', N'108019'), (N'194', N'301150', N'50', N'108020'), (N'195', N'301142', N'50', N'180002'), (N'196', N'301142', N'50', N'180003'), (N'197', N'301142', N'50', N'180004'), (N'198', N'301138', N'50', N'180018'), (N'199', N'301140', N'50', N'180019'), (N'200', N'301143', N'50', N'180020'), (N'201', N'301142', N'50', N'180022'), (N'202', N'301139', N'50', N'180023'), (N'203', N'301139', N'50', N'180024'), (N'204', N'301141', N'50', N'180025'), (N'205', N'301143', N'50', N'180031'), (N'206', N'301138', N'50', N'180276'), (N'207', N'301138', N'50', N'180286'), (N'208', N'301140', N'50', N'180287'), (N'209', N'301138', N'50', N'180289'), (N'210', N'301142', N'50', N'180290'), (N'211', N'301139', N'50', N'181391'), (N'212', N'301138', N'50', N'181392'), (N'213', N'301138', N'50', N'181393'), (N'214', N'301138', N'50', N'181394'), (N'215', N'301143', N'50', N'181395'), (N'216', N'301141', N'50', N'181396'), (N'217', N'301138', N'50', N'181397'), (N'218', N'301142', N'50', N'181398'), (N'219', N'301138', N'50', N'181401'), (N'220', N'301138', N'50', N'181402'), (N'221', N'301138', N'50', N'181403'), (N'222', N'301138', N'50', N'182000'), (N'223', N'301141', N'50', N'182002'), (N'224', N'301141', N'50', N'182003'), (N'225', N'301140', N'50', N'182017'), (N'226', N'301140', N'50', N'182018'), (N'227', N'301138', N'50', N'182019'), (N'228', N'301142', N'50', N'182023'), (N'229', N'301142', N'50', N'182024'), (N'230', N'301142', N'50', N'182025'), (N'231', N'301143', N'50', N'182026'), (N'232', N'301138', N'50', N'182029'), (N'233', N'301141', N'50', N'182030'), (N'234', N'301141', N'50', N'182031'), (N'235', N'301140', N'50', N'182032'), (N'236', N'301140', N'50', N'182033'), (N'237', N'301139', N'50', N'182034'), (N'238', N'301139', N'50', N'182035'), (N'239', N'301150', N'50', N'182037'), (N'240', N'301150', N'50', N'182038'), (N'241', N'301150', N'50', N'182039'), (N'243', N'301150', N'50', N'182041'), (N'244', N'301150', N'50', N'182042'), (N'245', N'301145', N'50', N'182043'), (N'246', N'301145', N'50', N'182044'), (N'248', N'301145', N'50', N'182046'), (N'249', N'301145', N'50', N'182047'), (N'250', N'301145', N'50', N'182048'), (N'251', N'301145', N'50', N'182049'), (N'247', N'301145', N'50', N'182045')
GO
GO
SET IDENTITY_INSERT [Items_CaseData] OFF
GO
COMMIT TRANSACTION
GO
-- ----------------------------
-- Table structure for Items_Generic
-- ----------------------------
DROP TABLE [Items_Generic]
GO
CREATE TABLE [Items_Generic] (
[ItemID] int NULL ,
[FNAME] varchar(32) NULL DEFAULT ('Item_Generic') ,
[Category] int NULL ,
[Name] nvarchar(32) NULL DEFAULT '' ,
[Description] nvarchar(512) NULL DEFAULT '' ,
[Price1] int NULL DEFAULT ((0)) ,
[Price7] int NULL DEFAULT ((0)) ,
[Price30] int NULL DEFAULT ((0)) ,
[PriceP] int NULL DEFAULT ((0)) ,
[IsNew] int NULL DEFAULT ((0)) ,
[LevelRequired] int NULL DEFAULT ((0)) ,
[GPrice1] int NULL DEFAULT ((0)) ,
[GPrice7] int NULL DEFAULT ((0)) ,
[GPrice30] int NULL DEFAULT ((0)) ,
[GPriceP] int NULL DEFAULT ((0)) ,
[Weight] int NULL DEFAULT ((0)) ,
[ResWood] int NULL DEFAULT ((0)) ,
[ResStone] int NULL DEFAULT ((0)) ,
[ResMetal] int NULL DEFAULT ((0)) ,
[CPriceP] int NULL DEFAULT ((0)) ,
[lootchance] varchar(2) NULL ,
[itemFlag] varchar(2) NULL
)
GO
-- ----------------------------
-- Records of Items_Generic
-- ----------------------------
BEGIN TRANSACTION
GO
INSERT INTO [Items_Generic] ([ItemID], [FNAME], [Category], [Name], [Description], [Price1], [Price7], [Price30], [PriceP], [IsNew], [LevelRequired], [GPrice1], [GPrice7], [GPrice30], [GPriceP], [Weight], [ResWood], [ResStone], [ResMetal], [CPriceP], [lootchance], [itemFlag]) VALUES (N'301152', N'Account_ClanUpg1', N'1', N'Clan Slots 1', N'', N'25', N'0', N'0', N'30', N'0', N'0', N'0', N'0', N'0', N'10', N'0', N'0', N'0', N'0', N'0', null, null), (N'301153', N'Account_ClanUpg2', N'1', N'Clan Slots 2', N'', N'25', N'0', N'0', N'50', N'0', N'0', N'0', N'0', N'0', N'20', N'0', N'0', N'0', N'0', N'0', null, null), (N'301154', N'Account_ClanUpg3', N'1', N'Clan Slots 3', N'', N'25', N'0', N'0', N'60', N'0', N'0', N'0', N'0', N'0', N'30', N'0', N'0', N'0', N'0', N'0', null, null), (N'301155', N'Account_ClanUpg4', N'1', N'Clan Slots 4', N'', N'25', N'0', N'0', N'70', N'0', N'0', N'0', N'0', N'0', N'40', N'0', N'0', N'0', N'0', N'0', null, null), (N'301156', N'Account_ClanUpg5', N'1', N'Clan Slots 5', N'', N'25', N'0', N'0', N'80', N'0', N'0', N'0', N'0', N'0', N'50', N'0', N'0', N'0', N'0', N'0', null, null), (N'301157', N'Account_ClanUpg6', N'1', N'Clan Slots 6', N'', N'25', N'0', N'0', N'90', N'0', N'0', N'0', N'0', N'0', N'60', N'0', N'0', N'0', N'0', N'0', null, null), (N'301159', N'Char_Revive', N'1', N'Revive Char', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'750', N'0', N'0', N'0', N'0', N'0', null, null), (N'301257', N'Account_PremoumSubscribe', N'1', N'Premium Subscription', N'', N'0', N'0', N'0', N'3500', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301399', N'Change_Name', N'1', N'Change Name', N'', N'0', N'0', N'0', N'50', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301138', N'Mega_Loot_', N'7', N'Assault Rifles Case', N'Open for random items', N'0', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'0', N'10000', N'0', N'0', N'0', N'0', N'0', null, null), (N'301139', N'Mega_Loot_', N'7', N'Sniper Rifles Case', N'Open for random items', N'0', N'0', N'0', N'5600', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301140', N'Mega_Loot_', N'7', N'Shotgun Case', N'Open for random items', N'0', N'0', N'0', N'500', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301141', N'Mega_Loot_', N'7', N'Machine Gun Case', N'Open for random items', N'0', N'0', N'0', N'1000', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301142', N'Mega_Loot_', N'7', N'Handgun Case', N'Open for random items', N'0', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'0', N'4000', N'0', N'0', N'0', N'0', N'0', null, null), (N'301143', N'Mega_Loot_', N'7', N'PDW Case', N'Open for random items', N'0', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'0', N'4000', N'0', N'0', N'0', N'0', N'0', null, null), (N'301144', N'Mega_Loot_', N'7', N'Melee Case', N'Open for random items', N'0', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'0', N'500', N'0', N'0', N'0', N'0', N'0', null, null), (N'301145', N'Mil_Box_Case_Equip_01', N'7', N'Covert Case', N'Open for random items', N'0', N'0', N'0', N'1200', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301146', N'Mil_Box_Case_Food_01', N'7', N'Elite Case', N'Open for random items', N'0', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301147', N'Item_Locker_01', N'7', N'Global Case', N'Open for random items', N'0', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'1000', null, null), (N'301165', N'Lootbox', N'7', N'Veh Lootbox', N'Open for random items', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301136', N'Item_LootBox', N'7', N'ZOMBIE- Money', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301158', N'Item_LootBox', N'7', N'SPAWN - reserved', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301160', N'Item_LootBox', N'7', N'GEAR - Civilian', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301319', N'Craft_DuckTape_01', N'50', N'Duck Tape', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301320', N'Craft_EmptyBottle_01', N'50', N'Empty Bottle', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301321', N'Craft_Gas_01', N'50', N'Gas', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301322', N'Craft_GlassBottle_01', N'50', N'Glass Bottle', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301323', N'Craft_Glue_01', N'50', N'Glue', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301324', N'Craft_GunPowder_01', N'50', N'Gun Powder', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301325', N'Craft_EmptyJerryCan_01', N'50', N'Empty Jerry Can', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301326', N'Craft_Liquor_01', N'50', N'Liquor', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301327', N'Craft_MetalScrap_01', N'50', N'Metal Scrap', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301328', N'Craft_Nails_01', N'50', N'Nails', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301329', N'Craft_Oil_01', N'50', N'Oil', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301330', N'Craft_Potatoes_01', N'50', N'Potatoes', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301331', N'Craft_Rag_01', N'50', N'Rag', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301332', N'Craft_RazerWire_01', N'50', N'Razer Wire', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301333', N'Craft_Redwine_01', N'50', N'Redwine', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301334', N'Craft_Salt_01', N'50', N'Salt', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301335', N'Craft_Scissors_01', N'50', N'Scissors', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301336', N'Craft_WristWatch_01', N'50', N'Wrist Watch', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301337', N'Craft_Wire_01', N'50', N'Wire', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301339', N'Craft_thread_01', N'50', N'thread', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301349', N'Craft_Acid_01', N'50', N'Acid', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301350', N'Craft_AerosolSpray_01', N'50', N'Aerosol Spray', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301351', N'Craft_AluminumFoil_01', N'50', N'Aluminum Foil', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301352', N'Craft_Ammunition_01', N'50', N'Ammunition', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301353', N'Craft_Amonia_01', N'50', N'Amonia', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301354', N'Craft_Belt_01', N'50', N'Belt', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301355', N'Craft_Broom_01', N'50', N'Broom', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301356', N'Craft_CarBattery_01', N'50', N'Car Battery', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301357', N'Craft_Charcoal_01', N'50', N'Charcoal', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301358', N'Craft_CigaretteLighter_01', N'50', N'Cig Lighter', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301359', N'Craft_DrainO_01', N'50', N'DrainO', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301360', N'Craft_Fat_01', N'50', N'Fat', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301361', N'Craft_Fireworks_01', N'50', N'Fireworks', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301362', N'Craft_JumperCable_01', N'50', N'Jumper Cable', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301363', N'Craft_Ketchup_01', N'50', N'Ketchup', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301364', N'Craft_Lime_01', N'50', N'Lime', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301365', N'Craft_MetalPipe_01', N'50', N'Metal Pipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301266', N'Item_LootBox', N'7', N'V2 Cars - Civilian', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301267', N'Item_LootBox', N'7', N'V2 Cars - Police', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301268', N'Item_LootBox', N'7', N'V2 Cars - Emergency Response', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301278', N'Item_LootBox', N'7', N'V2 Gas Can', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301281', N'Item_LootBox', N'7', N'V2 Cars - Humvee', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301282', N'Item_LootBox', N'7', N'V2 Diner', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301283', N'Item_LootBox', N'7', N'V2 City - Survival spot', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301284', N'Item_LootBox', N'7', N'V2 Guns - Hunting', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301285', N'Item_LootBox', N'7', N'V2 Guns - Civilian', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301286', N'Item_LootBox', N'7', N'V2 Guns - Law', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301287', N'Item_LootBox', N'7', N'V2 Guns - Military Common', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301288', N'Item_LootBox', N'7', N'V2 Guns - Military Rare', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301289', N'Item_LootBox', N'7', N'V2 Guns - Snipers Civilian', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301290', N'Item_LootBox', N'7', N'V2 Cars - Military Heavy', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301291', N'Item_LootBox', N'7', N'V2 Farm - Supplies', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301293', N'Item_LootBox', N'7', N'V2 Rural - House - Supplies', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301295', N'Item_LootBox', N'7', N'V2 Police Station Supplies', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301297', N'Item_LootBox', N'7', N'V2 Hospital', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301298', N'Item_LootBox', N'7', N'V2 Post Office', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301299', N'Item_LootBox', N'7', N'V2 General Store', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301300', N'Item_LootBox', N'7', N'V2 Office - Rural', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301301', N'Item_LootBox', N'7', N'V2 Office - City', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301302', N'Item_LootBox', N'7', N'V2 Military - Roadblock', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301303', N'Item_LootBox', N'7', N'V2 Military - Base', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301304', N'Item_LootBox', N'7', N'V2 Military - Barracks', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301305', N'Item_LootBox', N'7', N'V2 City - House', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301306', N'Item_LootBox', N'7', N'V2 Guns - Snipers Military', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301307', N'Item_LootBox', N'7', N'StrongHold Pick Spawn', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301308', N'Item_LootBox', N'7', N'Cali Backpacks', N'All backpacks', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301309', N'Item_LootBox', N'7', N'Super Zombie Loot', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301310', N'Item_LootBox', N'7', N'V2 Vehicle Spawn', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301311', N'Item_LootBox', N'7', N'T80 Tank Spawn', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301385', N'Item_LootBox', N'7', N'CRAFT - Materials & Recipe', N'Crafting items', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301366', N'Craft_Ointment_01', N'50', N'Ointment', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301367', N'Craft_PVCPipe_01', N'50', N'PVC Pipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301368', N'Craft_PaintStirrer_01', N'50', N'Paint Stirrer', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301369', N'Craft_PropaneCanister_01', N'50', N'Propane Canister', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301370', N'Craft_Rope_01', N'50', N'Rope', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301371', N'Craft_RubberTubes_01', N'50', N'Rubber Tubes', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301372', N'Craft_SawBlade_01', N'50', N'Saw Blade', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null)
GO
GO
INSERT INTO [Items_Generic] ([ItemID], [FNAME], [Category], [Name], [Description], [Price1], [Price7], [Price30], [PriceP], [IsNew], [LevelRequired], [GPrice1], [GPrice7], [GPrice30], [GPriceP], [Weight], [ResWood], [ResStone], [ResMetal], [CPriceP], [lootchance], [itemFlag]) VALUES (N'301373', N'Craft_SewingKit_01', N'50', N'Sewing Kit', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301374', N'Craft_Soap_01', N'50', N'Soap', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301375', N'Craft_Sticks_01', N'50', N'Sticks', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301376', N'Craft_Sugar_01', N'50', N'Sugar', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301377', N'Craft_Syringe_01', N'50', N'Syringe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301378', N'Craft_Tar_01', N'50', N'Tar', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301379', N'Craft_Thermite_01', N'50', N'Thermite', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301380', N'Craft_Vinegar_01', N'50', N'Vinegar', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301386', N'Resource_Metal', N'52', N'Metal', N'special item. do not use it', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301387', N'Resource_Stone', N'52', N'Stone', N'specila item. do not use it', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301388', N'Resource_Wood', N'52', N'Wood', N'special item, do not use it', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301340', N'Craft_Recipe_01', N'51', N'Bandage Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301341', N'Craft_Recipe_01', N'51', N'Silencer Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301342', N'Craft_Recipe_01', N'51', N'Canoe Paddle Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301343', N'Craft_Recipe_01', N'51', N'Police Baton Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301344', N'Craft_Recipe_01', N'51', N'Gas Mask Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301345', N'Craft_Recipe_01', N'51', N'Shiv Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301346', N'Craft_Recipe_01', N'51', N'Spear Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301347', N'Craft_Recipe_01', N'51', N'Shrapnel Bomb Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301348', N'Craft_Recipe_01', N'51', N'TripWire Shrapnel Bomb recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301389', N'Craft_Recipe_01', N'51', N'Wooden Door Block Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301390', N'Craft_Recipe_01', N'51', N'Metal Wall Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301391', N'Craft_Recipe_01', N'51', N'Brick Wall Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301392', N'Craft_Recipe_01', N'51', N'Wood Wall Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301393', N'Craft_Recipe_01', N'51', N'Short Brick Wall Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301394', N'Craft_Recipe_01', N'51', N'Farm Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301395', N'Craft_Recipe_01', N'51', N'Solar Water Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301396', N'Craft_Recipe_01', N'51', N'Light Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301397', N'Craft_Recipe_01', N'51', N'Small Power Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301398', N'Craft_Recipe_01', N'51', N'Big Power Recipe', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'50', null), (N'301225', N'Item_LootBox', N'7', N'SPAWN - Police Car', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301382', N'Item_LootBox', N'7', N'Cali Ammo', N'All Ammo', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null), (N'301264', N'Item_LootBox', N'7', N'GUNS - Attachment Hunting', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', null, null)
GO
GO
COMMIT TRANSACTION
GO
-- ----------------------------
-- Procedure structure for WZ_LootGetData
-- ----------------------------
DROP PROCEDURE [WZ_LootGetData]
GO
CREATE PROCEDURE [WZ_LootGetData]
@in_LootID int
AS
BEGIN
SET NOCOUNT ON;
-- success
select 0 as ResultCode
-- report item category (loot box or mystery box)
declare @Category int = 0
select @Category=Category from Items_Generic where ItemID=@in_LootID
select @Category as 'Category'
-- report content
select * from Items_CaseData where LootID=@in_LootID order by Chance asc
END
GO
and put these files in the API and compile and publish
Files:
You must be registered to see links
You must be registered to see links
================================================================================
I will test later, I am out of time, but as soon as I get back I will make a video showing the result if aucontrario sorry.
Only extracts of this source code (SRC PandemicZ Code).
I extracted the code without anyone's help.
Just used the WinMarge program.
Code is not mine I give credit those who did. (Do not know who it was but so Solber edict that.)
Last edited: