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!

ap command (odinms)

Newbie Spellweaver
Joined
May 12, 2008
Messages
87
Reaction score
0
well my second release i just take the sp command and change this things think it will be usefull sometimes

here what i change the blood words

PHP:
 else if (splitted[0].equals("![B]sp[/B]")) {
				player.setRemaining[B]Sp[/B](getOptionalIntArg(splitted, 1, 1));
				player.updateSingleStat(MapleStat.AVAILABLE[B]SP[/B], player.getRemaining[B]Sp[/B]());
			}

and here the command

PHP:
 else if (splitted[0].equals("!ap")) {
				player.setRemainingAp(getOptionalIntArg(splitted, 1, 1));
				player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
			}

compile and done its work for me
sorry for my english
 
Junior Spellweaver
Joined
May 26, 2008
Messages
195
Reaction score
0
Re: [Release]!ap command (odinms)

Thanks? :\

What next your gonna edit low hp to only give 1mp and call it a release? :\
 
Newbie Spellweaver
Joined
May 12, 2008
Messages
87
Reaction score
0
Re: [Release]!ap command (odinms)

i just think it will be usefull to ppl that doesnt know java well or just dont know java

and i think start give something to ragezone such as they give me

soo plz dont tall this and no i dont gonna do this and how lowhp command help....
 
Initiate Mage
Joined
Jun 21, 2008
Messages
4
Reaction score
0
Re: [Release]!ap command (odinms)

this was realeased before....
but the one that was realeased didnt change teh setRemainingSP/AvailableSP into setREmainingAP/AvailableAP.
but eh, atleast you contributed right?
 
Newbie Spellweaver
Joined
Jun 1, 2008
Messages
85
Reaction score
0
Re: [Release]!ap command (odinms)

I added under !sp so it looks like this:

} else if (splitted[0].equals("!sp")) {
player.setRemainingSp(getOptionalIntArg(splitted, 1, 1));
player.updateSingleStat(MapleStat.AVAILABLESP, player.getRemainingSp());
else if (splitted[0].equals("!ap")) {
player.setRemainingAp(getOptionalIntArg(splitted, 1, 1));
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
}

Though I get error:
init:
deps-clean:
Deleting directory C:\Documents and Settings\Linus\Skrivbord\HaidoMS\build
clean:
init:
deps-jar:
Created dir: C:\Documents and Settings\Linus\Skrivbord\HaidoMS\build\classes
Compiling 308 source files to C:\Documents and Settings\Linus\Skrivbord\HaidoMS\build\classes
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:908: 'else' without 'if'
else if (splitted[0].equals("!ap")) {
^
1 error
BUILD FAILED (total time: 0 seconds)

And if I add } at else if, I get:
init:
deps-clean:
Deleting directory C:\Documents and Settings\Linus\Skrivbord\HaidoMS\build
clean:
init:
deps-jar:
Created dir: C:\Documents and Settings\Linus\Skrivbord\HaidoMS\build\classes
Compiling 308 source files to C:\Documents and Settings\Linus\Skrivbord\HaidoMS\build\classes
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1584: illegal start of type
return false;
^
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1584: ';' expected
return false;
^
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1587: class, interface, or enum expected
private static ResultSet getReports(){
^
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1590: class, interface, or enum expected
PreparedStatement ps = dcon.prepareStatement("SELECT * FROM reports");
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1591: class, interface, or enum expected
return ps.executeQuery();
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1593: class, interface, or enum expected
} catch(Exception ex) {}
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1596: class, interface, or enum expected
}
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1600: class, interface, or enum expected
PreparedStatement ps = dcon.prepareStatement("DELETE FROM reports WHERE id = ?");
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1601: class, interface, or enum expected
ps.setInt(1, id);
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1602: class, interface, or enum expected
ps.executeUpdate();
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1603: class, interface, or enum expected
ps.close();
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1606: class, interface, or enum expected
} catch(Exception ex) {}
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1613: class, interface, or enum expected
PreparedStatement ps = dcon.prepareStatement("SELECT * FROM reports where id = ?");
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1614: class, interface, or enum expected
ps.setInt(1, id);
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1615: class, interface, or enum expected
return ps.executeQuery();
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1617: class, interface, or enum expected
} catch(Exception ex) {}
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1619: class, interface, or enum expected
}
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1623: class, interface, or enum expected
PreparedStatement ps = dcon.prepareStatement("UPDATE reports SET status = ? WHERE id = ?");
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1624: class, interface, or enum expected
ps.setString(1, status);
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1625: class, interface, or enum expected
ps.setInt(2, id);
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1626: class, interface, or enum expected
ps.executeUpdate();
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1627: class, interface, or enum expected
ps.close();
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1630: class, interface, or enum expected
} catch(Exception ex) {}
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1637: class, interface, or enum expected
PreparedStatement ps = dcon.prepareStatement("SELECT * FROM characters where id = ?");
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1638: class, interface, or enum expected
ps.setInt(1, id);
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1639: class, interface, or enum expected
ResultSet rs = ps.executeQuery();
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1640: class, interface, or enum expected
if(rs.next())
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1643: class, interface, or enum expected
} catch(Exception ex) {}
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1646: class, interface, or enum expected
}
29 errors
BUILD FAILED (total time: 0 seconds)
 
