Apprentice
- Joined
- Dec 14, 2007
- Messages
- 839
- Reaction score
- 430
why my pic ?
your client using other zclient.dll version... archive your files and overwrite with files from my archive, then test.
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!why my pic ?
main first post fix problem in camera?
problem solved.
my friend fix position on Cloak... Looks like crap... Its not fix in .dll its only fixed position in bmd.? u solved dl / rf / cape/ cloak ? can u share?
thanks...
I'll ask him about it, but now we are busy with own project =)@quskevel,
thanks for this..
working perfect:
can u or ur friend fix this classic dl cape?
download link:You must be registered to see links
thanks.
quskevel,
thanks for this..
working perfect:
can u or ur friend fix this classic dl cape?
download link:You must be registered to see links
thanks.
just bragging? or share something with us?
class Camera
{
[COLOR=#ff0000]public:[/COLOR]
Camera();
~Camera();
// ----
void Init();
void Switch();
void Run(MOUSEHOOKSTRUCTEX * Mouse, WPARAM wParam);
void Rotate();
void Position();
// ----
[COLOR=#ff0000]bool RestStop;[/COLOR]
bool IsActive;
float ZoomPercent;
// ----
DefaultData Default;
private:
BYTE RotateMode;
bool InMove;
int TempCursorX;
int TempCursorY;
// ----
}; extern Camera gCamera;
[COLOR=#ff0000]void Return(void *lpParam)[/COLOR]
[COLOR=#ff0000]{[/COLOR]
[COLOR=#ff0000] while(*(float*)oCam_RotZ != -45.0f || *(float*)oCam_RotY != -48.5f || *(double*)oCam_PosZ != 150.0f || *(float*)oCam_Zoom != 35.0f)[/COLOR]
[COLOR=#ff0000] {[/COLOR]
[COLOR=#ff0000] gCamera.RestStop = true;[/COLOR]
[COLOR=#ff0000] // ----[/COLOR]
[COLOR=#ff0000] (*(float*)oCam_RotZ > -45.0f) ? *(float*)oCam_RotZ -= 1.0f : *(float*)oCam_RotZ += 1.0f;[/COLOR]
[COLOR=#ff0000] if (*(float*)oCam_RotZ > -47.0f && *(float*)oCam_RotZ < -43.0f)[/COLOR]
[COLOR=#ff0000] *(float*)oCam_RotZ = -45.0f;[/COLOR]
[COLOR=#ff0000] (*(float*)oCam_RotY > -48.5f) ? *(float*)oCam_RotY -= 0.5f : *(float*)oCam_RotY += 0.5f;[/COLOR]
[COLOR=#ff0000] if (*(float*)oCam_RotY > -50.5f && *(float*)oCam_RotY < -46.5f)[/COLOR]
[COLOR=#ff0000] *(float*)oCam_RotY = -48.5f;[/COLOR]
[COLOR=#ff0000] (*(double*)oCam_PosZ > 150.0f) ? *(double*)oCam_PosZ -= 5.0f : *(double*)oCam_PosZ += 5.0f;[/COLOR]
[COLOR=#ff0000] if (*(double*)oCam_PosZ > 146.0f && *(double*)oCam_PosZ < 152.0f)[/COLOR]
[COLOR=#ff0000] *(double*)oCam_PosZ = 150.0f;[/COLOR]
[COLOR=#ff0000] (*(float*)oCam_Zoom > 35.0f) ? *(float*)oCam_Zoom -= 1.0f : *(float*)oCam_Zoom += 1.0f;[/COLOR]
[COLOR=#ff0000] if (*(float*)oCam_Zoom > 33.0f && *(float*)oCam_Zoom < 37.0f)[/COLOR]
[COLOR=#ff0000] *(float*)oCam_Zoom = 35.0f;[/COLOR]
[COLOR=#ff0000] Sleep(10);[/COLOR]
[COLOR=#ff0000] }[/COLOR]
[COLOR=#ff0000] // ----[/COLOR]
[COLOR=#ff0000] gCamera.RestStop = false;[/COLOR]
[COLOR=#ff0000] // ----[/COLOR]
[COLOR=#ff0000] _endthread();[/COLOR]
[COLOR=#ff0000]}
// ----------------------------------------------------------------------------------------
[/COLOR][COLOR=#ff0000]void FreeMemory(void *lParam)[/COLOR]
[COLOR=#ff0000]{[/COLOR]
[COLOR=#ff0000] while (1)[/COLOR]
[COLOR=#ff0000] {[/COLOR]
[COLOR=#ff0000] Sleep(20000);[/COLOR]
[COLOR=#ff0000] SetProcessWorkingSetSize(GetCurrentProcess(), -1, -1);[/COLOR]
[COLOR=#ff0000] }[/COLOR]
[COLOR=#ff0000]}[/COLOR]
void Camera::Init()
{
if( pPlayerState != GameProcess )
{
return;
}
// ----
[COLOR=#008000]/*[/COLOR]
[COLOR=#008000] SetFloat((LPVOID)oCam_Zoom, this->Default.Zoom);[/COLOR]
[COLOR=#008000] SetFloat((LPVOID)oCam_RotY, this->Default.RotationY);[/COLOR]
[COLOR=#008000] SetFloat((LPVOID)oCam_RotZ, this->Default.RotationZ);[/COLOR]
[COLOR=#008000] SetDouble((LPVOID)oCam_PosZ, this->Default.PositionZ);[/COLOR]
[COLOR=#008000] */[/COLOR]
// ----
[COLOR=#ff0000]_beginthread(Return, 0, NULL);[/COLOR]
[COLOR=#ff0000]_beginthread(FreeMemory, 0, NULL);[/COLOR]
// ----
this->ZoomPercent = *(float*)oCam_Zoom / ((float)ZOOM_MAX / 100.0f);
}
[COLOR=#ff0000]void Interface::DrawPictureAlpha(char Path[64], float X, float Y, float Width, float Height, int U1, int U2, float ScaleX, float ScaleY, int HL)[/COLOR]
[COLOR=#ff0000]{[/COLOR]
[COLOR=#ff0000] pLoadImage(Path, 0x1B, 0x2601, 0x2900, 1, 0);[/COLOR]
[COLOR=#ff0000] pDrawImage(0x1B, X, Y, Width, Height, U1, U2, ScaleX, ScaleY, HL, 1, 0);[/COLOR]
[COLOR=#ff0000]}[/COLOR]
void Interface::DrawCameraUI()
{
float PosX = this->GetResizeX(eCAMERA_MAIN);
// ----
if( this->CheckWindow(CashShop)
|| this->CheckWindow(SkillTree)
|| this->CheckWindow(FullMap)
|| this->CheckWindow(MoveList)
|| (this->CheckWindow(Inventory)
&& this->CheckWindow(ExpandInventory)
&& this->CheckWindow(Store))
|| (this->CheckWindow(Inventory)
&& this->CheckWindow(Warehouse)
&& this->CheckWindow(ExpandWarehouse)) )
{
return;
}
// ----
this->DrawGUI(eCAMERA_MAIN, PosX, 0);
this->DrawGUI(eCAMERA_BUTTON1, PosX + 0.5, 1);
this->DrawGUI(eCAMERA_BUTTON2, PosX + 18.5, 1);
// ----
if( gCamera.IsActive )
{
this->DrawColoredGUI(eCAMERA_BUTTON1, PosX + 0.5, 1, eShinyGreen);
}
// ----
if( IsWorkZone(eCAMERA_BUTTON1) )
{
if( gCamera.IsActive )
{
this->DrawToolTip(PosX + 0.5 - 5, 25, "Zoom: %02.f%%", gCamera.ZoomPercent);
}
else
{
this->DrawToolTip(PosX + 0.5 - 5, 25, "3D Camera [On|Off]");
}
// ----
if( this->Data[eCAMERA_BUTTON1].OnClick )
{
this->DrawColoredGUI(eCAMERA_BUTTON1, PosX + 0.5, 1, pMakeColor(40, 20, 3, 130));
return;
}
// ----
this->DrawColoredGUI(eCAMERA_BUTTON1, PosX + 0.5, 1, pMakeColor(152, 205, 52, 200));
}
else if( IsWorkZone(eCAMERA_BUTTON2) )
{
this->DrawToolTip(PosX + 18.5 - 5, 25, "3D Camera [Reset]");
// ----
if( this->Data[eCAMERA_BUTTON2].OnClick )
{
this->DrawColoredGUI(eCAMERA_BUTTON2, PosX + 18.5, 1, pMakeColor(40, 20, 3, 130));
return;
}
// ----
this->DrawColoredGUI(eCAMERA_BUTTON2, PosX + 18.5, 1, pMakeColor(255, 204, 20, 200));
}
[COLOR=#ff0000]if( gCamera.RestStop == true )[/COLOR]
[COLOR=#ff0000] {[/COLOR]
[COLOR=#ff0000] this->DrawColoredGUI(eCAMERA_BUTTON2, PosX + 18.5, 1, pMakeColor(255, 0, 0, 200));[/COLOR]
[COLOR=#ff0000] this->DrawFormat(eOrange, PosX + 35.0, 25, 210, 3, "Restoring.. Camera");[/COLOR]
[COLOR=#ff0000] this->DrawPictureAlpha("Custom\\Interface\\TimerClock.tga", PosX + 55.0, 15, 64, 64, 0, 0, 1.0f, 1.0f, 1);[/COLOR]
[COLOR=#ff0000] }[/COLOR]
}
[COLOR=#ff0000]void DrawPictureAlpha(char Path[64], float X, float Y, float Width, float Height, int U1, int U2, float ScaleX, float ScaleY, int HL);[/COLOR]
#define pDrawImage ((void(__cdecl*)(int ImageID, float PosX, float PosY, float Width, float Height, int Arg6, int Arg7, float ScaleX, float ScaleY, int Arg11, int Arg12, int Arg13)) 0x637C60)
extern "C" __declspec(dllexport)void Init()
{
//VMBEGIN
// ----
[COLOR=#ff8c00]DWORD OldProtect;[/COLOR]
[COLOR=#ff8c00] // ----[/COLOR]
[COLOR=#ff8c00] if(VirtualProtect(LPVOID(0x401000),0xD21FFF,PAGE_EXECUTE_READWRITE,&OldProtect))[/COLOR]
{
gController.Load();
gChatExpanded.Load();
gItemPrice.Load();
gItem.Load();
gResetSystem.Load();
gProtocol.Load();
gCheatGuard.Load();
gObjUser.Load();
gOther.Load();
gInterface.Load();
gVisualFix.InitVisualFix();
g_ItemModel.Load();
}
}