Hello, I have two else if.. for red chips and for penya. This is for the red chips:
This is for the penya:
I do not understand why the one for the penya doesn't make the item show up but the RC items shows up. Been figuring out for hours now, any thoughts and ideas would be really appreciated.
This is the inside of the MaFL_Tamer btw.
This one for the MaFL_Is:
I am so confused what I did wrong :|
Anyways if you want to ask for my Waforu NPC:
Bump! I still need help.
--
Fixed, thread may be closed now.
Code:
else if (script.Token == "AddRCShop")
{
script.GetToken();
int nSlot = script.GetNumber(); script.GetToken();
DWORD dwId = script.GetNumber(); script.GetToken();
DWORD dwReferValue1;
if (script.Token == ",") {
dwReferValue1 = script.GetNumber();
if (dwReferValue1 > INT_MAX) {
dwReferValue1 = INT_MAX;
}
ItemProp* pItemProp = prj.GetItemProp(dwId);
if (pItemProp) {
pItemProp->dwReferValue1 = dwReferValue1;
pItemProp->dwCost = 4;
pItemProp->dwShopAble = 1;
}
}
script.GetToken();
LPVENDOR_ITEM pVendorItem = new VENDOR_ITEM;
pVendorItem->m_dwItemId = dwId;
lpCharacter->m_venderItemAry2[nSlot].Add(pVendorItem);
}
Code:
else if (script.Token == "AddShopItem")
{
script.GetToken(); // (
int nSlot = script.GetNumber(); script.GetToken(); //
DWORD dwId = script.GetNumber(); script.GetToken();
DWORD dwItemCost;
if (script.Token == ",")
{
dwItemCost = script.GetNumber();
ItemProp* pItemProp = prj.GetItemProp(dwId);
if (pItemProp) {
pItemProp->dwCost = dwItemCost;
pItemProp->dwShopAble = 1;
}
}
script.GetToken(); //
LPVENDOR_ITEM pVendorItem = new VENDOR_ITEM;
pVendorItem->m_dwItemId = dwId;
lpCharacter->m_venderItemAry3[nSlot].Add(pVendorItem);
}
This is the inside of the MaFL_Tamer btw.
This one for the MaFL_Is:
I am so confused what I did wrong :|
Anyways if you want to ask for my Waforu NPC:
Bump! I still need help.
--
Fixed, thread may be closed now.