![]() |
L2Extend level 85 bug
No, //setkarma works just fine.
afaik "//setparam karma" doesnt exists, that's why its changing your level. anyway, this thread is about the lvl85 system, not about builder commands :P Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-03-2009, 04:44 PM. Открыть источник. |
L2Extend level 85 bug
Making a karma giving builder cmd is easy, i made one if you want
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-03-2009, 05:52 PM. Открыть источник. |
L2Extend level 85 bug
i think the most important thing is learning, i see the code from fyyre, and im learning, yep just a noob reading c++ and asm for help in this project.
i working in skilldata, for kamael, and a couple of op condition. Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-03-2009, 06:30 PM. Открыть источник. |
L2Extend level 85 bug
No, that's not a problem, the problem right now is that when you try to create a clan however you do it, server crashes, after server is back on you have your clan :)
Here I stop my offtopic, sorry about that. Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-03-2009, 06:30 PM. Открыть источник. |
L2Extend level 85 bug
IOThread [1][78] (ahehe): void IOThread_common(void *arglist) -> void IOThread_common(void *arglist) -> void IOThread_common(void *arglist) -> void IOThread_common(void *arglist) -> void IOThread_common(void *arglist) -> static bool ReplyCreatePledge(CDBSocket *socket, const unsigned char *packet) -> CPledgeSystem::HandleCreatedPledge -> CDB::RequestCreateExtPledgeInfo -> void CDB::Send(const char * format, ...) const
Lock Stack : Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-03-2009, 06:50 PM. Открыть источник. |
L2Extend level 85 bug
are you guys using the newest CachedExt and sql updates from COEP? clan system works for me :P (not fully, but it's playable)
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-03-2009, 07:04 PM. Открыть источник. |
L2Extend level 85 bug
are you guys using the newest CachedExt and sql updates from COEP? clan system works for me :P (not fully, but it's playable)
I'm using the latest updates yes. :) Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-03-2009, 07:06 PM. Открыть источник. |
L2Extend level 85 bug
C4 clan system.
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-03-2009, 10:03 PM. Открыть источник. |
L2Extend level 85 bug
i can create clans and level them to lvl 10with rev 418
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-04-2009, 02:35 AM. Открыть источник. |
L2Extend level 85 bug
;) There was a problem with loading pleedge by name, i've added fix for that to cached ext.
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-04-2009, 05:30 AM. Открыть источник. |
L2Extend level 85 bug
;) There was a problem with loading pleedge by name, i've added fix for that to cached ext.
//create_pledge (and from NPC) still crashes the server. :) Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-04-2009, 12:21 PM. Открыть источник. |
L2Extend level 85 bug
Couse someone messed CDB class in ext...
Anyway what's the point of instance if it can be static func, simpler and less code. However the problem was that someone when adding instace forgot to fix Send call inside function so format was a null pointer. Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-04-2009, 06:20 PM. Открыть источник. |
L2Extend level 85 bug
There was no announcement.
The private CEOP continued after public svn went dead, but only briefly. Roxaz, Kation, Fr3dBr, FidoW and myself continued to work on it. To make long story short, this went nowhere and project is now totally dead. -Fyyre Kation i did read that the project continuos by fr3d & fidow .. maybe im wrong, all that happens its that we are waiting news from rpg-club for see his shit Maybe some retarded or busy person like me didnt see the famous announce http://pixelterror.ru/plus.swf Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-04-2009, 11:15 PM. Открыть источник. |
L2Extend level 85 bug
What I liked (and still like) in this project is that it actually can make a real dev community (not a bag of greedy snakes) of the PP's community.
People interested in that project are not not the ones who are lurking on PP to leech latest dvamp's dll for their uber serbar. They are people who are indeed interested in working on a common project or willing to learn, just as I do. Since PP was hacked, people started to share again, there are reshares, yes but still, you can find code bits made for l2extend, showing people's interest in it. I truly think (and dmx will tell me to quit my dreamy world again I think) that project could help people interested in extendarz and that a true community could be built upon it. That's why I think you or anyone who worked on it, should commit what was done on the private branch. People are still working on it, L2Extend's not dead. Sure we can't expect people to spend their life working on this, we can't expect people to share everything (because l2off servers are competing for the greater lulz) but well, even if it's going forward slowly, it's still going forward :) so plz plz... gib adenas (pontoise samedi) Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-05-2009, 02:23 AM. Открыть источник. |
L2Extend level 85 bug
What I liked (and still like) in this project is that it actually can make a real dev community (not a bag of greedy snakes) of the PP's community.
People interested in that project are not not the ones who are lurking on PP to leech latest dvamp's dll for their uber serbar. They are people who are indeed interested in working on a common project or willing to learn, just as I do. Since PP was hacked, people started to share again, there are reshares, yes but still, you can find code bits made for l2extend, showing people's interest in it. I truly think (and dmx will tell me to quit my dreamy world again I think) that project could help people interested in extendarz and that a true community could be built upon it. That's why I think you or anyone who worked on it, should commit what was done on the private branch. People are still working on it, L2Extend's not dead. Sure we can't expect people to spend their life working on this, we can't expect people to share everything (because l2off servers are competing for the greater lulz) but well, even if it's going forward slowly, it's still going forward :) so plz plz... gib adenas (pontoise samedi) agree+1. Now i just don't know why pplz/Fred founded this project?why did they/he created this,but abandoned it? if u were preparing to abandon this project at the beginning,why did u founded it?thats just waste time.isn't it? if u think that someone utilize this stuff and privated it or made his own ext then sell it for money.yes thats rly disappointing,angry and tired....so that u give it up?thats the reasons of u closed this project? i only wanted to say if u wanna to end this situation.complete this project is the best way.at that moment everyone will know there is a good l2server in PP.no pplz wanna to sell anythings and no pplz want to buy somethings. Of course,another good way is del everything about this project.let PP calmed down. im not criticism someone.im just tired that pplz argueing with each other on everyday. maybe someone said to me: u guyz dont shared nothing.what do u contribute?why did't u complete this project.haha,nothing,i have not enough power to complete this. u could say that im a leecher,noob,stupid man.i just don't care anymore. More strength brings more resposibilities! sry my bad eng. Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-06-2009, 01:15 AM. Открыть источник. |
L2Extend level 85 bug
funny reading this all hehe. no community, not stong enough, blah blah blah. bullshit i should say.. if any of you want to do something - just do it. like two years ago noob roxaz had no clue about any of l2off shit, and noob roxaz just started digging and doing shit only for fun. and guess what, noob roxaz is a little less noob now. and now when this private ext failed im moving on to something more interesting as i feel like i took my share from this already. and you all should either do what you desire or move on because reading pp and complaining wont get anyone anywhere.
would be cool if there were ppl who would dedicate themselves to this l2extend project. i guess more than anything in the world i would like to see people wishing to learn sincerely and doing things to achieve that knowledge, but longer i live more i understand that most people either do not want to learn or are not capable to and that saddens me so much. thats the reason why privately developed and abandoned code is still not in the public. whats use if someone will leech it and use without basic understanding? why would i want countless hours of our work to be just taken and used? it would be like someone used us to achieve his goal. thats the reason bits and peaces of code are shared rather than full source code - its a noob protection. only smart enough will find that stuff useful. serenity my friends. Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-06-2009, 02:58 AM. Открыть источник. |
L2Extend level 85 bug
roxaz,could u tell me item slots table?i used ur code about item slot and want to fix 'back' slot.but dont have any hints.
sry my bad eng. ps.seems there is another forum about l2.i dont remember the site. www.devinggames.com?....... Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-06-2009, 09:04 AM. Открыть источник. |
L2Extend level 85 bug
roxaz,could u tell me item slots table?i used ur code about item slot and want to fix 'back' slot.but dont have any hints.
sry my bad eng. ps.seems there is another forum about l2.i dont remember the site. www.devinggames.com?....... extend the slot_type into itemdata.txt and everything else is easy to be fixed. Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-06-2009, 12:17 PM. Открыть источник. |
L2Extend level 85 bug
extend the slot_type into itemdata.txt and everything else is easy to be fixed.
slot_bit_type={back} ??? www.gamingdevs.com closed??? Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-06-2009, 11:32 PM. Открыть источник. |
L2Extend level 85 bug
does anyone work on l2extend to add augmentation codes to because i badly need that i tryed myself but im starter in C++ dont laugh of me
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-07-2009, 07:21 AM. Открыть источник. |
L2Extend level 85 bug
After lvl 85 was implemented the server crashes while trying to change a subclass.
- reported by Andy. Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-09-2009, 06:39 PM. Открыть источник. |
L2Extend level 85 bug
The website is www.gaming-devs.com you forget to add the "-" between gaming and devs.
Im a bit noob in coding this but i learn fast, cause i like and i need it. Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-10-2009, 12:59 AM. Открыть источник. |
L2Extend level 85 bug
After lvl 85 was implemented the server crashes while trying to change a subclass.
- reported by Andy. Where it crash? What kind of error server generates, are there some errors in log? What crashed first Cached, l2server or l2npc? I will try to test it by myself, but if you have some logs for this error, please post them somewhere. Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-10-2009, 04:52 AM. Открыть источник. |
L2Extend level 85 bug
Where it crash? What kind of error server generates, are there some errors in log? What crashed first Cached, l2server or l2npc?
I will try to test it by myself, but if you have some logs for this error, please post them somewhere. According to the logs (see attachment) l2server crashes first, and then l2npc does Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-10-2009, 08:53 AM. Открыть источник. |
L2Extend level 85 bug
Fixed, i hope.
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-10-2009, 11:42 AM. Открыть источник. |
L2Extend level 85 bug
What html to use for 436 revision?
Also what with cursed weapon? Like as code it is written, and it would be desirable to learn about Bug in the menu of players... (boots in air) And so nice! Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-10-2009, 11:57 AM. Открыть источник. |
L2Extend level 85 bug
Fixed, i hope.
Thanks, it's work. Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-10-2009, 10:33 PM. Открыть источник. |
L2Extend level 85 bug
I've done change weapon, it would be tested tonight.
Hope someone didn't work on it. Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-12-2009, 03:52 AM. Открыть источник. |
L2Extend level 85 bug
i also have in plan to fix change weapon but later now im dealing with html part and npc's ill post update html files and npcs asap btw if you finish change weapon that would be nice to share with us this way i wont work to doit:D
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-12-2009, 04:11 AM. Открыть источник. |
L2Extend level 85 bug
Well of course I'm going to do so. Now I'm waiting for a friends to test it to see if, at least, it's working the way I want.
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-12-2009, 04:16 AM. Открыть источник. |
L2Extend level 85 bug
i think that would be nice to make a svn repo for l2extend an public svn for all to add fix with goals i think Aldryss did one allready if i remember well that woul be nice if Aldryss start working on this svn and add us all to contribute to this pack maybe im not so good in C++ but i can handle easy the part of manual work and i have a strong mind
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-12-2009, 05:27 AM. Открыть источник. |
L2Extend level 85 bug
The current svn is the public one. And ofc evrything is going to be added in there.
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-12-2009, 06:10 AM. Открыть источник. |
L2Extend level 85 bug
i think that would be nice to make a svn repo for l2extend an public svn for all to add fix with goals i think Aldryss did one allready if i remember well that woul be nice if Aldryss start working on this svn and add us all to contribute to this pack maybe im not so good in C++ but i can handle easy the part of manual work and i have a strong mind
I think that if you want to contribute just write Fr3DBr, that you want to be added as contributor, nobody else has this kind of privilege. Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-12-2009, 07:19 AM. Открыть источник. |
L2Extend level 85 bug
Haven't tested any of this. Can't contribute from where I am trough svn, nor I do have a test server.
Preventing herb problem when herb aren't immediate effects in itemdata (Pet can't use it) CPet.h bool Usable(CItem *pItem); CPet.cpp bool CPet::Usable(CItem *pItem) { typedef bool (*_USABLE)(CPet *, CItem *); _USABLE xUsable = (_USABLE)0x0074aeb0; return xUsable(this, pItem); } CGameEvent.h static bool ItemUsable(CPet *pPet, CItem *pItem); CGameEvent.cpp WriteInstruction(0x4FA3E0, (INT32)CGameEvents::ItemUsable, 0, 0xE8); ItemUsable.cpp within Parsed Events /* This file is part of L2Extend. L2Extend is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. L2Extend is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with L2Extend. If not, see <http://www.gnu.org/licenses/>. You May Not Make Commercial Use of any of our content, and any kind of newer implementations will be need to be shared and commited. */ #include "CGameEvents.h" INT32 nItemUsable = 0; bool CGameEvents::ItemUsable(CPet *pPet, CItem *pItem) { L2SERVER_SHARED_GUARD(nItemUsable); TLS_TRACE_BEGIN; if (pPet->IsValidPet() && pItem->IsValidItem()) if (pItem->IsHerbItem()) return true; return pPet->Usable(pItem); TLS_TRACE_END; } C5 better regen while sitting for player < level 40 dunno if mana regen should be better too. CIconAction.cpp case 0x00: // Sit/Stand { int stand = (int)!pUser->IsStanding(); if ((bool)stand) { if (pUser->SD->nLevel < 40) { pUser->SD->_fHpRegen = pUser->SD->_fHpRegen / WHATEVER; pUser->ValidateHPRegen(); } } else { if (pUser->SD->nLevel < 40) { pUser->SD->_fHpRegen = pUser->SD->_fHpRegen * WHATEVER; pUser->ValidateHPRegen(); } } typedef void(__fastcall *_SIST)(CSocket*, int *); _SIST SitStand = (_SIST) 0x0086D8E0L; SitStand(pUser->Socket, &stand); } break; Change weapon first draft want to know if this work before doing else CChangeWeaponData.cpp /* This file is part of L2Extend. L2Extend is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. L2Extend is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with L2Extend. If not, see <http://www.gnu.org/licenses/>. You May Not Make Commercial Use of any of our content, and any kind of newer implementations will be need to be shared and commited. */ #include "CItem.h" #include "CLog.h" #include <sstream> #include <fstream> #include "CChangeWeaponSystem.h" void CChangeWeaponSystem::Initialize() { CChangeWeaponSystem::LoadChangeWeaponData(); } CChangeWeaponData::CChangeWeaponData() { old_weapon_id = 0; new_weapon_id = 0; } void CChangeWeaponSystem::LoadChangeWeaponData() { string fileName = "..\\script\\change_weapon_data.txt"; ifstream file; file.open(fileName.c_str()); if (file) { string lineread; while(getline(file, lineread)) { stringstream ss(lineread); CChangeWeaponData *changeWeaponData = new CChangeWeaponData(); while (!ss.eof()) { string data; ss >> data; CLog::AddAnsi(2, "Loading change_weapon_data.txt"); if (data.size() == 0) break; if (data.find("old_weapon_id=") != string::npos) { changeWeaponData->old_weapon_id = atoi(data.substr(13, data.size() - 13).c_str()); } else if (data.find("new_weapon_id=") != string::npos) { changeWeaponData->new_weapon_id = atoi(data.substr(13, data.size() - 13).c_str()); } else { CLog::AddAnsi(2, "Unknown information in change_weapon_data.txt: '%s'", data.c_str()); } } m_ChangeWeaponData[changeWeaponData->old_weapon_id] = changeWeaponData; } } else { } file.close(); } CChangeWeaponData.h /* This file is part of L2Extend. L2Extend is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. L2Extend is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with L2Extend. If not, see <http://www.gnu.org/licenses/>. You May Not Make Commercial Use of any of our content, and any kind of newer implementations will be need to be shared and commited. */ #pragma once #include "Global.H" using namespace std; class CChangeWeaponData { public: CChangeWeaponData(); int old_weapon_id; int new_weapon_id; }; static map<int, CChangeWeaponData *> m_ChangeWeaponData; class CChangeWeaponSystem { public: static void Initialize(); private: static void LoadChangeWeaponData(); }; CSkillEffect_i_change_weapon.h #pragma once /* This file is part of L2Extend. L2Extend is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. L2Extend is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with L2Extend. If not, see <http://www.gnu.org/licenses/>. You May Not Make Commercial Use of any of our content, and any kind of newer implementations will be need to be shared and commited. */ #include "Global.H" class CObject; class CCreature; class CSkillInfo; class CSkillEffect_i_change_weapon : public CBaseSkillEffect { // Parameters int randomId; public: virtual void CalcSuccess(CCreature *pSkillUser, CObject *pTarget, CSkillInfo *pSkillInfo, CSkillAction2 *pAction) {}; virtual void Instant(CCreature *pSkillUser, CObject *pTarget, CSkillInfo *pSkillInfo, CSkillAction2 *pAction, double distance); virtual void Unk() {}; virtual void Tick() {}; virtual double Unk2() { return 0.0; }; virtual bool CheckPumpCondition(CObject* pTarget) { return true; }; virtual void Pump(CObject* pTarget, CSkillInfo* pSkillInfo) {}; virtual bool Consume(CCreature *pCreature, double param2) { return true; }; virtual bool CheckResisted() { return false; }; /* Extended VMT */ CSkillEffect_i_change_weapon(bool bInstallVMT); CSkillEffect_i_change_weapon(int arg1) {randomId = arg1; }; }; CSkillEffect_i_change_weapon.cpp /* This file is part of L2Extend. L2Extend is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. L2Extend is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with L2Extend. If not, see <http://www.gnu.org/licenses/>. You May Not Make Commercial Use of any of our content, and any kind of newer implementations will be need to be shared and commited. */ #include "CSkillEffect_i_change_weapon.h" CSKILL_EFFECT_INSTALL_VMT(CSkillEffect_i_change_we apon) INT32 nCSkillEffect_i_change_weaponInstant = 0; void CSkillEffect_i_change_weapon::Instant(CCreature *pSkillUser, CObject *pTarget, CSkillInfo *pSkillInfo, CSkillAction2 *pAction, double distance) { L2SERVER_SHARED_GUARD(nCSkillEffect_i_change_weapo nInstant); TLS_TRACE_BEGIN; pSkillUser->Lock(__FILEW__, __LINE__); if(pSkillUser->IsValidUser()) { CSharedItemData * pSharedItemData = pSkillUser->GetEquipedWeapon(); int itemIndex = pSharedItemData->itemIndex; CItem* pItem = pSkillUser->GetInventory()->GetItemByIndex(itemIndex); if(pItem->IsValidItem()) { int nItemId = pSharedItemData->nClassID; for(map<int, CChangeWeaponData *>::iterator Iter = m_ChangeWeaponData.begin(); Iter!=m_ChangeWeaponData.end(); Iter++) { CChangeWeaponData *pChangeWeaponData = Iter->second; if(pChangeWeaponData) { if(pChangeWeaponData->old_weapon_id == nItemId) { pSkillUser->UnequipItem(7); CDB::RequestDestroyItem(pItem, 1, (User*)pSkillUser); pSkillUser->AddItemToInventory(pChangeWeaponData->new_weapon_id, 1); } } } } } pSkillUser->Unlock(); TLS_TRACE_END; }; EDIT : change_weapon_data.txt converted from L2J by Aldryzz Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-15-2009, 12:40 AM. Открыть источник. |
L2Extend level 85 bug
Small start on Duel. Not test like above.
//CObjectEx.h struct DuelInfo { bool bInDuel; User* pUser; bool bIsPartyDuel; int nCurrentCP; int nCurrentHP; int nCurrentMP; }; DuelInfo *pDuelInfo //CObjectEx::CObjectEx(CCreature *pCreature) this->pDuelInfo = new DuelInfo(); this->pDuelInfo->bInDuel = false; this->pDuelInfo->pUser = NULL; this->pDuelInfo->bIsPartyDuel = false; this->pDuelInfo->nCurrentCP = 0; this->pDuelInfo->nCurrentHP = 0; this->pDuelInfo->nCurrentMP = 0; //CObjectEx::~CObjectEx() delete this->pDuelInfo; //CRecvPackets::UserExPacket(CSocket *pSocket, CSPacket *pPacket, int PacketID, int Lenght) case 0x50: { CDuelSystem::RequestDuelStart(pSocket, pPacket); break; } case 0x51: { CDuelSystem::RequestDuelAnswerStart(pSocket, pPacket); break; } //CRecvPackets::ConfirmDlg(CSocket *pSocket, CSPacket *pPacket, int PacketID, int Length) case 1938: { int nAnswer = pPacket->GetDWord(0x04); if(nAnswer) CDuelSystem::RequestDuelAnswerStart(pSocket,pPacke t); else CDuelSystem::DeclineDuel(pSocket,pPacket); TLS_TRACE_END; return false; break; } /* This file is part of L2Extend. L2Extend is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. L2Extend is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with L2Extend. If not, see <http://www.gnu.org/licenses/>. You May Not Make Commercial Use of any of our content, and any kind of newer implementations will be need to be shared and commited. */ #pragma once #include "Global.H" class CDuelSystem { public: static bool RequestDuelStart(CSocket *pSocket, CSPacket *pPacket); static bool RequestDuelAnswerStart(CSocket *pSocket, CSPacket *pPacket); static bool CanDuel(User* pUser); static void DeclineDuel(CSocket *pSocket, CSPacket *pPacket); static void Start(User *pUser,User *pRequest); static void SaveUser(User *pUser); static void RestoreUser(User *pUser); }; /* This file is part of L2Extend. L2Extend is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. L2Extend is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with L2Extend. If not, see <http://www.gnu.org/licenses/>. You May Not Make Commercial Use of any of our content, and any kind of newer implementations will be need to be shared and commited. */ #include "CDuelSystem.h" bool CDuelSystem::RequestDuelStart(CSocket *pSocket, CSPacket *pPacket) { if(pSocket->user->IsValidUser()) { wstring wPlayerName = pPacket->GetWString(0x00); int nPartyDuel = pPacket->GetDWord(((wPlayerName.size()*2)+2)); // Using the name of other to retrieve target instead of this. User * pTarget = (User*)L2ServerFunctions::GetObject(pSocket->user->SD->nTargetObjId); if(pTarget->IsValidUser() && pTarget != pSocket->user) { if(!pTarget->SD->nInPeaceZone && !pSocket->user->SD->nInPeaceZone) { if(pTarget->SD->nIsAlive && pSocket->user->SD->nIsAlive) { if(!pSocket->user->SD->nInBattleField && !pTarget->SD->nInBattleField) { if(!pTarget->InCombat() && !pSocket->user->InCombat()) { if(!pTarget->IsNowTrade() && !pTarget->SD->nStoreMode && !pSocket->user->IsNowTrade() && !pSocket->user->SD->nStoreMode) { if(!pTarget->SD->pObjectEx->pDuelInfo->bInDuel && !pSocket->user->SD->pObjectEx->pDuelInfo->bInDuel) { if(nPartyDuel == 0) { pTarget->Lock(__FILEW__, __LINE__); pTarget->SD->pObjectEx->pDuelInfo->pUser = pSocket->user; pTarget->SD->pObjectEx->pDuelInfo->bInDuel = true; pTarget->SD->pObjectEx->pDuelInfo->bIsPartyDuel = false; pTarget->Unlock(); pSocket->user->Lock(__FILEW__, __LINE__); pSocket->user->SD->pObjectEx->pDuelInfo->pUser = pTarget; pSocket->user->SD->pObjectEx->pDuelInfo->bInDuel = true; pSocket->user->SD->pObjectEx->pDuelInfo->bIsPartyDuel = false; pSocket->user->Unlock(); CSPacket packet; packet.set(1024); packet << (BYTE)0xED << (INT32)1938 << (INT32)2 << (INT32)0; packet << (wstring)pSocket->user->SD->wszName << (INT32)nPartyDuel; pTarget->Socket->Send("b", packet.size(), packet.buffer(false)); pSocket->user->Socket->Send("cdddS", 0x64, 1927, 1, 0, pTarget->SD->wszName); } else { CParty *pParty = pSocket->user->GetParty(); CParty *pTParty = pTarget->GetParty(); if(pTParty == NULL) { pSocket->SendSystemMessage(1937); return false; } if(pParty != pTParty) { //pParty->GetAllMembers(); //pTParty->GetAllMembers(); } else pSocket->SendSystemMessage(1940); } } else pSocket->SendSystemMessage(1940); } else pSocket->SendSystemMessage(1940); } else pSocket->SendSystemMessage(1940); } else pSocket->Send("cdddS", 0x64, 1941, 1, 0, pTarget->SD->wszName); } else pSocket->Send("cdddS", 0x64, 1931, 1, 0, pTarget->SD->wszName); } else pSocket->SendSystemMessage(1940); } else pSocket->SendSystemMessage(1926); } return false; } bool CDuelSystem::RequestDuelAnswerStart(CSocket *pSocket, CSPacket *pPacket) { User *pUser = pSocket->user; if(pUser->IsValidUser()) { User *pRequest = pUser->SD->pObjectEx->pDuelInfo->pUser; if(pRequest->IsValidUser()) { pSocket->Send("cdddS", 0x64, 1930, 1, 0, pRequest->SD->wszName); pRequest->Socket->Send("cdddS", 0x64, 1929, 1, 0, pUser->SD->wszName); CDuelSystem::Start(pUser,pRequest); } } return false; } bool CDuelSystem::CanDuel(User* pUser) { if(pUser->IsValidUser()) { if(pUser->SD->nIsAlive) { if(!pUser->SD->nInBattleField) { if(!pUser->InCombat()) { if(!pUser->IsNowTrade() && !pUser->SD->nStoreMode) { if(!pUser->SD->nInPeaceZone) return true; else return false; } else return false; } else return false; } else return false; } else return false; } else return false; } void CDuelSystem::DeclineDuel(CSocket *pSocket, CSPacket *pPacket) { User *pUser = pSocket->user; if(pUser->IsValidUser()) { User *pRequest = pUser->SD->pObjectEx->pDuelInfo->pUser; if(pRequest->IsValidUser()) { pRequest->Socket->Send("cdddS", 0x64, 1931, 1, 0, pRequest->SD->wszName); //Reseting pDuelInfo pRequest->SD->pObjectEx->pDuelInfo->bInDuel = false; pRequest->SD->pObjectEx->pDuelInfo->pUser = NULL; pRequest->SD->pObjectEx->pDuelInfo->bIsPartyDuel = false; pUser->SD->pObjectEx->pDuelInfo->bInDuel = false; pUser->SD->pObjectEx->pDuelInfo->pUser = NULL; pUser->SD->pObjectEx->pDuelInfo->bIsPartyDuel = false; } } } void CDuelSystem::Start(User *pUser,User *pRequest) { CDuelSystem::SaveUser(pUser); CDuelSystem::SaveUser(pRequest); //Timer shit bleh bleh here is the hard part to code without test :) } void CDuelSystem::SaveUser(User *pUser) { if(pUser->IsValidUser()) { pUser->SD->pObjectEx->pDuelInfo->nCurrentCP = pUser->SD->fCP; pUser->SD->pObjectEx->pDuelInfo->nCurrentHP = pUser->SD->fHP; pUser->SD->pObjectEx->pDuelInfo->nCurrentMP = pUser->SD->fMP; pUser->SD->fCP = pUser->SD->fMaxCP; pUser->SD->fHP = pUser->SD->fMaxHP; pUser->SD->fMP = pUser->SD->fMaxMP; CStatusUpdate *pStatus = new CStatusUpdate(pUser->SD->nObjectID); pStatus->AddField(STATUSUPDATE_CUR_CP, pUser->SD->fCP); pStatus->AddField(STATUSUPDATE_CUR_HP, pUser->SD->fHP); pStatus->AddField(STATUSUPDATE_CUR_MP, pUser->SD->fMP); pStatus->ProcessUpdate(pUser); delete pStatus; } } void CDuelSystem::RestoreUser(User *pUser) { if(pUser->IsValidUser()) { pUser->SD->fCP = pUser->SD->pObjectEx->pDuelInfo->nCurrentCP; pUser->SD->fHP = pUser->SD->pObjectEx->pDuelInfo->nCurrentHP; pUser->SD->fMP = pUser->SD->pObjectEx->pDuelInfo->nCurrentMP; CStatusUpdate *pStatus = new CStatusUpdate(pUser->SD->nObjectID); pStatus->AddField(STATUSUPDATE_CUR_CP, pUser->SD->fCP); pStatus->AddField(STATUSUPDATE_CUR_HP, pUser->SD->fHP); pStatus->AddField(STATUSUPDATE_CUR_MP, pUser->SD->fMP); pStatus->ProcessUpdate(pUser); delete pStatus; } } There is a better way to do this but whatever Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-15-2009, 01:42 AM. Открыть источник. |
L2Extend level 85 bug
THIZ SHULD WURK TWO
case 0x53: // RequestExRQItemLink { INT16 nSubID = pPacket->GetWord(0x00); INT32 nObjectID = pPacket->GetDWord(0x02); CItem * pItem = (CItem*)L2ServerFunctions::GetObject(nObjectID); if(pItem->IsValidItem()) { CLog::AddAnsi(2,"IZ VALID "); CSPacket Packet; Packet.set(80); Packet << (BYTE)0xFE << (INT16)0x6C; Packet << (int)pItem->nObjectID; Packet << (int)pItem->nObjectType; Packet << (int)pItem->SD->amount; Packet << (INT16)pItem->SD->nSlot; Packet << (INT16)0x00; Packet << (int)pItem->SD->bodyPart; Packet << (INT16)pItem->SD->nEnchantLV; Packet << (INT16)0x00; Packet << (INT16)0x00; Packet << (int)0x00; Packet << (int)0x00; Packet << (int)0x00; Packet << (int)0x00; Packet << (int)0x00; Packet << (int)0x00; Packet << (int)0x00; Packet << (int)0x00; Packet << (int)0x00; Packet << (int)0x00; pSocket->Send(&Packet); } break; } Edit : Yeah I got nothing to do at work. :( Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-15-2009, 01:45 AM. Открыть источник. |
L2Extend level 85 bug
Some fixes I got on my hdd without name cause db got ripped which still aren't in svn. Credits go to authors !
CQuestSystem.cpp in cachedExt //void CQuestSystem::MoveQuestData(__int32 index, __int8 maxQuests, INT32 newSaveMemo) WriteMemoryBYTE(0x4A24B5, index/16); WriteMemoryBYTE(0x4A25B3, index/16); CMultiPartyCommandChannel.cpp #include "CMultiPartyCommandChannel.h" void CMultiPartyCommandChannel::Initialize() { WriteInstruction(0x0068E34F, (INT32)CMultiPartyCommandChannel::Identify, 0, 0xE8); WriteInstruction(0x0068E21E, (INT32)CMultiPartyCommandChannel::IdentifyAssemble , 0, 0xE8); } void CMultiPartyCommandChannel::Identify(CSocket *pSocket, const char *format, ...) { va_list tag; va_start(tag, format); /*c*/ BYTE OpCode = va_arg(tag, BYTE); /*h*/ WORD ExOpCode = va_arg(tag, WORD); /*S*/ PWCHAR wsOwner = va_arg(tag, PWCHAR); /*d*/ DWORD dMemberCount = va_arg(tag, DWORD); /*d*/ DWORD dPartyCount = va_arg(tag, DWORD); /*b*/ DWORD BuffSize = va_arg(tag, DWORD); PUCHAR Buff = va_arg(tag, PUCHAR); va_end(tag); pSocket->Send("chSdddb", OpCode, ExOpCode, wsOwner, 1, dMemberCount, dPartyCount, BuffSize, Buff); } int CMultiPartyCommandChannel::IdentifyAssemble(char* buff, int nLen, const char *format, PWCHAR wsName, int nMemberCount) { return Assemble(buff, nLen, "Sdd", wsName, 0, nMemberCount); } CMultiPartyCommandChannel.h /* This file is part of L2Extend. L2Extend is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. L2Extend is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with L2Extend. If not, see <http://www.gnu.org/licenses/>. You May Not Make Commercial Use of any of our content, and any kind of newer implementations will be need to be shared and commited. */ #pragma once #include "Global.h" class CMultiPartyCommandChannel { public: static void Initialize(); static void Identify(CSocket *pSocket, const char *format, ...); static int IdentifyAssemble(char* buff, int nLen, const char *format, PWCHAR wsName, int nMemberCount); }; Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-15-2009, 01:53 AM. Открыть источник. |
L2Extend level 85 bug
iz chriztmaz day.
The augmentation file iz bad, I will upload the gud one Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-15-2009, 03:26 AM. Открыть источник. |
L2Extend level 85 bug
It's small shit so it's not.
You mean changeweapon file right ? Seems like there is some problems with I posted (change weapon) since it's not tested. Feel free to post debug log here, so I can correct it. Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-15-2009, 03:28 AM. Открыть источник. |
L2Extend level 85 bug
06/16/2009 06:29:10.593, Error sql: EXEC lin_LoadPledgeExt 1 (0)
06/16/2009 06:29:10.593, Error 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'lin_LoadPledgeExt'. any ideea why? Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-15-2009, 06:37 AM. Открыть источник. |
| All times are GMT. The time now is 17:50. |