Weis einer wie ich das einfügen soll?
Vorgegeben
Code
- //Aratýlýr
- if (true == IsMonster() && 2493 == GetMobTable().dwVnum)
- {
- if (NULL != pkKiller && NULL != pkKiller->GetGuild())
- {
- CDragonLairManager::instance().OnDragonDead( this, pkKiller->GetGuild()->GetID() );
- }
- else
- {
- sys_err("DragonLair: Dragon killed by nobody");
- }
- }
- ///Altýna Eklenir
- //black_event::drop_event(item kodu, item sayýsý, min sayi, max sayi, ownertime, yokolma suresi, karakter);
- if (IsMonster() and !IsStone() and !IsPC() and pkKiller and pkKiller->IsPC() and GetMobTable().bLevel > (pkKiller->GetLevel() - 10))
- {
- if (quest::CQuestManager::instance().GetEventFlag("black_ayisigi"))
- {
- black_event::drop_event(50011,1, 1, 350, 20, 30, pkKiller);
- }
- if (quest::CQuestManager::instance().GetEventFlag("new_xmas_event"))//Xmas
- {
- black_event::drop_event(50010,1, 1, 350, 20, 30, pkKiller);
- }
- if (quest::CQuestManager::instance().GetEventFlag("black_sonsuz"))
- {
- black_event::drop_event(38053,1, 1, 350, 20, 30, pkKiller);
- }
- if (quest::CQuestManager::instance().GetEventFlag("black_col"))
- {
- black_event::drop_event(38054,1, 1, 350, 20, 30, pkKiller);
- }
- if (quest::CQuestManager::instance().GetEventFlag("black_alti"))
- {
- black_event::drop_event(50037,1, 1, 350, 20, 30, pkKiller);
- }
- if (quest::CQuestManager::instance().GetEventFlag("black_futbol_drop"))
- {
- black_event::drop_event(50096,1, 1, 350, 20, 30, pkKiller);
- }
- }
Meine char_battle.cpp
Code
- CShopManager::instance().StopShopping(this);
- CloseMyShop();
- CloseSafebox();
- if (true == IsMonster() && 2493 == GetMobTable().dwVnum)
- {
- if (NULL != pkKiller && NULL != pkKiller->GetGuild())
- {
- CDragonLairManager::instance().OnDragonDead( this, pkKiller->GetGuild()->GetID() );
- }
- else
- {
- sys_err("DragonLair: Dragon killed by nobody");
- }
- }
- }
- struct FuncSetLastAttacked
- {
- FuncSetLastAttacked(DWORD dwTime) : m_dwTime(dwTime)
- {
- }
- void operator () (LPCHARACTER ch)
- {
- ch->SetLastAttacked(m_dwTime);
- }
- DWORD m_dwTime;
- };