TA的每日心情 | 开心 2024-9-23 12:23 |
---|
签到天数: 9 天 [LV.3]偶尔看看II
管理员
- 积分
- 3011
|
发表于 2022-11-17 17:52:38
|
显示全部楼层
这种写法基本上通用台端
xmdonghua(eim,name);//参数1= 事件对象 ,参数2 = 动画路径
- //事件里动画处理方法
- function xmdonghua(eim,name) {
- MaplePacketCreator = Packages.tools.MaplePacketCreator;
- var players = eim.getPlayers();
- for (var i = 0; i < players.size(); i++) {
- var player = players.get(i);
- player.getClient().getSession().write(MaplePacketCreator.showEffect(name));
- }
-
- }
复制代码
|
|