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!

[Tutorial] How to enable some developer privileges

Joined
Apr 2, 2013
Messages
1,098
Reaction score
4,614




Simple tutorial, how to enable some developer privileges.

[TD][/TD]
[TR]
[TD]IsDeveloper[/TD]
[TD]
Enable[/TD]
[/TR]
[TR]
[TD]
0[/TD]

[TD]
Nothing![/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat

[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location

[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command

[/TD]
[/TR]
[TR]
[TD]30[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server

[/TD]
[/TR]
[TR]
[TD]62[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server
BAN // can permanently ban ppl

[/TD]
[/TR]
[TR]
[TD]126[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server
BAN // can permanently ban ppl
GOD // can enable god mode

[/TD]
[/TR]
[TR]
[TD]254[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server
BAN // can permanently ban ppl
GOD // can enable god mode
INVISIBLE // player model is totally invisible!

[/TD]
[/TR]
[TR]
[TD]510[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server
BAN // can permanently ban ppl
GOD // can enable god mode
INVISIBLE // player model is totally invisible!
HIDDEN // do not show up in player list

[/TD]
[/TR]
[TR]
[TD]


First you need to access your WarZ database and set IsDeveloper in UsersData with the desired value, or use my simple query.


PHP:
declare @in_CustomerID int;
declare @in_User nvarchar(64);
declare @in_IsDeveloper int;

SET @in_User = 'Yuri-BR';   -- Email or Gamertag
SET @in_IsDeveloper = 126;  -- IsDeveloper DAA (0, 2, 6, 14, 30, 62, 126, 254, 510)

UPDATE D
SET IsDeveloper = @in_IsDeveloper
FROM UsersData D
JOIN Accounts A
    ON D.CustomerID = A.CustomerID
JOIN UsersChars C
    ON A.CustomerID = C.CustomerID
WHERE
    A.email = @in_User OR C.Gamertag = @in_User
[/TD]

[TD][/TD]
[/TR]
[/td]
 
Last edited:
Newbie Spellweaver
Joined
Apr 12, 2019
Messages
32
Reaction score
14
I never understood how it was calculated in the source

It's like a bit shifting
Example:
Code:
DAA_ENABLED = 1<<0, // legacy, shouldn't be used

DAA_DEV_ICON = 1<<1, // dev icon in player list, red text in chat

DAA_INVISIBLE = 1<<7, // player model is totally invisible!
Ex 1:
DAA_DEV_ICON = 1 shift for 1 bit
1 convert to binary is 001
and shift 1 to the left 1 bit, The answer is 010 and it's 2 in decimal

Ex 2:
DAA_INVISIBLE = 1 shift for 7 bits
1 convert to binary is 000000001
and shift 1 to the left 7 bits, The answer is 010000000 and it's 128 in decimal

and use that enum with bitwise and to check condition
Example I set my profile to 510 (111111110):
Code:
if(gUserProfile.ProfileData.isDevAccount [COLOR=#ff0000][B]&[/B][/COLOR] wiUserProfile::DAA_INVISIBLE) {
111111110 bitwise and 010000000 (128 -> DAA_INVISIBLE )
it's equal 010000000 that's mean TRUE

But if I set my profile to 126 (001111110):
Code:
if(gUserProfile.ProfileData.isDevAccount [COLOR=#FF0000][B]&[/B][/COLOR] wiUserProfile::DAA_INVISIBLE) {
001111110 bitwise and 010000000 (128 -> DAA_INVISIBLE )
it's equal 00000000 that's mean FALSE

With this example you can calculate number that's can Enable or Disable some function of developer that's you only need.

I hope this will help you or anyone or my English skill are blowing your brain :p
 
Joined
Apr 2, 2013
Messages
1,098
Reaction score
4,614



Enable only one of the functions, use these decimal values in red corresponding to your function:



IsDeveloper
Enable

2

DAA_DEV_ICON

4

DAA_TELEPORT

8

DAA_SPAWN_ITEM

16

DAA_KICK

32

DAA_BAN

64

DAA_GOD

128

DAA_INVISIBLE

256

DAA_HIDDEN


Enable all functions without (DEV_ICON, INVISIBLE and HIDDEN)


124

DAA_TELEPORT // can teleport or teleport to player, or get player location
DAA_SPAWN_ITEM // can spawn items via /gi command
DAA_KICK // can kick players from server
DAA_BAN // can permanently ban ppl
DAA_GOD // can enable god mode



Enable all functions without (SPAWN_ITEM, INVISIBLE and HIDDEN)


118

DAA_DEV_ICON // dev icon in player list, red text in chat
DAA_TELEPORT // can teleport or teleport to player, or get player location
DAA_KICK // can kick players from server
DAA_BAN // can permanently ban ppl
DAA_GOD // can enable god mode



Enable only (DEV_ICON and KICK)


18

DAA_DEV_ICON // dev icon in player list, red text in chat
DAA_KICK // can kick players from server



Enable only (DEV_ICON and BAN)


34

DAA_DEV_ICON // dev icon in player list, red text in chat
DAA_BAN // can permanently ban ppl



Enable only (DEV_ICON, KICK and BAN)


50

DAA_DEV_ICON // dev icon in player list, red text in chat
DAA_KICK // can kick players from server
DAA_BAN // can permanently ban ppl

[/td]
[/td]
[/td]
[/td]
[/td]
[/td]
[/td]
[/td]




I never understood how it was calculated in the source
[mental]Shift bits and get decimal value, you can use calculator for that ;P[/mental]
 
Last edited:
Initiate Mage
Joined
Sep 28, 2019
Messages
1
Reaction score
0
I don't quite understand this. Can this be used in Infestation NewZ?
 
I can do it!, i guess...
Joined
May 14, 2014
Messages
758
Reaction score
770
I don't quite understand this. Can this be used in Infestation NewZ?

MAn, this is a dev forum - that is a turtorial that is aimed to be used on your own game / client

this is not a hacking forum with tips how to cheat in newz :s
 
Joined
Apr 2, 2013
Messages
1,098
Reaction score
4,614
I don't quite understand this. Can this be used in Infestation NewZ?

[mental]Yes, it works on any source as long as it is based on infestation, and you have access to the database.[/mental]

[mental]Otherwise, unless you find a security hole in your api or web and set IsDeveloper with the desired value ;P[/mental]
 
Last edited:
Initiate Mage
Joined
Jun 20, 2023
Messages
2
Reaction score
1
i cant understand the tutorial
1691533845470 - [Tutorial] How to enable some developer privileges - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Jun 12, 2014
Messages
23
Reaction score
0




Simple tutorial, how to enable some developer privileges.




[TD][/TD]

[TR]
[TD]IsDeveloper[/TD]
[TD]
Enable[/TD]
[/TR]
[TR]
[TD]
0[/TD]

[TD]
Nothing![/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat

[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location

[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command

[/TD]
[/TR]
[TR]
[TD]30[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server

[/TD]
[/TR]
[TR]
[TD]62[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server
BAN // can permanently ban ppl

[/TD]
[/TR]
[TR]
[TD]126[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server
BAN // can permanently ban ppl
GOD // can enable god mode

[/TD]
[/TR]
[TR]
[TD]254[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server
BAN // can permanently ban ppl
GOD // can enable god mode
INVISIBLE // player model is totally invisible!

[/TD]
[/TR]
[TR]
[TD]510[/TD]
[TD]

DEV_ICON // dev icon in player list, red text in chat
TELEPORT // can teleport or teleport to player, or get player location
SPAWN_ITEM // can spawn items via /gi command
KICK // can kick players from server
BAN // can permanently ban ppl
GOD // can enable god mode
INVISIBLE // player model is totally invisible!
HIDDEN // do not show up in player list

[/TD]
[/TR]
[TR]
[TD]


First you need to access your WarZ database and set IsDeveloper in UsersData with the desired value, or use my simple query.


PHP:
declare @in_CustomerID int;
declare @in_User nvarchar(64);
declare @in_IsDeveloper int;

SET @in_User = 'Yuri-BR';   -- Email or Gamertag
SET @in_IsDeveloper = 126;  -- IsDeveloper DAA (0, 2, 6, 14, 30, 62, 126, 254, 510)

UPDATE D
SET IsDeveloper = @in_IsDeveloper
FROM UsersData D
JOIN Accounts A
    ON D.CustomerID = A.CustomerID
JOIN UsersChars C
    ON A.CustomerID = C.CustomerID
WHERE
    A.email = @in_User OR C.Gamertag = @in_User
[/TD]

[TD][/TD]
[/TR]


[/td]
:)
 
Back
Top