Jump to content

Torch

Member
  • Posts

    4
  • Joined

  • Last visited

  • Feedback

    0%

About Torch

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Torch's Achievements

Enthusiast

Enthusiast (6/16)

  • First Post
  • One Year In
  • Dedicated
  • One Month Later
  • Reacting Well

Recent Badges

0

Reputation

  1. Where could the problem be? When I add this, everything runs fine, but when I try to create an offline shop, I put an item in, open the shop, and then the item disappears, and shortly after, the shop closes. I assume that the error will be here LPITEM CHARACTER::GetItem(TItemPos Cell) const { if (!m_pointsInstant.playerSlots) return nullptr; if (!IsValidItemPosition(Cell)) return NULL; WORD wCell = Cell.cell; BYTE window_type = Cell.window_type; // Kontrola rozsahu hodnoty wCell if (wCell >= INVENTORY_MAX_NUM) { sys_err("CHARACTER::GetItem: invalid cell position %d (window_type %d)", wCell, window_type); return NULL; } switch (window_type) { case INVENTORY: case EQUIPMENT: if (wCell >= INVENTORY_AND_EQUIP_SLOT_MAX) { sys_err("CHARACTER::GetInventoryItem: invalid item cell %d", wCell); return NULL; } return m_pointsInstant.playerSlots->pItems[wCell]; case DRAGON_SOUL_INVENTORY: if (wCell >= DRAGON_SOUL_INVENTORY_MAX_NUM) { sys_err("CHARACTER::GetInventoryItem: invalid DS item cell %d", wCell); return NULL; } return m_pointsInstant.playerSlots->pItems[wCell]; default: sys_err("CHARACTER::GetItem: unknown window_type %d", window_type); return NULL; } return NULL; } sysser: db: SYSERR: Nov 11 00:29:08 :: ChildLoop: AsyncSQL: query failed: Data truncated for column 'window' at row 1 (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum, dwVnum) VALUES(320024369, 0, 0, 0, 1, 11058, 0) errno: 1265) game: cannot find item on pos (%d, %d) (name: %s)
×
×
  • 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.