Author: lord_rex
(2010/02/09 19:59) About 2 years ago
Please use that, before posting !
102
gameserver.enable.simple.2ndclass=false
103
104
# Unstuck delay in seconds
105
gameserver.unstuck.delay=3600
106
107
# PacketBroadcaster Debugger:
108
# This is sending a debug message for characters,
109
# when packetbroadcast added/removed and used.
110
gameserver.taskmanager.DebugPacketBroadcaster=false
187
*/
188
@Property(key = "gameserver.unstuck.delay",defaultValue = "3600")
189
public static int UNSTUCK_DELAY;
190
191
@Property(key = "gameserver.taskmanager.DebugPacketBroadcaster",defaultValue = "false")
192
public static boolean DEBUG_PACKET_BROADCASTER;
193
/**
194
* Initialize all configs in com.aionemu.gameserver.configs package
195
17
package com.aionemu.gameserver.model.gameobjects;
18
19
import com.aionemu.gameserver.ai.AI;
20
import com.aionemu.gameserver.configs.Config;
import com.aionemu.gameserver.controllers.CreatureController;
21
import com.aionemu.gameserver.controllers.EffectController;
22
import com.aionemu.gameserver.controllers.MoveController;
23
24
import com.aionemu.gameserver.model.gameobjects.player.Player;
import com.aionemu.gameserver.model.gameobjects.state.CreatureState;
25
import com.aionemu.gameserver.model.gameobjects.stats.CreatureGameStats;
26
import com.aionemu.gameserver.model.gameobjects.stats.CreatureLifeStats;
27
...
28
import com.aionemu.gameserver.skillengine.model.Skill;
30
29
import com.aionemu.gameserver.taskmanager.PacketBroadcaster;
31
import com.aionemu.gameserver.taskmanager.PacketBroadcaster.BroadcastMode;
32
33
import com.aionemu.gameserver.utils.PacketSendUtility;
import com.aionemu.gameserver.world.WorldPosition;
34
35
36
325
packetBroadcastMask |= mode.mask();
328
326
329
327
PacketBroadcaster.getInstance().add(this);
330
331
332
if(Config.DEBUG_PACKET_BROADCASTER)
333
PacketSendUtility.sendMessage(((Player)this), "PacketBroadcast: " + mode.name() + " added.");
}
334
335
public final void removePacketBroadcastMask(BroadcastMode mode)
336
{
337
packetBroadcastMask &= ~mode.mask();
338
339
340
341
PacketSendUtility.sendMessage(((Player)this), "PacketBroadcast: " + mode.name() + " removed.");
342
343
public final byte getPacketBroadcastMask()
344
1
/*
2
* This file is part of aion-emu <aion-emu.com>.
* This file is part of aion-unique <aion-unique.org>.
3
*
4
* aion-emu is free software: you can redistribute it and/or modify
* aion-unique is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
9
* aion-emu is distributed in the hope that it will be useful,
* aion-unique is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
14
* You should have received a copy of the GNU General Public License
15
* along with aion-emu. If not, see <http://www.gnu.org/licenses/>.
* along with aion-unique. If not, see <http://www.gnu.org/licenses/>.
16
package com.aionemu.gameserver.taskmanager;
import com.aionemu.gameserver.model.gameobjects.Creature;
* @author lord_rex and MrPoke
47
public void sendPacket(Creature creature)
49
48
50
((Player) creature).getLifeStats().sendHpPacketUpdateImpl();
51
52
53
54
PacketSendUtility.sendMessage(((Player) creature), "PacketBroadcast: Your HP stat is updated.");
55
},
56
UPDATE_PLAYER_MP_STAT {
57
59
60
((Player) creature).getLifeStats().sendMpPacketUpdateImpl();
61
62
63
64
PacketSendUtility.sendMessage(((Player) creature), "PacketBroadcast: Your MP stat is updated.");
65
58
66
UPDATE_PLAYER_EFFECT_ICONS {
67
@Override
68
69
70
creature.getEffectController().updatePlayerEffectIconsImpl();
71
((Player) creature).getEffectController().updatePlayerEffectIconsImpl();
72
73
74
PacketSendUtility.sendMessage(((Player) creature), "PacketBroadcast: Your effect icons are updated.");
75
76
UPDATE_NEARBY_QUEST_LIST {
77
79
80
((Player) creature).getController().updateNearbyQuestListImpl();
81
82
83
84
PacketSendUtility.sendMessage(((Player) creature), "PacketBroadcast: Your quest list is updated.");
85
86
// TODO: more packets
87
# PacketBroadcaster Debugger:# This is sending a debug message for characters,# when packetbroadcast added/removed and used.gameserver.taskmanager.DebugPacketBroadcaster=false{{* This file is part of aion-emu <aion-emu.com>.* This file is part of aion-unique <aion-unique.org>.* aion-emu is free software: you can redistribute it and/or modify* aion-unique is free software: you can redistribute it and/or modify* aion-emu is distributed in the hope that it will be useful,* aion-unique is distributed in the hope that it will be useful,* along with aion-emu. If not, see <http://www.gnu.org/licenses/>.* along with aion-unique. If not, see <http://www.gnu.org/licenses/>.* This file is part of aion-emu <aion-emu.com>.* This file is part of aion-unique <aion-unique.org>.* aion-emu is free software: you can redistribute it and/or modify* aion-unique is free software: you can redistribute it and/or modify* aion-emu is distributed in the hope that it will be useful,* aion-unique is distributed in the hope that it will be useful,* along with aion-emu. If not, see <http://www.gnu.org/licenses/>.* along with aion-unique. If not, see <http://www.gnu.org/licenses/>.* This file is part of aion-emu <aion-emu.com>.* This file is part of aion-unique <aion-unique.org>.* aion-emu is free software: you can redistribute it and/or modify* aion-unique is free software: you can redistribute it and/or modify* aion-emu is distributed in the hope that it will be useful,* aion-unique is distributed in the hope that it will be useful,* along with aion-emu. If not, see <http://www.gnu.org/licenses/>.* along with aion-unique. If not, see <http://www.gnu.org/licenses/>.{{UPDATE_PLAYER_MP_STAT {UPDATE_PLAYER_MP_STAT {{{UPDATE_PLAYER_EFFECT_ICONS {UPDATE_PLAYER_EFFECT_ICONS {{{creature.getEffectController().updatePlayerEffectIconsImpl();((Player) creature).getEffectController().updatePlayerEffectIconsImpl();if(Config.DEBUG_PACKET_BROADCASTER)PacketSendUtility.sendMessage(((Player) creature), "PacketBroadcast: Your effect icons are updated.");UPDATE_NEARBY_QUEST_LIST {UPDATE_NEARBY_QUEST_LIST {{{