-
Posts
227 -
Joined
-
Last visited
-
Days Won
5 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Endymion
-
-
11 hours ago, Endymion said:
Is CHARACTER removed from the unique map when killed?
-
But this is not a problem in this case. Is CHARACTER removed from the unique map when killed?
-
item->SetCount(MAX(0, item->GetCount() - loopCount)); if (item) item->Lock(false);
You should no longer use the "item" pointer after using the SetCount function, which may delete this object.
-
finally
- 2
-
What about db’s syserr and syslog?
-
CMappedFile File; LPCVOID pData; if (!CEterPackManager::Instance().Get(File, szFileName, &pData)) return; CMemoryTextFileLoader textFileLoader; textFileLoader.Bind(File.Size(), pData); for (DWORD i = 0; i < textFileLoader.GetLineCount(); ++i) { const std::string& c_rstLine = textFileLoader.GetLineString(i); vRaceSpecular.emplace_back(atoi(c_rstLine.c_str())); }
if (vRaceSpecular.find(GetRace()) != vRaceSpecular.cend()) fSpecular = 1.f;
- 1
-
You probably made timed equipment like weapon. Just disable REAL_TIME from these items and the error will be gone.
-
-
bool CPythonNetworkStream::RecvRefineInformationPacketNew()
(iiii) -> (iiOi)
rkRefineTable.cost -> PyLong_FromLongLong(rkRefineTable.cost)- 1
- 1
-
-
void CInputLogin::Entergame(LPDESC d, const char* data) { ... for (const auto& it : g_map_GM) ch->ChatPacket(CHAT_TYPE_COMMAND, "AddGameMaster %s", it.first.c_str()); }
- 2
-
It would be a good idea to write unsent messages to the database on shutdown, and read them on boot.
- 1
- 1
- 2
-
/saveati mapindex example
It'll create image in your core directory, open that and check if this position isn't red. Red color represens ATTR_BLOCK where you can't login and can't spawn monsters. -
struct FCountRaceInMap { size_t count; uint32_t dwVnum; FCountRaceInMap(uint32_t _dwVnum) : dwVnum(_dwVnum), count(0) {} void operator() (LPENTITY ent) { if (!ent->IsType(ENTITY_CHARACTER)) return; LPCHARACTER ch = static_cast<LPCHARACTER>(ent); if (ch->IsPC()) return; if (ch->GetRaceNum() == dwVnum) ++count; } }; size_t SECTREE_MANAGER::GetRaceCountInMap(long lMapIndex, uint32_t dwVnum) { LPSECTREE_MAP sectree = SECTREE_MANAGER::instance().GetMap(lMapIndex); if (!sectree) return 0; FCountRaceInMap f(dwVnum); sectree->for_each(f); return f.count; }
It should work, but I didn't test.
- 1
-
Look at
void CActorInstance::SetShape(DWORD eShape, float fSpecular)
-
4 hours ago, Paikei said:
Ahh, I thought it is Owasp's function. You must check in sending packet if there isn't missed adding to buffer things with increasing packet size.
-
Show us CPythonNetworkStream::CheckPacket
-
Which function are you using to open dungeon?
-
56 minutes ago, HITRON said:
bCount >= 0
56 minutes ago, HITRON said:bItemCount / bCount
- 1
-
I can recommend this guy. Truly professional and I have never had troubles with him.
- 1
-
Hi guys, I found weird problem with weapon's specular. I have 2 characters with Full Moon Sword+9 equipped and now when one of them will change weapon to FMS+0 specular will disapear for both characters.
I took a look on that on 2 different servers, both of them got this problem.
video:
- 1
-
self.scrollBar.* -> self.contentScrollbar.*
-
I think nowadays nobody does things like that in lua.
- 1
- 2
-
2 hours ago, TMP4 said:
Keep in mind you can't cancel it lol. If you make a clear regen function, it will clear the map's basic regen too.
If you want to cancel it would be better to use that map as a dungeon.
didn't test but in theory it can works
void regen_free_in_map(int32_t lMapIndex) { for (auto& pRegen = regen_list; pRegen != nullptr; pRegen = pRegen->next) { if (pRegen->lMapIndex == lMapIndex) { if (pRegen->prev) pRegen->prev->next = pRegen->next; if (pRegen->next) pRegen->next->prev = pRegen->prev; event_cancel(&pRegen->event); M2_DELETE(pRegen); } } }
- 2
Is still possible to install FreeBSD on OVH?
in Community Support - Questions & Answers
Posted
https://freebsdis.fun/installing-freebsd-in-ovh-dedicated/