Welcome!

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!

/maptexture

Good Guy George
Loyal Member
Joined
Apr 12, 2009
Messages
1,260
Reaction score
239
Code:
void ChatCmd_TextureShit(const char* line, const int argc, char **const argv)
{
	int maptexture = 0;
	if(argc==2) {
		char szMsg[256];
		maptexture = atoi(argv[1]);
		DWORD flag = 0;
		if (maptexture < 0 || maptexture > 8) {
			ZChatOutput("^2Maptexture list: 0, 1, 2, 3, 4, 5, 6, 7, 8");
			return;
		}
		SetMapTextureLevel(maptexture);
		flag |= RTextureType_Map;
		RChangeBaseTextureLevel(flag);	
		sprintf(szMsg, "^1New MapTexure Level : %d", (int)maptexture);
		ZChatOutput(szMsg);
		return;
	} else {
		ZChatOutput("^2Usage: /maptexture <number>");
		ZChatOutput("^2Maptexture list: 0, 1, 2, 3, 4, 5, 6, 7, 8");
		return;
	}
}
 
Last edited:
Elite Diviner
Joined
Aug 19, 2007
Messages
437
Reaction score
152
Code:
        if(maptexture != 0 && maptexture != 1 && maptexture != 2 && maptexture != 3 && maptexture != 4 && maptexture != 5 && maptexture != 6 && maptexture != 7 && maptexture != 8) { ...

Why are you doing it like that?

Code:
if (maptexture < 0 || maptexture > 8) { ...
 
Last edited:
Skilled Illusionist
Joined
Dec 3, 2010
Messages
389
Reaction score
14
i like this release qet123

and mark thanks for helping him out.
 
Elite Diviner
Joined
Aug 19, 2007
Messages
437
Reaction score
152
He's forgotten the part for the negative numbers, even though I posted exactly what he needed to fix :<.
 
Last edited:
Daemonsring Developer
Joined
Jul 10, 2007
Messages
679
Reaction score
262
Code:
if(argc > 1 && argc <= 2) [B][/B]
if argc is bigger then 1 and lower or equal to 2?
Thats the same as if(argc==2)!
 
Junior Spellweaver
Joined
Apr 28, 2012
Messages
114
Reaction score
22
You silly coders should know there are still people around that have no idea what this does. I'm still guessing...

Gunz have 8 maptextures levels, 1 = for high quality, 8 = like archetype.
qet123 done a command that you can change it to what you want,
example: /maptexture 3
 
Newbie Spellweaver
Joined
Sep 13, 2012
Messages
55
Reaction score
11
What the duck look what i found mr.coder poop - I know you did a little edit but still where is the credit for this guy?
qet123 - /maptexture - RaGEZONE Forums
 
Last edited:
Joined
Apr 18, 2007
Messages
592
Reaction score
95
Go to ZChat_Cmds.cpp

Add on line 61:

void ChatCmd_Maptexture(const char* line, const int argc, char **const argv);

Add on line 153:

_CC_AC("Maptexture", &ChatCmd_Maptexture, CCF_ALL, ARGVNoMin, ARGVNoMax, true,"/maptexture", "");

Add on line 246 (or wherever an function ends)

void ChatCmd_Maptexture(const char* line, const int argc, char **const argv)
{
int maptexture = 0;
if(argc==2) {
char szMsg[256];
maptexture = atoi(argv[1]);
DWORD flag = 0;
if (maptexture < 0 || maptexture > 8) {
ZChatOutput("^2Maptexture list: 0, 1, 2, 3, 4, 5, 6, 7, 8");
return;
}
SetMapTextureLevel(maptexture);
flag |= RTextureType_Map;
RChangeBaseTextureLevel(flag);
sprintf(szMsg, "^1New MapTexure Level : %d", (int)maptexture);
ZChatOutput(szMsg);
return;
} else {
ZChatOutput("^2Usage: /maptexture <number>");
ZChatOutput("^2Maptexture list: 0, 1, 2, 3, 4, 5, 6, 7, 8");
return;
}
}

Also note to qet I don't know why you called your function Texture poop> but I just changed it to Maptexture.
 
Back
Top