- Joined
- Feb 24, 2008
- Messages
- 16
- Reaction score
- 0
Must have new command system if u dont know if u have it check if u have net.sf.odinsnow.client.messages.commands package
go to maplecharacter.java
and find
and replace with
then find
and replace with
so now to set the lvl command a gm can use hmm lets say go to ShutdownCommands.java and where u find the definition
the last number is the gm lvl so only chars with gm set to 1000 in the db can use it
o yea u have to change ur gm colum in the db so it can accept value higher than 1 not sure how i did that but i think u can figure it out by urself
go to maplecharacter.java
and find
Code:
ret.gmLevel = rs.getInt("gm") == 0 ? 0 : 1000;
Code:
ret.gmLevel = rs.getInt("gm");
Code:
ps.setInt(14, (gmLevel > 0 ? 1 : 0));
Code:
ps.setInt(14, (gmLevel));
Code:
new CommandDefinition("shutdown", "[when in Minutes]", "Shuts down the current channel - don't use atm", 1000),
o yea u have to change ur gm colum in the db so it can accept value higher than 1 not sure how i did that but i think u can figure it out by urself