Experienced Elementalist
Joined
Apr 3, 2008
Messages
236
Reaction score
7
Re: [Release]!ap command (odinms)

Code:
} else if (splitted[0].equals("!sp")) {
player.setRemainingSp(getOptionalIntArg(splitted, 1, 1));
player.updateSingleStat(MapleStat.AVAILABLESP, player.getRemainingSp());
} else if (splitted[0].equals("!ap")) { 
player.setRemainingAp(getOptionalIntArg(splitted, 1, 1)); 
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp()); 
}


Try using this?
 
Junior Spellweaver
Joined
Jul 28, 2008
Messages
131
Reaction score
0
Re: [Release]!ap command (odinms)

Cool thnx , needed this
 
Newbie Spellweaver
Joined
Jun 1, 2008
Messages
85
Reaction score
0
Re: [Release]!ap command (odinms)

Code:
} else if (splitted[0].equals("!sp")) {
player.setRemainingSp(getOptionalIntArg(splitted, 1, 1));
player.updateSingleStat(MapleStat.AVAILABLESP, player.getRemainingSp());
} else if (splitted[0].equals("!ap")) { 
player.setRemainingAp(getOptionalIntArg(splitted, 1, 1)); 
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp()); 
}


Try using this?

I get sorta the same.
init:
deps-clean:
Deleting directory C:\Documents and Settings\Linus\Skrivbord\HaidoMS\build
clean:
init:
deps-jar:
Created dir: C:\Documents and Settings\Linus\Skrivbord\HaidoMS\build\classes
Compiling 308 source files to C:\Documents and Settings\Linus\Skrivbord\HaidoMS\build\classes
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1584: illegal start of type
return false;
^
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1584: ';' expected
return false;
^
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1587: class, interface, or enum expected
private static ResultSet getReports(){
^
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1590: class, interface, or enum expected
PreparedStatement ps = dcon.prepareStatement("SELECT * FROM reports");
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1591: class, interface, or enum expected
return ps.executeQuery();
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1593: class, interface, or enum expected
} catch(Exception ex) {}
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1596: class, interface, or enum expected
}
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1600: class, interface, or enum expected
PreparedStatement ps = dcon.prepareStatement("DELETE FROM reports WHERE id = ?");
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1601: class, interface, or enum expected
ps.setInt(1, id);
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1602: class, interface, or enum expected
ps.executeUpdate();
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1603: class, interface, or enum expected
ps.close();
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1606: class, interface, or enum expected
} catch(Exception ex) {}
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1613: class, interface, or enum expected
PreparedStatement ps = dcon.prepareStatement("SELECT * FROM reports where id = ?");
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1614: class, interface, or enum expected
ps.setInt(1, id);
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1615: class, interface, or enum expected
return ps.executeQuery();
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1617: class, interface, or enum expected
} catch(Exception ex) {}
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1619: class, interface, or enum expected
}
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1623: class, interface, or enum expected
PreparedStatement ps = dcon.prepareStatement("UPDATE reports SET status = ? WHERE id = ?");
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1624: class, interface, or enum expected
ps.setString(1, status);
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1625: class, interface, or enum expected
ps.setInt(2, id);
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1626: class, interface, or enum expected
ps.executeUpdate();
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1627: class, interface, or enum expected
ps.close();
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1630: class, interface, or enum expected
} catch(Exception ex) {}
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1637: class, interface, or enum expected
PreparedStatement ps = dcon.prepareStatement("SELECT * FROM characters where id = ?");
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1638: class, interface, or enum expected
ps.setInt(1, id);
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1639: class, interface, or enum expected
ResultSet rs = ps.executeQuery();
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1640: class, interface, or enum expected
if(rs.next())
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1643: class, interface, or enum expected
} catch(Exception ex) {}
C:\Documents and Settings\Linus\Skrivbord\HaidoMS\HaidoMs\src\net\sf\odinms\client\messages\CommandProcessor.java:1646: class, interface, or enum expected
}
29 errors
BUILD FAILED (total time: 0 seconds)
 
Newbie Spellweaver
Joined
May 12, 2008
Messages
87
Reaction score
0
Re: [Release]!ap command (odinms)

well try to compile it with clean and build time after time

i got this errors too some times but i compile one more time and its compile it good
 
Newbie Spellweaver
Joined
Jun 1, 2008
Messages
85
Reaction score
0
Re: [Release]!ap command (odinms)

I've tried it 37 times+ and still the same errors. I cannot add it...
Btw, I try adding !ap command. Are you supposed to replace !sp with it? Lol?
 
Newbie Spellweaver
Joined
May 12, 2008
Messages
87
Reaction score
0
Re: [Release]!ap command (odinms)

no soo dont know what the problam i get it work with no errors
 
Experienced Elementalist
Joined
Jul 8, 2008
Messages
246
Reaction score
0
Re: [Release]!ap command (odinms)

I've tried it 37 times+ and still the same errors. I cannot add it...
Btw, I try adding !ap command. Are you supposed to replace !sp with it? Lol?

HINT: usually the first error cuases commands under it to give errors since the root fails
 
Back
Top