Jump to content

ManiacRobert

Banned
  • Posts

    269
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    0%

Everything posted by ManiacRobert

  1. @Hades ✔, please, don't tag me for your shits. Talking about shits.
  2. All public offlineshop's have memory leak and at final server will crash with 'Segmentation Fault (core dumped)", don't use any public offlineshop, but, if you have general knowledge about memset and moving all querry to smart pointers, you're good, but remove edit function and don't use ken.
  3. After if (pItemGroup->GetValue(i, "price_type", shopItems[i].price_type) && pItemGroup->GetValue(i, "price_vnum", shopItems[i].price_vnum) && shopItems[i].price_type == 3) { if (shopItems[i].price_type > 4 || shopItems[i].price_type < 1) { sys_err("row(%d) of group items of group %s price_type is wrong!", i, pNode->GetNodeName().c_str()); return false; } TItemTable * pProto = ITEM_MANAGER::instance().GetTable(shopItems[i].price_vnum); if (!pProto) { sys_err("NOT GET ITEM PROTO %d", shopItems[i].price_vnum); return false; } } You can add this to clean the memory memset(&getval, 0, sizeof(getval));
  4. PointChange(POINT_EXP, -need_exp); to PointChange(POINT_EXP, -(int)need_exp)
  5. item.SelectItem(itemVnum) self.__ModelPreview(itemVnum, 2, item.GetValue(3)) You can do something like that
  6. People need everything done, only a few people optimize their source, while others care about only money.
  7. WORD CHARACTER::GetOriginalPart(BYTE bPartPos) const { switch (bPartPos) { case PART_MAIN: if (!IsPC()) return GetPart(PART_MAIN); else return m_pointsInstant.bBasePart; case PART_HAIR: return GetPart(PART_HAIR); #ifdef __WEAPON_COSTUME_SYSTEM__ case PART_WEAPON: return GetPart(PART_WEAPON); #endif default: return 0; } }
  8. Hi, i'm searching a 3d modeller to create a npc from scratch with bones, animations etc, that's my skype address : [email protected].
  9. Check with player account, it's feature from marty source.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.