2013年5月15日 星期三

【Java教學】荒神藥水

修改

C_ItemUSe

if (itemId == 530677) //變身藥水的代碼
            {
             
int time = 1800*1000; //1800秒
L1SkillUse skilluse = new L1SkillUse();
L1SkillUse.SkillTimer skill = skilluse.new SkillTimer( l1pcinstance, 67, time);
skill.start();
int s3 = 363; //荒神代號363
l1pcinstance.set_tempchargfx(s3);
l1pcinstance.sendPackets(new S_ChangeShape(l1pcinstance.get_objectId(), s3, 1800));
l1pcinstance.broadcastPacket(new S_ChangeShape(l1pcinstance.get_objectId(), s3, 1800));
l1pcinstance.getInventory().removeItem(l1iteminstance, 1);
l1pcinstance.add_magiclist(67, skill);

沒有留言:

張貼留言