Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
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
Exemplo n.º 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
Exemplo n.º 5
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)
Exemplo n.º 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)