-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
pravednik
Please tell me how to make an alert when you enter the game, Game Masters and players ?
Code:
if ( (lpMsg->CtlCode & 0x20 ) == 0x20 )
{
lpObj->Authority = 0x20;
LogAddC(2, "(%s)(%s) Set Event GM", lpObj->AccountID, lpObj->Name);
cManager.ManagerAdd(lpObj->Name, lpObj->m_Index);
char Text[256];
ZeroMemory(Text, sizeof(Text));
sprintf(Text, "[GM] %s is online!", lpObj->Name);
AllSendServerMsg(Text);
}
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
pravednik
That is a Client skin bug, just replace skin files from box from another client
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
pravednik
Clinet main Version?
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Client: (Password: z-team.pro)
-
Download
this client
-
re: [Release] zTeam Season 8 Episode 2 (Source)
P.S.: Sorry customers, its really my fail, with this release i hope u get updates and someone will continue this project.
:sleep: you konw it's hard.
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Hi mates, Im looking for information about how to edit value for tax entrance for valley of loren, apreciate some help.
Noté: system have 100k-200k-300k of zen
Enviado desde mi iPhone utilizando Tapatalk
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
SmileYzn
Hi folks, how i can adjust skybox at client?
http://i.imgur.com/M6eNwdY.png
Ps. I used this code at my zClient
Code:
#pragma once
#include <gl\gl.h>
#include <gl\glu.h>
#include <tlhelp32.h>
#include "glaux.h"
#pragma comment(lib,"OpenGL32.lib")
#pragma comment(lib,"GLu32.lib")
#pragma comment(lib,"GLaux.lib")
#pragma comment(lib,"ADVAPI32.lib")
#pragma comment(lib,"Gdi32.lib")
#pragma comment(lib,"winmm.lib")
#pragma comment(lib,"User32.lib")
#define SKY_NULL_BMP ".\\Data\\Custom\\Sky\\Null.bmp"
#define SKY_BACK_BMP ".\\Data\\Custom\\Sky\\World%d\\Back.bmp"
#define SKY_BOTTOM_BMP ".\\Data\\Custom\\Sky\\World%d\\Bottom.bmp"
#define SKY_FRONT_BMP ".\\Data\\Custom\\Sky\\World%d\\Front.bmp"
#define SKY_LEFT_BMP ".\\Data\\Custom\\Sky\\World%d\\Left.bmp"
#define SKY_RIGHT_BMP ".\\Data\\Custom\\Sky\\World%d\\Right.bmp"
#define SKY_TOP_BMP ".\\Data\\Custom\\Sky\\World%d\\Top.bmp"
class cSkyBox
{
public:
cSkyBox();
virtual ~cSkyBox();
bool bDisplayInitialized;
struct FRGB
{
float R,G,B;
};
FRGB SkyColor;
unsigned int uTextures[32][6];
void Load();
void ChangeSky();
void GetCamCoords(double* x_cam,double* y_cam,double* z_cam);
void InitDisplay();
bool CanDrawSky();
static void Display();
};
extern cSkyBox gSkyBox;
Code:
#include "StdAfx.h"
#include "SkyBox.h"
#include "ToolKit.h"
#include "Main.h"
#include "Import.h"
typedef int(*TSkyHook)();
TSkyHook SkyHook = (TSkyHook) 0x0;
typedef int(*TBlend)(int);
TBlend Blend = (TBlend) 0x0;
typedef int(*TUnBlend)();
TUnBlend UnBlend = (TUnBlend) 0x0;
cSkyBox gSkyBox;
cSkyBox::cSkyBox()
{
bDisplayInitialized = false;
}
cSkyBox::~cSkyBox()
{
/**/
}
void cSkyBox::ChangeSky()
{
SYSTEMTIME sm;
GetLocalTime(&sm);
int hourstate = sm.wHour % 2;
float minutestate = (float)sm.wMinute / 60.0f;
if(hourstate == 0)
{
SkyColor.R = minutestate;
SkyColor.G = minutestate;
SkyColor.B = minutestate;
}
else
{
SkyColor.R = 1.0f - minutestate;
SkyColor.G = 1.0f - minutestate;
SkyColor.B = 1.0f - minutestate;
}
}
void cSkyBox::GetCamCoords(double* x_cam, double* y_cam, double* z_cam)
{
double m[16];
glGetDoublev(GL_MODELVIEW_MATRIX,m);
*x_cam = -m[12] * m[0] - m[13] * m[1] - m[14] * m[2];
*y_cam = -m[12] * m[4] - m[13] * m[5] - m[14] * m[6];
*z_cam = -m[12] * m[8] - m[13] * m[9] - m[14] * m[10];
}
void CALLBACK SkyTimerProc(HWND hwnd,UINT uMsg,UINT_PTR idEvent,DWORD dwTime)
{
gSkyBox.ChangeSky();
}
void cSkyBox::InitDisplay()
{
SetTimer(pGameWindow,3,60000,(TIMERPROC)int(1));
{
char texturepath[256];
sprintf_s(texturepath,"%s",SKY_NULL_BMP);
if(!gToolKit.FileExists(texturepath))
{
MessageBox(0,"Impossivel encontrar Null.bmp","Erro SkyBox",MB_OK | MB_ICONERROR);
ExitProcess(0);
}
AUX_RGBImageRec* images[64][6];
AUX_RGBImageRec* blankimage = auxDIBImageLoad(texturepath);
try
{
for(int i=0 ; i < 60;i++)
{
for(int j=0; j < 6; j++)
{
images[i][j] = blankimage;
}
sprintf_s(texturepath,SKY_BACK_BMP,i+1);
if(gToolKit.FileExists(texturepath))
{
images[i][0] = auxDIBImageLoad(texturepath);
}
sprintf_s(texturepath,SKY_BOTTOM_BMP,i+1);
if(gToolKit.FileExists(texturepath))
{
images[i][1] = auxDIBImageLoad(texturepath);
}
sprintf_s(texturepath,SKY_FRONT_BMP,i+1);
if(gToolKit.FileExists(texturepath))
{
images[i][2] = auxDIBImageLoad(texturepath);
}
sprintf_s(texturepath,SKY_LEFT_BMP,i+1);
if(gToolKit.FileExists(texturepath))
{
images[i][3] = auxDIBImageLoad(texturepath);
}
sprintf_s(texturepath,SKY_RIGHT_BMP,i+1);
if(gToolKit.FileExists(texturepath))
{
images[i][4] = auxDIBImageLoad(texturepath);
}
sprintf_s(texturepath,SKY_TOP_BMP,i+1);
if(gToolKit.FileExists(texturepath))
{
images[i][5] = auxDIBImageLoad(texturepath);
}
}
}
catch(...)
{
/* NOPE */
}
for(int i = 0;i < 60;i++)
{
for(int j = 0;j < 6;j++)
{
glGenTextures(1,&this->uTextures[i][j]);
glBindTexture(GL_TEXTURE_2D,this->uTextures[i][j]);
glPixelStorei(GL_UNPACK_ALIGNMENT,1);
glTexImage2D(GL_TEXTURE_2D,0,3,images[i][j]->sizeX,images[i][j]->sizeY,0,GL_RGB,GL_UNSIGNED_BYTE,images[i][j]->data);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST);
}
}
SkyColor.R = 1.0f;
SkyColor.G = 1.0f;
SkyColor.B = 1.0f;
if(1)
{
SetTimer(pGameWindow,2,5000,(TIMERPROC)SkyTimerProc);
ChangeSky();
}
}
this->bDisplayInitialized = true;
}
bool cSkyBox::CanDrawSky()
{
char texturepath[64];
sprintf_s(texturepath,SKY_TOP_BMP,(pMapNumber + 1));
if(gToolKit.FileExists(texturepath))
{
return true;
}
return false;
}
void cSkyBox::Display()
{
SkyHook();
if(pPlayerState == GameProcess)
{
if(!gSkyBox.bDisplayInitialized)
{
gSkyBox.InitDisplay();
}
if(1 && gSkyBox.CanDrawSky())
{
double x_cam, y_cam, z_cam;
gSkyBox.GetCamCoords(&x_cam,&y_cam,&z_cam);
Blend(1);
glColor3d(gSkyBox.SkyColor.R,gSkyBox.SkyColor.G,gSkyBox.SkyColor.B);
glBindTexture(GL_TEXTURE_2D,gSkyBox.uTextures[pMapNumber][5]);
glBegin(GL_QUADS);
//TOP
glTexCoord2f(1.0f, 0.0f); glVertex3d(x_cam-1900, y_cam+1900, 1500);
glTexCoord2f(0.0f, 0.0f); glVertex3d(x_cam+1900, y_cam+1900, 1500);
glTexCoord2f(0.0f, 1.0f); glVertex3d(x_cam+1900, y_cam-1900, 1500);
glTexCoord2f(1.0f, 1.0f); glVertex3d(x_cam-1900, y_cam-1900, 1500);
glEnd();
glBindTexture(GL_TEXTURE_2D,gSkyBox.uTextures[pMapNumber][1]);
glBegin(GL_QUADS);
//BOTTOM
glTexCoord2f(1.0f, 1.0f); glVertex3d(x_cam-1900, y_cam+1900, 0);
glTexCoord2f(0.0f, 1.0f); glVertex3d(x_cam+1900, y_cam+1900, 0);
glTexCoord2f(0.0f, 0.0f); glVertex3d(x_cam+1900, y_cam-1900, 0);
glTexCoord2f(1.0f, 0.0f); glVertex3d(x_cam-1900, y_cam-1900, 0);
glEnd();
glBindTexture(GL_TEXTURE_2D,gSkyBox.uTextures[pMapNumber][2]);
glBegin(GL_QUADS);
//FRONT
glTexCoord2f(1.0f, 1.0f); glVertex3d(x_cam-1900, y_cam+1900, 1500);
glTexCoord2f(0.0f, 1.0f); glVertex3d(x_cam+1900, y_cam+1900, 1500);
glTexCoord2f(0.0f, 0.0f); glVertex3d(x_cam+1900, y_cam+1900, 0);
glTexCoord2f(1.0f, 0.0f); glVertex3d(x_cam-1900, y_cam+1900, 0);
glEnd();
glBindTexture(GL_TEXTURE_2D,gSkyBox.uTextures[pMapNumber][0]);
glBegin(GL_QUADS);
//BACK
glTexCoord2f(0.0f, 1.0f); glVertex3d(x_cam-1900, y_cam-1900, 1500);
glTexCoord2f(1.0f, 1.0f); glVertex3d(x_cam+1900, y_cam-1900, 1500);
glTexCoord2f(1.0f, 0.0f); glVertex3d(x_cam+1900, y_cam-1900, 0);
glTexCoord2f(0.0f, 0.0f); glVertex3d(x_cam-1900, y_cam-1900, 0);
glEnd();
glBindTexture(GL_TEXTURE_2D,gSkyBox.uTextures[pMapNumber][3]);
glBegin(GL_QUADS);
//LEFT
glTexCoord2f(1.0f, 1.0f); glVertex3d(x_cam-1900, y_cam-1900, 1500);
glTexCoord2f(0.0f, 1.0f); glVertex3d(x_cam-1900, y_cam+1900, 1500);
glTexCoord2f(0.0f, 0.0f); glVertex3d(x_cam-1900, y_cam+1900, 0);
glTexCoord2f(1.0f, 0.0f); glVertex3d(x_cam-1900, y_cam-1900, 0);
glEnd();
glBindTexture(GL_TEXTURE_2D,gSkyBox.uTextures[pMapNumber][4]);
glBegin(GL_QUADS);
//RIGHT
glTexCoord2f(0.0f, 1.0f); glVertex3d(x_cam+1900, y_cam-1900, 1500);
glTexCoord2f(1.0f, 1.0f); glVertex3d(x_cam+1900, y_cam+1900, 1500);
glTexCoord2f(1.0f, 0.0f); glVertex3d(x_cam+1900, y_cam+1900, 0);
glTexCoord2f(0.0f, 0.0f); glVertex3d(x_cam+1900, y_cam-1900, 0);
glEnd();
UnBlend();
}
}
}
void cSkyBox::Load()
{
gToolKit.HookOffset((DWORD)&this->Display,0x0,ASM::CALL);
}
Hi all ! Guys has anyone added this SkyBox ? I can't figure out, we have more files ToolKit and they are not present. Tell me how to do?
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
MAXDANGER
That why use this files now
I'm trying to use this files and when Enter to the server I got DC, I triend using the ZTeam Repack from the videotutorial and worked fine, why?
- - - Updated - - -
Quote:
Originally Posted by
MAXDANGER
hey @MAXDANGER I tried using those editors and just get
IP: "…¹š±Œ®š´–«üÏ«üÏ«üÏ«üÏ«üÏ«üÏ«üÏ«üÏ«üÏ«üÏ«üÏ«ü"
Version: «üÏ«ü
Serial: "«üÏ«üÏ«üÏ«üÏ«üÏ«"
why? Tried using both
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Hi, Anyone know how yo fix dark raven video freeze lag ?
Enviado desde mi iPhone utilizando Tapatalk
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
TorinoTalk
Hi, Anyone know how yo fix dark raven video freeze lag ?
Enviado desde mi iPhone utilizando Tapatalk
I have never hear about this, do you have video from it?
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
RevolGaming
If the project has warning is release mode too, its recommended to fix it. Post the errors into the HELP topic and than it will be solved.
I dont recommend to use rc system, only if u can fix it, because in S6 it will result with a bug, dupe bug if plrs know how to do it.
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Found another problem:
/cssetstart
disconnects you....
help plz!
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
gpvk
Found another problem:
/cssetstart
disconnects you....
help plz!
Hey gpvk how you make the change in the client side (ip)? see my post here and I just see weird text.
Here my post http://forum.ragezone.com/f197/zteam...6/#post8698536
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
RevolGaming
I have never hear about this, do you have video from it?
Es cierto esto pasa pero es causado por no tener el visual fix en el zclient, seria de gran ayuda algunos consejos ya que hay bug agi y mobs que no mueren.
It is true this happens but it is caused by not having the visual fix on the zclient, would be helpful as there are some tips agi bug and mobs do not die.
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Hi all please tell me how to make the greeting of the player as muemu that is, when you go into the game "Welcome player Name"
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Man, you ask everywhere everything, you are working on 20 source, same time?
In other hand you can simple copy from any error / message for the players.
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
pravednik
Hi all please tell me how to make the greeting of the player as muemu that is, when you go into the game "Welcome player Name"
You already asked this question on the page before this... And you got an answer from @RevolGaming
Quote:
if ( (lpMsg->CtlCode & 0x20 ) == 0x20 )
{
lpObj->Authority = 0x20;
LogAddC(2, "(%s)(%s) Set Event GM", lpObj->AccountID, lpObj->Name);
cManager.ManagerAdd(lpObj->Name, lpObj->m_Index);
char Text[256];
ZeroMemory(Text, sizeof(Text));
sprintf(Text, "[GM] %s is online!", lpObj->Name);
AllSendServerMsg(Text);
}
If you don't know how to add it, then download EMU source and find it in there? If you really want everyone to do all the work for you, just download a repack. The sources are useless if you don't know how to use them
-
re: [Release] zTeam Season 8 Episode 2 (Source)
For notice only the player you need to
Code:
GCServerMsgStringSend("Welcome on my fcking server %s",lpObj->Name, 0);
Use this
for example
Code:
if ( (lpMsg->CtlCode & 0x20 ) == 0x20 )
{
lpObj->Authority = 0x20;
LogAddC(2, "(%s)(%s) Set Event GM", lpObj->AccountID, lpObj->Name);
cManager.ManagerAdd(lpObj->Name, lpObj->m_Index);
char Text[256];
ZeroMemory(Text, sizeof(Text));
sprintf(Text, "[GM] %s is online!", lpObj->Name);
AllSendServerMsg(Text);
}else{
GCServerMsgStringSend("Welcome on my fcking server %s",lpObj->Name, 0);
}
I am not sure you need to add here, but you can test it, I am not sure because this part for set event gm but in else maybe it will work, because your ctlcode will be 0 as a player, so it will type your name in the middle of the screen, but its totally useless feature... :D
-
re: [Release] zTeam Season 8 Episode 2 (Source)
-
re: [Release] zTeam Season 8 Episode 2 (Source)
I found a code but it notifies all players
user.cpp
Quote:
if ( lpObj->Name )
{
char szTemp[128];
sprintf_s(szTemp, lMsg.Get(MSGGET(13,205)), lpObj->Name);
AllSendServerMsg(szTemp);
}
Message.xml
Quote:
<message index="205">[Character] %s: Entered Game !</message>
but it is unfortunately not.
-
re: [Release] zTeam Season 8 Episode 2 (Source)
I wrote a working code, you cant just copy into the source... and build it...?
If you have ZERO 0000000 skill for programming, please learn programming first, than start to make muserver from source..
Sources are not for random newbie guys who download visual studio, sources are for programmers or wannabe programmers. If you cant copy my code and put it into the right place, than please dont use sources and its not "Request" topic. You requested a feature in the thread, its some kind of SPAM here, because its totally useless for the source.
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Hello you can share zTeam last source ? / thx
.sorry i bad english
-
re: [Release] zTeam Season 8 Episode 2 (Source)
I have small problem with one thing.
Why have I always button "GIFT" in CashShop disabled (after pressed "X" in client) ?
I modified all parameters in Product and Package (client and server side) and this fcking button is still and always disabled.
I think this is client problem (probably main.exe or dll) but can someone friendly help me to unlock this button ?
I just want to be able to click it. (client: MuOnly)
Thanks for help anyway.
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
WIZARDMASTER
I have small problem with one thing.
Why have I always button "GIFT" in CashShop disabled (after pressed "X" in client) ?
I modified all parameters in Product and Package (client and server side) and this fcking button is still and always disabled.
I think this is client problem (probably main.exe or dll) but can someone friendly help me to unlock this button ?
I just want to be able to click it. (client: MuOnly)
Thanks for help anyway.
It was disabled because it didnt work last time I checked. Maybe someone fixed it. Not sure.
Enviado desde mi SM-G531M mediante Tapatalk
-
re: [Release] zTeam Season 8 Episode 2 (Source)
But how to Enable it ? (on client, i dont have this main source)
Can You help me ?