Hallo,
Ist zwar nichts besonderes, aber vlt bringts jmd. was.
Nach dem ersten Login wird das EQ komplet angezogen (Anfänger EQ +9).
Im SRC game/src/questlua_pc.cpp
sucht nach :
und unter der kompletten Funktion das hinzufügen :
Code
- int pc_give_weapson(lua_State* L)
- {
- LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
- BYTE job = ch->GetJob();
- LPITEM item;
- switch (job)
- {
- case JOB_WARRIOR:
- {
- item = ITEM_MANAGER::instance().CreateItem(19);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(11209);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(12209);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(14009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(13009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(16009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(15009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(17009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(72701);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- }
- break;
- case JOB_ASSASSIN:
- {
- item = ITEM_MANAGER::instance().CreateItem(1009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(11409);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(12349);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(14009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(13009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(16009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(15009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(17009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(72701);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- }
- break;
- case JOB_SURA:
- {
- item = ITEM_MANAGER::instance().CreateItem(19);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(11609);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(12489);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(14009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(13009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(16009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(15009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(17009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(72701);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- }
- break;
- case JOB_SHAMAN:
- {
- item = ITEM_MANAGER::instance().CreateItem(11809);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(7009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(12629);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(14009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(13009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(16009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(15009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(17009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(72701);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- }
- break;
- case JOB_WOLFMAN:
- {
- item = ITEM_MANAGER::instance().CreateItem(6009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(21009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(21509);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(14009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(13009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(16009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(15009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(17009);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- item = ITEM_MANAGER::instance().CreateItem(72701);
- if (!item || !item->EquipTo(ch, item->FindEquipCell(ch)))
- M2_DESTROY_ITEM(item);
- }
- break;
- }
- }
sucht nach :
und füngt darunter das ein :
danach compilen.
Beispiel Quest zum Aufrufen der neuen Questfunktion: