Changeset 1015

User picture

Author: lord_rex

(2010/02/09 19:59) About 2 years ago

Please use that, before posting !

Affected files

Updated trunk/AE-go_GameServer/config/gameserver.properties Download diff

10141015
102
gameserver.enable.simple.2ndclass=false
102
gameserver.enable.simple.2ndclass=false
103
103
104
# Unstuck delay in seconds
104
# Unstuck delay in seconds
105
gameserver.unstuck.delay=3600
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

Updated trunk/AE-go_GameServer/src/com/aionemu/gameserver/configs/Config.java Download diff

10141015
187
	 */
187
	 */
188
	@Property(key = "gameserver.unstuck.delay",defaultValue = "3600")
188
	@Property(key = "gameserver.unstuck.delay",defaultValue = "3600")
189
	public static int				UNSTUCK_DELAY;
189
	public static int				UNSTUCK_DELAY;
190
	
191
	@Property(key = "gameserver.taskmanager.DebugPacketBroadcaster",defaultValue = "false")
192
	public static boolean			DEBUG_PACKET_BROADCASTER;
190
193
191
	/**
194
	/**
192
	 * Initialize all configs in com.aionemu.gameserver.configs package
195
	 * Initialize all configs in com.aionemu.gameserver.configs package

Updated trunk/AE-go_GameServer/src/com/aionemu/gameserver/model/gameobjects/Creature.java Download diff

10141015
17
package com.aionemu.gameserver.model.gameobjects;
17
package com.aionemu.gameserver.model.gameobjects;
18
18
19
import com.aionemu.gameserver.ai.AI;
19
import com.aionemu.gameserver.ai.AI;
20
import com.aionemu.gameserver.configs.Config;
20
import com.aionemu.gameserver.controllers.CreatureController;
21
import com.aionemu.gameserver.controllers.CreatureController;
21
import com.aionemu.gameserver.controllers.EffectController;
22
import com.aionemu.gameserver.controllers.EffectController;
22
import com.aionemu.gameserver.controllers.MoveController;
23
import com.aionemu.gameserver.controllers.MoveController;
24
import com.aionemu.gameserver.model.gameobjects.player.Player;
23
import com.aionemu.gameserver.model.gameobjects.state.CreatureState;
25
import com.aionemu.gameserver.model.gameobjects.state.CreatureState;
24
import com.aionemu.gameserver.model.gameobjects.stats.CreatureGameStats;
26
import com.aionemu.gameserver.model.gameobjects.stats.CreatureGameStats;
25
import com.aionemu.gameserver.model.gameobjects.stats.CreatureLifeStats;
27
import com.aionemu.gameserver.model.gameobjects.stats.CreatureLifeStats;
...
...
28
import com.aionemu.gameserver.skillengine.model.Skill;
30
import com.aionemu.gameserver.skillengine.model.Skill;
29
import com.aionemu.gameserver.taskmanager.PacketBroadcaster;
31
import com.aionemu.gameserver.taskmanager.PacketBroadcaster;
30
import com.aionemu.gameserver.taskmanager.PacketBroadcaster.BroadcastMode;
32
import com.aionemu.gameserver.taskmanager.PacketBroadcaster.BroadcastMode;
33
import com.aionemu.gameserver.utils.PacketSendUtility;
31
import com.aionemu.gameserver.world.WorldPosition;
34
import com.aionemu.gameserver.world.WorldPosition;
32
35
33
/**
36
/**
...
...
325
		packetBroadcastMask |= mode.mask();
328
		packetBroadcastMask |= mode.mask();
326
329
327
		PacketBroadcaster.getInstance().add(this);
330
		PacketBroadcaster.getInstance().add(this);
331
		
332
		if(Config.DEBUG_PACKET_BROADCASTER)
333
			PacketSendUtility.sendMessage(((Player)this), "PacketBroadcast: " + mode.name() + " added.");
328
	}
334
	}
329
335
330
	public final void removePacketBroadcastMask(BroadcastMode mode)
336
	public final void removePacketBroadcastMask(BroadcastMode mode)
331
	{
337
	{
332
		packetBroadcastMask &= ~mode.mask();
338
		packetBroadcastMask &= ~mode.mask();
339
		
340
		if(Config.DEBUG_PACKET_BROADCASTER)
341
			PacketSendUtility.sendMessage(((Player)this), "PacketBroadcast: " + mode.name() + " removed.");
333
	}
342
	}
334
343
335
	public final byte getPacketBroadcastMask()
344
	public final byte getPacketBroadcastMask()

Updated trunk/AE-go_GameServer/src/com/aionemu/gameserver/taskmanager/AbstractLockManager.java Download diff

10141015
1
/*
1
/*
2
 * This file is part of aion-emu <aion-emu.com>.
2
 * This file is part of aion-unique <aion-unique.org>.
3
 *
3
 *
4
 *  aion-emu is free software: you can redistribute it and/or modify
4
 *  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
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
6
 *  the Free Software Foundation, either version 3 of the License, or
7
 *  (at your option) any later version.
7
 *  (at your option) any later version.
8
 *
8
 *
9
 *  aion-emu is distributed in the hope that it will be useful,
9
 *  aion-unique is distributed in the hope that it will be useful,
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 *  GNU General Public License for more details.
12
 *  GNU General Public License for more details.
13
 *
13
 *
14
 *  You should have received a copy of the GNU General Public License
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/>.
15
 *  along with aion-unique.  If not, see <http://www.gnu.org/licenses/>.
16
 */
