Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // @Search:
- #include "input.h"
- // @Add after:
- #ifdef ENABLE_DUNGEON_INFO_SYSTEM
- #include "DungeonInfo.h"
- #endif
- // @Search:
- int CInputMain::Chat(LPCHARACTER ch, const char * data, size_t uiBytes)
- // @Add above:
- #ifdef ENABLE_DUNGEON_INFO_SYSTEM
- void CInputMain::DungeonTeleport(LPCHARACTER ch, const char* c_pData)
- {
- if (!ch->GetDesc())
- return;
- TPacketGCTeleport* p = (TPacketGCTeleport*)c_pData;
- ch->WarpSet(p->mapCoords[0] * 100, p->mapCoords[1] * 100);
- }
- void CInputMain::DungeonRank(LPCHARACTER ch, const char* c_pData)
- {
- if (!ch->GetDesc())
- return;
- TPacketGCDungeonRank* p = (TPacketGCDungeonRank*)c_pData;
- DungeonInfo::instance().UpdateDungeonRank(ch, p->dungeonID, p->rankType);
- }
- #endif
- // @Search:
- case HEADER_CG_HACK:
- Hack(ch, c_pData);
- break;
- // @Add:
- #ifdef ENABLE_DUNGEON_INFO_SYSTEM
- case HEADER_GC_TELEPORT:
- DungeonTeleport(ch, c_pData);
- break;
- case HEADER_GC_RECEIVE_RANK:
- DungeonRank(ch, c_pData);
- break;
- #endif
Add Comment
Please, Sign In to add comment