示例#1
0
	def do_13ba(self, pc, data, datalength, recvhead, recvtype, recvcontent):
		"""座る/立つの通知"""
		pc.reset_attack_info()
		pc.e = copy.copy(self.event)
		if pc.motion != 135:
			eventobj.motion(pc, 135, 1)
		else:
			eventobj.motion(pc, 111, 1)
		print "[ map ]","sitdown/getup"
示例#2
0
	def do_13ba(self, pc, data, datalength, recvhead, recvtype, recvcontent):
		"""座る/立つの通知"""
		pc.reset_attack_info()
		pc.e = copy.copy(self.event)
		if pc.motion != 135:
			eventobj.motion(pc, 135, 1)
		else:
			eventobj.motion(pc, 111, 1)
		print "[ map ]","sitdown/getup"
示例#3
0
	def do_121b(self, pc, data, datalength, recvhead, recvtype, recvcontent):
		"""モーションセット&ログアウト"""
		pc.reset_attack_info()
		motionid = int(recvcontent[:4],16)
		isloop = int(recvcontent[4:6],16)
		print "[ map ]", "set motion =", motionid, "loop =", isloop
		#モーション通知
		pc.e = copy.copy(self.event)
		eventobj.motion(pc, motionid, isloop)
		if motionid == 135 and isloop == 1:
			##ログアウト開始
			print "[ map ]", "client logout waiting"
			datatype,datacontent = self.createpacket.create0020("logoutstart")
			self.send(datatype, datacontent, pc.mapclient, None)
			pc.logout = True
示例#4
0
	def do_121b(self, pc, data, datalength, recvhead, recvtype, recvcontent):
		"""モーションセット&ログアウト"""
		pc.reset_attack_info()
		motionid = int(recvcontent[:4],16)
		isloop = int(recvcontent[4:6],16)
		print "[ map ]", "set motion =", motionid, "loop =", isloop
		#モーション通知
		pc.e = copy.copy(self.event)
		eventobj.motion(pc, motionid, isloop)
		if motionid == 135 and isloop == 1:
			##ログアウト開始
			print "[ map ]", "client logout waiting"
			datatype,datacontent = self.createpacket.create0020("logoutstart")
			self.send(datatype, datacontent, pc.mapclient, None)
			pc.logout = True
示例#5
0
 def do_0motion(self, pc, openchattext):
     arg = simplehandle(pc, openchattext, "motion", "!motion motion_id",
                        "motion id not a number")
     if arg:
         eventobj.motion(pc, int(arg), True)
示例#6
0
	def do_0motion(self, pc, openchattext):
		arg = simplehandle(pc, openchattext, "motion", "!motion motion_id", "motion id not a number")
		if arg:
			eventobj.motion(pc, int(arg), True)