主页| 免费发布天堂1开机信息| 站长qq:1161903

交你-新增变身药水

来源:2TT天堂发布网 www.2tt.cc    发布时间:2018/10/4 13:48:43    浏览量:995

交你-新增变身药水

先在etcitem里新增你的变身药水.取得编号后

修改Crequestitemuse
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);

if(itemId ==)变身药水的编号

int s3 = 363; //指定变身的代码