예제 #1
0
 def silent_give_item(self, connection, item):
     packet = ServerUpdate()
     packet.reset()
     action = PickupAction()
     action.entity_id = connection.entity_id
     action.item_data = item
     packet.pickups.append(action)
     connection.send_packet(packet)
예제 #2
0
 def silent_give_item(self, connection, item):
     packet = ServerUpdate()
     packet.reset()
     action = PickupAction()
     action.entity_id = connection.entity_id
     action.item_data = item
     packet.pickups.append(action)
     connection.send_packet(packet)
예제 #3
0
파일: __init__.py 프로젝트: JimBean1/cuwo
    def on_drop(self, event):
        if self.is_item_illegal(event.item):
            pack = ServerUpdate()
            pack.reset()
            action = PickupAction()
            action.entity_id = self.connection.entity_id
            action.item_data = event.item
            pack.pickups.append(action)

            self.connection.send_packet(pack)

            self.remove_cheater("illegal item dropped")
            return False
예제 #4
0
    def on_drop(self, event):
        if self.is_item_illegal(event.item):
            pack = ServerUpdate()
            pack.reset()
            action = PickupAction()
            action.entity_id = self.connection.entity_id
            action.item_data = event.item
            pack.pickups.append(action)

            self.connection.send_packet(pack)

            self.remove_cheater('illegal item dropped')
            return False
예제 #5
0
파일: server.py 프로젝트: sms-hosting/cuwo
 def give_item(self, item):
     action = PickupAction()
     action.entity_id = self.entity_id
     action.item_data = item
     self.server.update_packet.pickups.append(action)
예제 #6
0
 def give_item(self, item):
     action = PickupAction()
     action.entity_id = self.entity_id
     action.item_data = item
     self.server.update_packet.pickups.append(action)