16
 */
17
package com.aionemu.gameserver.taskmanager;
17
package com.aionemu.gameserver.taskmanager;
18
18

Updated trunk/AE-go_GameServer/src/com/aionemu/gameserver/taskmanager/AbstractPeriodicTaskManager.java Download diff

10141015
1
/*
1
/*
2
 * This file is part of aion-emu <aion-emu.com>.
2
 * This file is part of aion-unique <aion-unique.org>.
3
 *
3
 *
4
 *  aion-emu is free software: you can redistribute it and/or modify
4
 *  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
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
6
 *  the Free Software Foundation, either version 3 of the License, or
7
 *  (at your option) any later version.
7
 *  (at your option) any later version.
8
 *
8
 *
9
 *  aion-emu is distributed in the hope that it will be useful,
9
 *  aion-unique is distributed in the hope that it will be useful,
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 *  GNU General Public License for more details.
12
 *  GNU General Public License for more details.
13
 *
13
 *
14
 *  You should have received a copy of the GNU General Public License
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/>.
15
 *  along with aion-unique.  If not, see <http://www.gnu.org/licenses/>.
16
 */
16
 */
17
package com.aionemu.gameserver.taskmanager;
17
package com.aionemu.gameserver.taskmanager;
18
18

Updated trunk/AE-go_GameServer/src/com/aionemu/gameserver/taskmanager/PacketBroadcaster.java Download diff

10141015
1
/*
1
/*
2
 * This file is part of aion-emu <aion-emu.com>.
2
 * This file is part of aion-unique <aion-unique.org>.
3
 *
3
 *
4
 *  aion-emu is free software: you can redistribute it and/or modify
4
 *  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
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
6
 *  the Free Software Foundation, either version 3 of the License, or
7
 *  (at your option) any later version.
7
 *  (at your option) any later version.
8
 *
8
 *
9
 *  aion-emu is distributed in the hope that it will be useful,
9
 *  aion-unique is distributed in the hope that it will be useful,
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 *  GNU General Public License for more details.
12
 *  GNU General Public License for more details.
13
 *
13
 *
14
 *  You should have received a copy of the GNU General Public License
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/>.
15
 *  along with aion-unique.  If not, see <http://www.gnu.org/licenses/>.
16
 */
16
 */
17
package com.aionemu.gameserver.taskmanager;
17
package com.aionemu.gameserver.taskmanager;
18
18
19
import com.aionemu.gameserver.configs.Config;
19
import com.aionemu.gameserver.model.gameobjects.Creature;
20
import com.aionemu.gameserver.model.gameobjects.Creature;
20
import com.aionemu.gameserver.model.gameobjects.player.Player;
21
import com.aionemu.gameserver.model.gameobjects.player.Player;
22
import com.aionemu.gameserver.utils.PacketSendUtility;
21
23
22
/**
24
/**
23
 * @author lord_rex and MrPoke
25
 * @author lord_rex and MrPoke
...
...
47
			public void sendPacket(Creature creature)
49
			public void sendPacket(Creature creature)
48
			{
50
			{
49
				((Player) creature).getLifeStats().sendHpPacketUpdateImpl();
51
				((Player) creature).getLifeStats().sendHpPacketUpdateImpl();
52
				
53
				if(Config.DEBUG_PACKET_BROADCASTER)
54
					PacketSendUtility.sendMessage(((Player) creature), "PacketBroadcast: Your HP stat is updated.");
50
			}
55
			}
51
		},
56
		},
52
		UPDATE_PLAYER_MP_STAT {
57
		UPDATE_PLAYER_MP_STAT {
...
...
54
			public void sendPacket(Creature creature)
59
			public void sendPacket(Creature creature)
55
			{
60
			{
56
				((Player) creature).getLifeStats().sendMpPacketUpdateImpl();
61
				((Player) creature).getLifeStats().sendMpPacketUpdateImpl();
62
				
63
				if(Config.DEBUG_PACKET_BROADCASTER)
64
					PacketSendUtility.sendMessage(((Player) creature), "PacketBroadcast: Your MP stat is updated.");
57
			}
65
			}
58
		},
66
		},
59
		UPDATE_PLAYER_EFFECT_ICONS {
67
		UPDATE_PLAYER_EFFECT_ICONS {
60
			@Override
68
			@Override
61
			public void sendPacket(Creature creature)
69
			public void sendPacket(Creature creature)
62
			{
70
			{
63
				creature.getEffectController().updatePlayerEffectIconsImpl();
71
				((Player) creature).getEffectController().updatePlayerEffectIconsImpl();
72
				
73
				if(Config.DEBUG_PACKET_BROADCASTER)
74
					PacketSendUtility.sendMessage(((Player) creature), "PacketBroadcast: Your effect icons are updated.");
64
			}
75
			}
65
		},
76
		},
66
		UPDATE_NEARBY_QUEST_LIST {
77
		UPDATE_NEARBY_QUEST_LIST {
...
...
68
			public void sendPacket(Creature creature)
79
			public void sendPacket(Creature creature)
69
			{
80
			{
70
				((Player) creature).getController().updateNearbyQuestListImpl();
81
				((Player) creature).getController().updateNearbyQuestListImpl();
82
				
83
				if(Config.DEBUG_PACKET_BROADCASTER)
84
					PacketSendUtility.sendMessage(((Player) creature), "PacketBroadcast: Your quest list is updated.");
71
			}
85
			}
72
		},
86
		},
73
		// TODO: more packets
87
		// TODO: more packets