【Lineage2】エミュ鯖を語るスレ 42鯖目

このエントリーをはてなブックマークに追加
977名無しさん@お腹いっぱい。
あのさ、L2Jのコマンド分割にStringTokenizer使ってるんだが、今の推奨はsplitだよね…
鯖とめるのアレゲだから、誰かこの文法の中で間違ってるトコあったら指摘してくれ…


String[] strAry = command.split(" ");
if (strAry.length == 2){
  makeSupportMagicTemplates(player,strAry[1],strAry[2]);
}
else if{
  makeSupportMagic2(player,strAry[1],strAry[2],strAry[3]);
}
//makeSupportMagic2とmakeSupportMagicTemplatesの中はとりあえず動くと思うんで…仕様は次のような感じ
//public void makeSupportMagic2(L2PcInstance player, int skill_id, int skill_level,int price)
//public void makeSupportMagicTemplates(L2PcInstance player, String TemplateString, int price)